1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 @import url
(chrome://devtools
/skin
/variables
.css
);
6 @import url
(chrome://devtools
/skin
/common
.css
);
7 @import url
(chrome://devtools
/skin
/toolbars
.css
);
8 @import url
(chrome://devtools
/skin
/tooltips
.css
);
15 background: var
(--theme-body-background
);
16 color: var
(--theme-body-color
);
20 background: var
(--theme-sidebar-background
);
21 color: var
(--theme-body-color
);
25 .CodeMirror-hint-active {
26 background-color: var
(--theme-selection-background
);
27 color: var
(--theme-selection-color
);
30 .variable-or-property:not([overridden])[changed] {
31 background: var
(--theme-contrast-background
);
35 .cm-s-mozilla
.cm-link
,
36 :is
(.cm-editor
, .cm-highlighted
) .tok-link
,
37 .CodeMirror-Tern-type {
38 color: var
(--grey-45
);
42 * FIXME: http://bugzil.la/575675 CSS links without :visited set cause assertion
43 * failures in debug builds.
47 .cm-s-mozilla
.cm-link
,
48 :is
(.cm-editor
, .cm-highlighted
) .tok-link
50 color: var
(--theme-link-color
);
54 .cm-s-mozilla
.cm-meta
,
56 .cm-s-mozilla
.cm-comment
,
57 :is
(.cm-editor
, .cm-highlighted
) :is
(
61 .variable-or-property
.token-undefined
,
62 .variable-or-property
.token-null
,
63 .CodeMirror-Tern-completion-unknown:before {
64 color: var
(--theme-comment
);
67 .cm-s-mozilla .cm-unused-line {
68 text-decoration: line-through
;
69 text-decoration-color: #0072ab;
72 .cm-s-mozilla .cm-executed-line {
73 background-color: #133c26;
76 .cm-s-mozilla
.cm-number
,
77 :is
(.cm-editor
, .cm-highlighted
) .tok-number
,
78 .variable-or-property
.token-number
,
79 .variable-or-property
[return
] > .title
> .name
,
80 .variable-or-property[scope] > .title > .name {
84 .CodeMirror-Tern-completion-number:before {
85 background-color: #5c9966;
89 .cm-s-mozilla
.cm-attribute
,
90 .cm-s-mozilla
.cm-builtin
,
91 .cm-s-mozilla
.cm-keyword
,
92 :is
(.cm-editor
, .cm-highlighted
) .tok-keyword
,
93 .variables-view-variable > .title > .name {
94 color: var
(--theme-highlight-red
);
97 .cm-s-mozilla
.cm-def
,
98 .cm-s-mozilla
.cm-variable-2
,
99 :is
(.cm-editor
, .cm-highlighted
) :is
(
100 .tok-variableName
.tok-definition
,
103 color: var
(--theme-highlight-blue
);
106 .cm-s-mozilla
.cm-variable
,
107 :is
(.cm-editor
, .cm-highlighted
) .tok-variableName2
{
108 color: var
(--theme-highlight-purple
);
111 .cm-s-mozilla
.cm-property
,
112 :is
(.cm-editor
, .cm-highlighted
) .tok-propertyName
{
113 color: var
(--theme-highlight-green
);
116 .CodeMirror-Tern-completion-object:before {
117 background-color: #3689b2;
121 .cm-s-mozilla
.cm-tag
,
122 .cm-s-mozilla
.cm-header
,
123 .cm-s-mozilla
.cm-bracket
,
124 .cm-s-mozilla
.cm-qualifier
,
125 :is
(.cm-editor
, .cm-highlighted
) .tok-heading
,
126 .variables-view-property > .title > .name {
127 color: var
(--theme-highlight-blue
);
130 .CodeMirror-Tern-completion-array:before {
131 background-color: var
(--theme-highlight-bluegrey
);
135 color: var
(--theme-highlight-purple
);
138 .cm-s-mozilla
.cm-string
,
139 .cm-s-mozilla
.cm-string-2
,
140 :is
(.cm-editor
, .cm-highlighted
) .tok-string
,
141 .variable-or-property
.token-string
,
142 .CodeMirror-Tern-farg {
146 .CodeMirror-Tern-completion-string:before
,
147 .CodeMirror-Tern-completion-fn:before {
148 background-color: #b26b47;
151 .cm-s-mozilla
.cm-atom
,
152 .cm-s-mozilla
.cm-quote
,
153 .cm-s-mozilla
.cm-error
,
154 :is
(.cm-editor
, .cm-highlighted
) :is
(
159 .variable-or-property
.token-boolean
,
160 .variable-or-property
.token-domnode
,
161 .variable-or-property[exception] > .title > .name {
162 color: var
(--theme-highlight-red
);
165 .CodeMirror-Tern-completion-bool:before {
166 background-color: #bf5656;
169 .variable-or-property .token-domnode {
175 .devtools-sidebar-tabs tabs
,
176 .devtools-sidebar-alltabs
,
177 .cm-s-mozilla .CodeMirror-dialog { /* General toolbar styling */
178 color: var
(--theme-body-color
);
179 background-color: var
(--theme-toolbar-background
);
180 border-color: var
(--theme-splitter-color
);
184 background: var
(--theme-contrast-background
);
188 color: var
(--theme-contrast-color
);
192 box-shadow: 0 0 0 1px #818181;
195 /* CodeMirror specific styles.
196 * Best effort to match the existing theme, some of the colors
197 * are duplicated here to prevent weirdness in the main theme. */
199 .CodeMirror.cm-s-mozilla { /* Inherit platform specific font sizing and styles */
200 font-family: inherit
;
202 background: transparent
;
205 .CodeMirror
.cm-s-mozilla pre
,
206 .CodeMirror
.cm-s-mozilla pre
.CodeMirror-line
,
207 .CodeMirror.cm-s-mozilla pre.CodeMirror-line-like {
208 color: var
(--theme-text-color-strong
);
211 .cm-s-mozilla
.cm-operator
,
212 :is
(.cm-editor
, .cm-highlighted
) :is
(
216 color: var
(--theme-body-color
);
219 .cm-s-mozilla
.cm-variable-3
,
220 .cm-s-mozilla .cm-special {
221 color: var
(--theme-text-color-strong
);
224 .cm-s-mozilla
.CodeMirror-lines
.CodeMirror-cursor
,
225 .cm-editor .cm-cursor {
226 border-left: solid
1px #fff;
228 .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor.CodeMirror-secondarycursor {
229 border-left-color: #aaa;
232 .cm-s-mozilla .CodeMirror-activeline-background { /* selected color with alpha */
233 background: rgba
(185, 215, 253, .15);
236 /* Highlight for a line that contains an error. */
237 div
.CodeMirror div
.error-line
{
238 background: rgba
(255,0,0,0.2);
241 /* Generic highlighted text */
242 div
.CodeMirror span
.marked-text
{
243 background: rgba
(255,255,0,0.2);
244 border: 1px dashed rgba
(192,192,0,0.6);
245 margin-inline-start: -1px;
246 margin-inline-end: -1px;
250 .cm-s-mozilla
.empty-line
.CodeMirror-linenumber
,
252 :is
(.cm-editor
, .cm-highlighted
) .cm-gutterElement
.empty-line
{
253 color: var
(--grey-50
);
256 /* Blackboxing lines */
257 .CodeMirror-lines
.blackboxed-line :is
(span
, .cm-comment
, .CodeMirror-gutter-elt
),
259 .cm-gutterElement.blackboxed-line, .cm-line.blackboxed-line span[class^="tok-"] {
263 /* Highlight for evaluating current statement. */
264 div
.CodeMirror span
.eval-text
{
265 background-color: #556;
268 .cm-s-mozilla
.CodeMirror-linenumber
, /* line number text */
270 :is
(.cm-editor
, .cm-highlighted
) .cm-gutterElement
{
271 color: var
(--grey-40
);
274 .cm-s-mozilla
.CodeMirror-gutters
,
275 .cm-editor .cm-gutters { /* vertical line next to line numbers */
276 border-right-color: var
(--theme-toolbar-background
);
277 background-color: var
(--theme-sidebar-background
);
280 .CodeMirror-Tern-fname {
285 .CodeMirror-Tern-tooltip {
286 box-shadow: 0 0 4px rgba
(255, 255, 255, .3);
287 background-color: #0f171f;
288 color: var
(--theme-body-color
);