Skip to content

Instantly share code, notes, and snippets.

@yuuan
Last active August 29, 2015 14:15
Show Gist options
  • Save yuuan/ae8efd31a25bdc40bc88 to your computer and use it in GitHub Desktop.
Save yuuan/ae8efd31a25bdc40bc88 to your computer and use it in GitHub Desktop.
Firefox で `ページのソースを表示` したときのデザインを上書きするためのスタイルシート
@-moz-document url-prefix(view-source) {
body {
margin: 0;
}
#viewsource {
font-family: "Ricty";
font-size: 10pt;
line-height: 135%;
}
#line1:before {
padding-top: 5px;
}
*|*:root {
background-color: #fcfcfc;
color: #404040;
}
pre[id]:before, span[id]:before {
background-color: #f0f0f0;
color: #606060;
margin-right: 3px;
}
.doctype {
color: #a0b0c0;
}
.start-tag {
color: #6a5acd;
}
.end-tag {
color: #6a5acd;
}
.attribute-name {
color: #1060a0;
font-weight: normal;
}
.attribute-value {
color: #718c00;
}
.entity {
color: #c82829;
}
.comment {
background-color: #f0ece8;
color: #a07060;
}
.error {
color: #d33682;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment