layout/style/viewsource.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/style/viewsource.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,96 @@
     1.4 +@charset "utf-8";
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
    1.10 +
    1.11 +*|*:root {
    1.12 +  background-color: white;
    1.13 +  color: black;
    1.14 +  direction: ltr;
    1.15 +  -moz-control-character-visibility: visible;
    1.16 +}
    1.17 +#viewsource {
    1.18 +  font-family: -moz-fixed;
    1.19 +  font-weight: normal;
    1.20 +  white-space: pre;
    1.21 +  counter-reset: line;
    1.22 +}
    1.23 +#viewsource.wrap {
    1.24 +  white-space: pre-wrap;
    1.25 +  word-wrap: break-word;
    1.26 +}
    1.27 +pre {
    1.28 +  font: inherit;
    1.29 +  color: inherit;
    1.30 +  white-space: inherit; 
    1.31 +  margin: 0 0 0 5ch;
    1.32 +}
    1.33 +pre[id]:before,
    1.34 +span[id]:before {
    1.35 +  content: counter(line) " ";
    1.36 +  counter-increment: line;
    1.37 +  -moz-user-select: none;
    1.38 +  display: inline-block;
    1.39 +  width: 5ch;
    1.40 +  margin: 0 0 0 -5ch;
    1.41 +  text-align: right;
    1.42 +  color: #ccc;
    1.43 +  font-weight: normal;
    1.44 +  font-style: normal;
    1.45 +}
    1.46 +.start-tag {
    1.47 + color: purple;
    1.48 + font-weight: bold;
    1.49 +}
    1.50 +.end-tag {
    1.51 + color: purple;
    1.52 + font-weight: bold;
    1.53 +}
    1.54 +.comment {
    1.55 + color: green;
    1.56 + font-style: italic;
    1.57 +}
    1.58 +.cdata {
    1.59 + color: #CC0066;
    1.60 +}
    1.61 +.doctype {
    1.62 + color: steelblue;
    1.63 + font-style: italic;
    1.64 +}
    1.65 +.pi {
    1.66 + color: orchid;
    1.67 + font-style: italic;
    1.68 +}
    1.69 +.entity {
    1.70 + color:#FF4500;
    1.71 + font-weight: normal;
    1.72 +}
    1.73 +.text {
    1.74 +  font-weight: normal;
    1.75 +}
    1.76 +.attribute-name {
    1.77 + color: black;
    1.78 + font-weight: bold;
    1.79 +}
    1.80 +.attribute-value {
    1.81 + color: blue;
    1.82 + font-weight: normal;
    1.83 +}
    1.84 +.markupdeclaration {
    1.85 + color: steelblue;
    1.86 + font-style: italic;
    1.87 +}
    1.88 +span:not(.error), a:not(.error) {
    1.89 + unicode-bidi: embed;
    1.90 +}
    1.91 +span[id] {
    1.92 + unicode-bidi: -moz-isolate;
    1.93 +}
    1.94 +.error, 
    1.95 +.error > :-moz-any(.start-tag, .end-tag, .comment, .cdata, .doctype, .pi,
    1.96 +                   .entity, .attribute-name, .attribute-value) {
    1.97 +  color: red;
    1.98 +  font-weight: bold;
    1.99 +}

mercurial