1 /* vim:set ts=2 sw=2 sts=2 et: */
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 @import url(variables.css);
7 @import url(common.css);
8 @import url(toolbars.css);
16 background: var(--theme-body-background);
17 color: var(--theme-body-color);
21 background: var(--theme-sidebar-background);
22 color: var(--theme-content-color1);
26 background-color: var(--theme-selection-background);
27 color: var(--theme-selection-color);
31 background: var(--theme-selection-background-semitransparent);
35 .CodeMirror-hint-active {
36 background-color: var(--theme-selection-background2);
37 color: var(--theme-selection-color2);
41 .variable-or-property:not([overridden])[changed] {
42 background: var(--theme-contrast-background);
46 .cm-s-mozilla .cm-link { /* original: blue */
47 color: var(--theme-text-blue);
51 * FIXME: http://bugzil.la/575675 CSS links without :visited set cause assertion
52 * failures in debug builds.
55 .cm-s-mozilla .cm-link:visited,
56 .CodeMirror-Tern-type {
57 color: var(--theme-text-blue);
61 .cm-s-mozilla .cm-meta,
63 .cm-s-mozilla .cm-comment,
64 .variable-or-property .token-undefined,
65 .variable-or-property .token-null,
66 .CodeMirror-Tern-completion-unknown:before {
67 color: var(--theme-comment);
71 background-color: #000000;
72 color: var(--theme-content-color3);
73 border-color: #9C9CFF;
76 .theme-separator { /* original: grey */
77 border-color: #8050B0;
81 .cm-s-mozilla .cm-number,
82 .variable-or-property .token-number,
83 .variable-or-property[return] > .title > .name,
84 .variable-or-property[scope] > .title > .name {
85 color: var(--theme-highlight-green);
88 .CodeMirror-Tern-completion-number:before {
89 background-color: #008484;
93 .cm-s-mozilla .cm-attribute,
94 .cm-s-mozilla .cm-variable,
95 .cm-s-mozilla .cm-def,
96 .cm-s-mozilla .cm-property,
97 .cm-s-mozilla .cm-qualifier,
98 .variables-view-variable > .title > .name {
99 color: var(--theme-highlight-blue);
102 .CodeMirror-Tern-completion-object:before {
103 background-color: #9C9CFF;
106 .cm-s-mozilla .cm-unused-line {
107 text-decoration: line-through;
108 text-decoration-color: #8050B0;
111 .cm-s-mozilla .cm-executed-line {
112 background-color: #404000;
116 .cm-s-mozilla .cm-builtin,
117 .cm-s-mozilla .cm-tag,
118 .cm-s-mozilla .cm-header,
119 .cm-s-mozilla .cm-bracket,
120 .variables-view-property > .title > .name,
121 .variable-or-property[safe-getter] > .title > .name {
122 color: var(--theme-highlight-pink);
125 .CodeMirror-Tern-completion-array:before {
126 color: var(--theme-highlight-pink); /* var(--theme-highlight-bluegrey) */
130 color: var(--theme-highlight-purple);
134 .cm-s-mozilla .cm-keyword {
135 color: var(--theme-highlight-lightorange);
139 .cm-s-mozilla .cm-string,
140 .cm-s-mozilla .cm-string-2,
141 .variable-or-property .token-string,
142 .CodeMirror-Tern-farg {
143 color: var(--theme-highlight-pink); /* -orange? */
146 .CodeMirror-Tern-completion-string:before,
147 .CodeMirror-Tern-completion-fn:before {
148 background-color: #E7ADE7;
152 .cm-s-mozilla .cm-atom,
153 .cm-s-mozilla .cm-quote,
154 .cm-s-mozilla .cm-error,
155 .variable-or-property .token-boolean,
156 .variable-or-property .token-domnode,
157 .variable-or-property[exception] > .title > .name {
158 color: var(--theme-highlight-red);
161 .CodeMirror-Tern-completion-bool:before {
162 background-color: #FF0000;
165 .variable-or-property .token-domnode {
171 .devtools-sidebar-tabs tabs,
172 .devtools-sidebar-alltabs,
173 .CodeMirror-dialog { /* General toolbar styling */
174 /* color: var(--theme-body-color-alt);
175 background-color: var(--theme-toolbar-background);*/
179 .theme-fg-contrast { /* To be used for text on theme-bg-contrast */
183 .ruleview-colorswatch,
184 .computedview-colorswatch,
185 .ruleview-bezierswatch {
186 /* box-shadow: 0 0 0 1px #818181; */
189 .variables-view-scope:focus > .title,
190 .variable-or-property:focus > .title {
191 background-color: #008484; /* fg-color2 */
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. */
200 .CodeMirror.cm-s-mozilla { /* Inherit platform specific font sizing and styles */
201 font-family: inherit;
203 background: transparent;
207 .cm-s-mozilla .cm-variable-2,
208 .cm-s-mozilla .cm-variable-3,
209 .cm-s-mozilla .cm-operator,
210 .cm-s-mozilla .cm-special {
211 color: var(--theme-content-color1);
214 .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor {
215 border-left: solid 1px #FF9F00;
218 .cm-s-mozilla.CodeMirror-focused .CodeMirror-selected { /* selected text (focused) */
223 .cm-s-mozilla .CodeMirror-selected { /* selected text (unfocused) */
228 .cm-s-mozilla .CodeMirror-activeline-background { /* selected color with alpha */
229 background: rgba(0, 132, 132, .25);
232 div.cm-s-mozilla span.CodeMirror-matchingbracket { /* highlight brackets */
233 outline: solid 1px rgba(0, 132, 132, .4);
237 /* Highlight for a line that contains an error. */
238 div.CodeMirror div.error-line {
239 background: rgba(255, 0, 0, 0.2);
242 /* Highlight for a line that represents a stack frame's location. */
243 div.CodeMirror div.debug-line {
244 background: rgba(156, 156, 255, 0.2);
247 /* Generic highlighted text */
248 div.CodeMirror span.marked-text {
249 background: rgba(255,207,0,0.2);
250 border: 1px dashed rgba(156, 156, 255, 0.6);
251 -moz-margin-start: -1px;
252 -moz-margin-end: -1px;
255 /* Highlight for evaluating current statement. */
256 div.CodeMirror span.eval-text {
257 background-color: #403800;
260 .cm-s-mozilla .CodeMirror-linenumber { /* line number text */
261 color: var(--theme-content-color2);
264 .cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */
265 border-right-color: var(--theme-contrast-border);
266 background-color: var(--theme-contrast-background);
269 .cm-s-markup-view pre {
274 /* Twisty and checkbox controls */
275 .theme-twisty, .theme-checkbox {
278 background-repeat: no-repeat;
279 background-image: url("chrome://devtools/skin/controls.png");
280 background-size: 28px 28px;
285 background-position: -0px -14px;
288 .theme-twisty:-moz-focusring {
292 .theme-twisty[open] {
293 background-position: -14px -14px;
296 .theme-twisty[invisible] {
301 display: inline-block;
305 background-position: 0 0;
308 .theme-checkbox[checked] {
309 background-position: -14px 0;
312 @media (min-resolution: 1.1dppx) {
313 .theme-twisty, .theme-checkbox {
314 background-image: url("chrome://devtools/skin/controls@2x.png");
318 /* XUL panel styling (see browser/devtools/shared/widgets/Tooltip.js) */
320 .theme-tooltip-panel .panel-arrowcontent {
322 background: rgba(0, 0, 0, .9);
323 /* border-radius: 5px;
325 border: 3px solid #9C9CFF; */
328 /* Overring panel arrow images to fit with our light and dark themes */
330 .theme-tooltip-panel .panel-arrow[side="top"] {
331 list-style-image: url("chrome://devtools/skin/tooltip/arrow-vertical-dark.png");
335 .theme-tooltip-panel .panel-arrow[side="bottom"] {
336 list-style-image: url("chrome://devtools/skin/tooltip/arrow-vertical-dark.png");
340 .theme-tooltip-panel .panel-arrow[side="left"] {
341 list-style-image: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark.png");
345 .theme-tooltip-panel .panel-arrow[side="right"] {
346 list-style-image: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark.png");
350 @media (min-resolution: 1.1dppx) {
351 .theme-tooltip-panel .panel-arrow[side="top"],
352 .theme-tooltip-panel .panel-arrow[side="bottom"] {
353 list-style-image: url("chrome://devtools/skin/tooltip/arrow-vertical-dark@2x.png");
356 .theme-tooltip-panel .panel-arrow[side="left"],
357 .theme-tooltip-panel .panel-arrow[side="right"] {
358 list-style-image: url("chrome://devtools/skin/tooltip/arrow-horizontal-dark@2x.png");
362 .theme-tooltip-panel .devtools-tooltip-simple-text {
364 border-bottom: 1px solid #A09090;
367 .theme-tooltip-panel .devtools-tooltip-simple-text:last-child {
372 .devtools-searchinput {
373 background-color: #000000;
375 border: 1px solid #9C9CFF;
378 .devtools-textinput:focus,
379 .devtools-searchinput:focus {
380 border-color: #008484;
383 .CodeMirror-Tern-fname {
388 .CodeMirror-Tern-tooltip {
389 background-color: #000000;
390 color: var(--theme-body-color);