Improvements to view-source pages #7
This commit is contained in:
parent
b30a41f5fb
commit
70973fdff8
|
@ -86,11 +86,6 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Purple: #b78cfd
|
|
||||||
* Green: #86de74
|
|
||||||
* Steelblue: steelblue
|
|
||||||
* */
|
|
||||||
|
|
||||||
@-moz-document url-prefix(view-source) {
|
@-moz-document url-prefix(view-source) {
|
||||||
*|*:root {
|
*|*:root {
|
||||||
background-color: var(--primary-dark-color) !important;
|
background-color: var(--primary-dark-color) !important;
|
||||||
|
@ -98,46 +93,28 @@
|
||||||
}
|
}
|
||||||
pre[id]:before,
|
pre[id]:before,
|
||||||
span[id]:before {
|
span[id]:before {
|
||||||
content: counter(line) " ";
|
color: var(--primary-light-color) !important;
|
||||||
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 {
|
.highlight .start-tag {
|
||||||
color: #b78cfd !important;
|
color: #b78cfd !important;
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
.highlight .end-tag {
|
.highlight .end-tag {
|
||||||
color: #b78cfd !important;
|
color: #b78cfd !important;
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
.highlight .comment {
|
.highlight .comment {
|
||||||
color: #86de74 !important;
|
color: #86de74 !important;
|
||||||
font-style: italic;
|
|
||||||
}
|
}
|
||||||
.highlight .cdata {
|
.highlight .cdata {
|
||||||
color: #CC0066 !important;
|
color: #CC0066 !important;
|
||||||
}
|
}
|
||||||
.highlight .doctype {
|
.highlight .doctype {
|
||||||
color: steelblue !important;
|
color: steelblue !important;
|
||||||
font-style: italic;
|
|
||||||
}
|
}
|
||||||
.highlight .pi {
|
.highlight .pi {
|
||||||
color: #ff7de9 !important;
|
color: #ff7de9 !important;
|
||||||
font-style: italic;
|
|
||||||
}
|
}
|
||||||
.highlight .entity {
|
.highlight .entity {
|
||||||
color: #FF4500 !important;
|
color: #FF4500 !important;
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
.highlight .text {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
}
|
||||||
.highlight .attribute-name {
|
.highlight .attribute-name {
|
||||||
color: var(--primary-light-color) !important;
|
color: var(--primary-light-color) !important;
|
||||||
|
@ -145,23 +122,15 @@
|
||||||
}
|
}
|
||||||
.highlight .attribute-value {
|
.highlight .attribute-value {
|
||||||
color: #75bfff !important;
|
color: #75bfff !important;
|
||||||
font-weight: normal;
|
|
||||||
}
|
}
|
||||||
.highlight .markupdeclaration {
|
.highlight .markupdeclaration {
|
||||||
color: steelblue !important;
|
color: steelblue !important;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
span:not(.error), a:not(.error) {
|
|
||||||
unicode-bidi: embed;
|
|
||||||
}
|
|
||||||
span[id] {
|
|
||||||
unicode-bidi: isolate;
|
|
||||||
}
|
|
||||||
.highlight .error,
|
.highlight .error,
|
||||||
.highlight .error > :-moz-any(.start-tag, .end-tag, .comment, .cdata, .doctype,
|
.highlight .error > :-moz-any(.start-tag, .end-tag, .comment, .cdata, .doctype,
|
||||||
.pi, .entity, .attribute-name, .attribute-value) {
|
.pi, .entity, .attribute-name, .attribute-value) {
|
||||||
color: red;
|
color: red;
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue