Improvements to view-source pages #7
This commit is contained in:
parent
dc10c6f197
commit
b30a41f5fb
|
@ -86,26 +86,82 @@
|
|||
|
||||
}
|
||||
|
||||
/* Purple: #b78cfd
|
||||
* Green: #86de74
|
||||
* Steelblue: steelblue
|
||||
* */
|
||||
|
||||
@-moz-document url-prefix(view-source) {
|
||||
*|*:root {
|
||||
background-color: var(--primary-dark-color) !important;
|
||||
color: var(--primary-light-color) !important;
|
||||
}
|
||||
|
||||
.highlight .attribute-value {
|
||||
color: var(--primary-accent-color) !important;
|
||||
pre[id]:before,
|
||||
span[id]:before {
|
||||
content: counter(line) " ";
|
||||
counter-increment: line;
|
||||
-moz-user-select: none;
|
||||
display: inline-block;
|
||||
width: 5ch;
|
||||
margin: 0 0 0 -5ch;
|
||||
text-align: right;
|
||||
color: #ccc;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.highlight .start-tag {
|
||||
color: var(--magenta-60) !important;
|
||||
color: #b78cfd !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.highlight .error, .highlight .error > :-moz-any(.start-tag, .end-tag, .comment, .cdata, .doctype, .pi, .entity, .attribute-name, .attribute-value) {
|
||||
color: var(--red-60) !important;
|
||||
.highlight .end-tag {
|
||||
color: #b78cfd !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
.highlight .comment {
|
||||
color: #86de74 !important;
|
||||
font-style: italic;
|
||||
}
|
||||
.highlight .cdata {
|
||||
color: #CC0066 !important;
|
||||
}
|
||||
.highlight .doctype {
|
||||
color: steelblue !important;
|
||||
font-style: italic;
|
||||
}
|
||||
.highlight .pi {
|
||||
color: #ff7de9 !important;
|
||||
font-style: italic;
|
||||
}
|
||||
.highlight .entity {
|
||||
color: #FF4500 !important;
|
||||
font-weight: normal;
|
||||
}
|
||||
.highlight .text {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.highlight .attribute-name {
|
||||
color: var(--primary-light-color) !important;
|
||||
color: var(--primary-light-color) !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
.highlight .attribute-value {
|
||||
color: #75bfff !important;
|
||||
font-weight: normal;
|
||||
}
|
||||
.highlight .markupdeclaration {
|
||||
color: steelblue !important;
|
||||
font-style: italic;
|
||||
}
|
||||
span:not(.error), a:not(.error) {
|
||||
unicode-bidi: embed;
|
||||
}
|
||||
span[id] {
|
||||
unicode-bidi: isolate;
|
||||
}
|
||||
.highlight .error,
|
||||
.highlight .error > :-moz-any(.start-tag, .end-tag, .comment, .cdata, .doctype,
|
||||
.pi, .entity, .attribute-name, .attribute-value) {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue