Bug 1883861 - Part 1: Move visitMemoryBarrier into the common CodeGenerator file...
[gecko.git] / layout / style / res / viewsource.css
blob6bcf73faa6f47b3bc591617ba56cb9f072c41acb
1 @charset "utf-8";
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
8 *|*:root {
9 color-scheme: light dark;
10 direction: ltr;
11 -moz-control-character-visibility: visible;
12 height: 100%;
14 #viewsource {
15 font-family: -moz-fixed;
16 font-weight: normal;
17 white-space: pre;
18 counter-reset: line;
19 height: 100%;
20 box-sizing: border-box;
21 margin: 0;
22 padding: 8px;
24 #viewsource.wrap {
25 white-space: pre-wrap;
26 word-wrap: break-word;
28 pre {
29 font: inherit;
30 color: inherit;
31 white-space: inherit;
32 margin: 0 0 0 5ch;
34 pre[id]:before,
35 span[id]:before {
36 content: counter(line) " ";
37 counter-increment: line;
38 user-select: none;
39 display: inline-block;
40 width: 5ch;
41 margin: 0 0 0 -5ch;
42 text-align: right;
43 color: #ccc;
44 font-weight: normal;
45 font-style: normal;
47 .highlight .start-tag,
48 .highlight .end-tag {
49 color: purple;
50 font-weight: bold;
52 .highlight .comment {
53 color: green;
54 font-style: italic;
56 .highlight .cdata {
57 color: #CC0066;
59 .highlight .doctype,
60 .highlight .markupdeclaration {
61 color: steelblue;
62 font-style: italic;
64 .highlight .pi {
65 color: orchid;
66 font-style: italic;
68 .highlight .entity {
69 color: #FF4500;
70 font-weight: normal;
72 .highlight .text {
73 font-weight: normal;
75 .highlight .attribute-name {
76 font-weight: bold;
78 .highlight .attribute-value {
79 color: blue;
80 font-weight: normal;
82 span:not(.error),
83 a:not(.error) {
84 unicode-bidi: embed;
86 span[id] {
87 unicode-bidi: isolate;
89 .highlight .error {
90 color: revert;
91 font-weight: bold;
92 background-color: rgba(231, 116, 113, 0.3);
93 text-decoration: underline wavy red 0.5px;
95 @media (prefers-color-scheme: dark) {
96 .highlight .start-tag,
97 .highlight .end-tag {
98 color: #f55e5e;
100 .highlight .comment {
101 color: lightgreen;
103 .highlight .cdata {
104 color: #f068ac;
106 .highlight .doctype,
107 .highlight .markupdeclaration {
108 color: lightgray;
110 .highlight .entity {
111 color: #f18a65;
113 .highlight .attribute-value {
114 color: #97bbff;