1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 00:14:11 +01:00

Format generated stylesheets a bit more nicely.

This commit is contained in:
Kris Maglione
2011-02-02 11:20:46 -05:00
parent a971e68ba6
commit f64acd9e0f

View File

@@ -74,9 +74,9 @@ update(Sheet.prototype, {
/[\/:]/.test(part) ? "url"
: "domain")
+ '("' + part.replace(/"/g, "%22").replace(/\*$/, "") + '")')
.join(", ");
return "/* " + this.uri + (this.agent ? " (agent)" : "") + " */\n"
+ namespace + " @-moz-document " + selectors + "{\n" + css + "\n}\n";
.join(",\n ");
return "/* " + this.uri + (this.agent ? " (agent)" : "") + " */\n\n"
+ namespace + "\n@-moz-document " + selectors + " {\n\n" + css + "\n\n}\n";
}
});