Commit | Line | Data |
---|---|---|
2efcd25d RK |
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/. */ | |
5 | ||
6 | /* According to: | |
7 | * https://bugzilla.mozilla.org/show_bug.cgi?id=715472#c17 | |
8 | */ | |
de5e780d RK |
9 | :root { |
10 | --theme-body-background: #000000; | |
11 | --theme-sidebar-background: #000000; | |
12 | --theme-contrast-background: #402800; | |
13 | --theme-contrast-border: #A09090; | |
6f5a7408 | 14 | --theme-contrast-background2: #795900; |
de5e780d | 15 | |
6f5a7408 | 16 | /* --theme-tab-toolbar-background: #.252c33; */ |
de5e780d RK |
17 | --theme-toolbar-background: #000000; |
18 | --theme-hover-background: #FFCF00; | |
19 | --theme-hover-color: #000000; | |
20752032 RK |
20 | --theme-active-background: #FFCF00; |
21 | --theme-active-color: #000000; | |
de5e780d RK |
22 | --theme-selection-background: #008484; |
23 | --theme-selection-color: #000000; | |
24 | --theme-selection-background2: #004242; | |
25 | --theme-selection-color2: #FF9F00; | |
8c6555e2 | 26 | --theme-selection-background-semitransparent: rgba(0, 132, 132, .5); |
de5e780d RK |
27 | --theme-splitter-color: #9C9CFF; |
28 | --theme-comment: #A09090; | |
29 | ||
30 | --theme-contrastsidebar-background: #A09090; | |
31 | --theme-contrastsidebar-color: #000000; | |
32 | --theme-contrastsidebar-bordercolor: #000000; | |
33 | ||
34 | --theme-body-color: #FF9F00; | |
35 | --theme-body-color-alt: #A09090; | |
36 | --theme-content-color1: #FF9F00; | |
37 | --theme-content-color2: #A09090; | |
38 | --theme-content-color3: #FF9F00; | |
39 | --theme-content-disabled: #8050B0; | |
40 | ||
41 | --theme-text-blue: #3333FF; | |
42 | --theme-highlight-green: #008484; | |
43 | --theme-highlight-blue: #9C9CFF; | |
44 | --theme-highlight-bluegrey: #A09090; | |
45 | --theme-highlight-purple: #C09070; | |
46 | --theme-highlight-darkpurple: #6000CF; | |
47 | --theme-highlight-lightorange: #FFCF00; | |
48 | --theme-highlight-orange: #FF9F00; | |
49 | --theme-highlight-red: #FF0000; | |
50 | --theme-highlight-pink: #E7ADE7; | |
51 | } | |
52 | ||
2efcd25d | 53 | .theme-body { |
de5e780d RK |
54 | background: var(--theme-body-background); |
55 | color: var(--theme-body-color); | |
2efcd25d RK |
56 | } |
57 | ||
45dc7657 | 58 | .theme-sidebar { |
de5e780d RK |
59 | background: var(--theme-sidebar-background); |
60 | color: var(--theme-content-color1); | |
45dc7657 RK |
61 | } |
62 | ||
dfa34f73 | 63 | ::-moz-selection { |
de5e780d RK |
64 | background-color: var(--theme-selection-background); |
65 | color: var(--theme-selection-color); | |
dfa34f73 RK |
66 | } |
67 | ||
649b5d38 | 68 | .theme-bg-darker { |
8c6555e2 | 69 | background: var(--theme-selection-background-semitransparent); |
2efcd25d RK |
70 | } |
71 | ||
ed88669c RK |
72 | .theme-selected, |
73 | .CodeMirror-hint-active { | |
de5e780d RK |
74 | background-color: var(--theme-selection-background2); |
75 | color: var(--theme-selection-color2); | |
2efcd25d RK |
76 | } |
77 | ||
de57e474 | 78 | .theme-bg-contrast, |
de5e780d RK |
79 | .variable-or-property:not([overridden])[changed] { |
80 | background: var(--theme-contrast-background); | |
3a0880a9 RK |
81 | } |
82 | ||
7600e0b1 RK |
83 | .theme-link, |
84 | .cm-s-mozilla .cm-link { /* original: blue */ | |
de5e780d | 85 | color: var(--theme-text-blue); |
2efcd25d RK |
86 | } |
87 | ||
6568957a RK |
88 | /* |
89 | * FIXME: http://bugzil.la/575675 CSS links without :visited set cause assertion | |
90 | * failures in debug builds. | |
91 | */ | |
92 | .theme-link:visited, | |
ed88669c | 93 | .cm-s-mozilla .cm-link:visited, |
de5e780d RK |
94 | .CodeMirror-Tern-type { |
95 | color: var(--theme-text-blue); | |
6568957a RK |
96 | } |
97 | ||
7600e0b1 RK |
98 | .theme-comment, |
99 | .cm-s-mozilla .cm-meta, | |
100 | .cm-s-mozilla .cm-hr, | |
de57e474 RK |
101 | .cm-s-mozilla .cm-comment, |
102 | .variable-or-property .token-undefined, | |
de5e780d | 103 | .variable-or-property .token-null, |
ed88669c | 104 | .CodeMirror-Tern-completion-unknown:before { |
de5e780d | 105 | color: var(--theme-comment); |
ed88669c RK |
106 | } |
107 | ||
2efcd25d RK |
108 | .theme-gutter { |
109 | background-color: #000000; | |
de5e780d | 110 | color: var(--theme-content-color3); |
2efcd25d RK |
111 | border-color: #9C9CFF; |
112 | } | |
113 | ||
114 | .theme-separator { /* original: grey */ | |
115 | border-color: #8050B0; | |
116 | } | |
117 | ||
7600e0b1 | 118 | .theme-fg-color1, |
de57e474 RK |
119 | .cm-s-mozilla .cm-number, |
120 | .variable-or-property .token-number, | |
dfa34f73 | 121 | .variable-or-property[return] > .title > .name, |
de5e780d RK |
122 | .variable-or-property[scope] > .title > .name { |
123 | color: var(--theme-highlight-green); | |
2efcd25d RK |
124 | } |
125 | ||
ed88669c RK |
126 | .CodeMirror-Tern-completion-number:before { |
127 | background-color: #008484; | |
128 | } | |
129 | ||
7600e0b1 RK |
130 | .theme-fg-color2, |
131 | .cm-s-mozilla .cm-attribute, | |
7600e0b1 RK |
132 | .cm-s-mozilla .cm-variable, |
133 | .cm-s-mozilla .cm-def, | |
7600e0b1 | 134 | .cm-s-mozilla .cm-property, |
de57e474 | 135 | .cm-s-mozilla .cm-qualifier, |
de5e780d RK |
136 | .variables-view-variable > .title > .name { |
137 | color: var(--theme-highlight-blue); | |
2efcd25d RK |
138 | } |
139 | ||
ed88669c RK |
140 | .CodeMirror-Tern-completion-object:before { |
141 | background-color: #9C9CFF; | |
142 | } | |
143 | ||
3d64e0ce RK |
144 | .cm-s-mozilla .cm-unused-line { |
145 | text-decoration: line-through; | |
de5e780d | 146 | text-decoration-color: #8050B0; |
3d64e0ce RK |
147 | } |
148 | ||
149 | .cm-s-mozilla .cm-executed-line { | |
150 | background-color: #404000; | |
151 | } | |
152 | ||
7600e0b1 | 153 | .theme-fg-color3, |
6568957a | 154 | .cm-s-mozilla .cm-builtin, |
7600e0b1 | 155 | .cm-s-mozilla .cm-tag, |
de57e474 | 156 | .cm-s-mozilla .cm-header, |
de5e780d | 157 | .cm-s-mozilla .cm-bracket, |
de57e474 | 158 | .variables-view-property > .title > .name, |
de5e780d RK |
159 | .variable-or-property[safe-getter] > .title > .name { |
160 | color: var(--theme-highlight-pink); | |
2efcd25d RK |
161 | } |
162 | ||
ed88669c | 163 | .CodeMirror-Tern-completion-array:before { |
de5e780d | 164 | color: var(--theme-highlight-pink); /* var(--theme-highlight-bluegrey) */ |
ed88669c RK |
165 | } |
166 | ||
de5e780d RK |
167 | .theme-fg-color4 { |
168 | color: var(--theme-highlight-purple); | |
2efcd25d RK |
169 | } |
170 | ||
7600e0b1 | 171 | .theme-fg-color5, |
de5e780d RK |
172 | .cm-s-mozilla .cm-keyword { |
173 | color: var(--theme-highlight-lightorange); | |
2efcd25d RK |
174 | } |
175 | ||
6568957a RK |
176 | .theme-fg-color6, |
177 | .cm-s-mozilla .cm-string, | |
de57e474 | 178 | .cm-s-mozilla .cm-string-2, |
ed88669c | 179 | .variable-or-property .token-string, |
de5e780d RK |
180 | .CodeMirror-Tern-farg { |
181 | color: var(--theme-highlight-pink); /* -orange? */ | |
2efcd25d RK |
182 | } |
183 | ||
ed88669c RK |
184 | .CodeMirror-Tern-completion-string:before, |
185 | .CodeMirror-Tern-completion-fn:before { | |
186 | background-color: #E7ADE7; | |
187 | } | |
188 | ||
7600e0b1 | 189 | .theme-fg-color7, |
6568957a RK |
190 | .cm-s-mozilla .cm-atom, |
191 | .cm-s-mozilla .cm-quote, | |
de57e474 RK |
192 | .cm-s-mozilla .cm-error, |
193 | .variable-or-property .token-boolean, | |
46e71434 | 194 | .variable-or-property .token-domnode, |
de5e780d RK |
195 | .variable-or-property[exception] > .title > .name { |
196 | color: var(--theme-highlight-red); | |
2efcd25d | 197 | } |
3a0880a9 | 198 | |
ed88669c RK |
199 | .CodeMirror-Tern-completion-bool:before { |
200 | background-color: #FF0000; | |
201 | } | |
202 | ||
46e71434 RK |
203 | .variable-or-property .token-domnode { |
204 | font-weight: bold; | |
205 | } | |
206 | ||
6dc70335 | 207 | .theme-toolbar, |
45dc7657 | 208 | .devtools-toolbar, |
589b5528 RK |
209 | .devtools-sidebar-tabs > tabs, |
210 | .CodeMirror-dialog { /* General toolbar styling */ | |
de5e780d RK |
211 | /* color: var(--theme-body-color-alt); |
212 | background-color: var(--theme-toolbar-background);*/ | |
6dc70335 RK |
213 | } |
214 | ||
215 | ||
3a0880a9 RK |
216 | .theme-fg-contrast { /* To be used for text on theme-bg-contrast */ |
217 | color: #FFCF00; | |
218 | } | |
219 | ||
220 | .ruleview-colorswatch, | |
9168a62c RK |
221 | .computedview-colorswatch, |
222 | .ruleview-bezierswatch { | |
dccbbf95 | 223 | /* box-shadow: 0 0 0 1px #818181; */ |
3a0880a9 | 224 | } |
7600e0b1 | 225 | |
de57e474 RK |
226 | .variables-view-scope:focus > .title, |
227 | .variable-or-property:focus > .title { | |
228 | background-color: #008484; /* fg-color2 */ | |
229 | color: #000000; | |
230 | } | |
231 | ||
7600e0b1 RK |
232 | /* CodeMirror specific styles. |
233 | * Best effort to match the existing theme, some of the colors | |
234 | * are duplicated here to prevent weirdness in the main theme. */ | |
235 | ||
236 | .CodeMirror { /* Inherit platform specific font sizing and styles */ | |
237 | font-family: inherit; | |
238 | font-size: inherit; | |
239 | background: transparent; | |
240 | } | |
241 | ||
242 | .CodeMirror pre, | |
6568957a RK |
243 | .cm-s-mozilla .cm-variable-2, |
244 | .cm-s-mozilla .cm-variable-3, | |
7600e0b1 | 245 | .cm-s-mozilla .cm-operator, |
de5e780d RK |
246 | .cm-s-mozilla .cm-special { |
247 | color: var(--theme-content-color1); | |
7600e0b1 RK |
248 | } |
249 | ||
250 | .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor { | |
251 | border-left: solid 1px #FF9F00; | |
252 | } | |
253 | ||
254 | .cm-s-mozilla.CodeMirror-focused .CodeMirror-selected { /* selected text (focused) */ | |
255 | background: #008484; | |
256 | color: #FFCF00; | |
257 | } | |
258 | ||
6568957a | 259 | .cm-s-mozilla .CodeMirror-selected { /* selected text (unfocused) */ |
7600e0b1 RK |
260 | background: #008484; |
261 | color: #000000; | |
262 | } | |
263 | ||
6568957a | 264 | .cm-s-mozilla .CodeMirror-activeline-background { /* selected color with alpha */ |
3886293f | 265 | background: rgba(0, 132, 132, .25); |
6568957a RK |
266 | } |
267 | ||
268 | div.cm-s-mozilla span.CodeMirror-matchingbracket { /* highlight brackets */ | |
3886293f | 269 | outline: solid 1px rgba(0, 132, 132, .4); |
6568957a RK |
270 | color: #FFCF00; |
271 | } | |
272 | ||
d2ce251d RK |
273 | /* Highlight for a line that contains an error. */ |
274 | div.CodeMirror div.error-line { | |
3886293f | 275 | background: rgba(255, 0, 0, 0.2); |
d2ce251d RK |
276 | } |
277 | ||
278 | /* Highlight for a line that represents a stack frame's location. */ | |
279 | div.CodeMirror div.debug-line { | |
3886293f | 280 | background: rgba(156, 156, 255, 0.2); |
d2ce251d RK |
281 | } |
282 | ||
283 | /* Generic highlighted text */ | |
284 | div.CodeMirror span.marked-text { | |
285 | background: rgba(255,207,0,0.2); | |
3886293f | 286 | border: 1px dashed rgba(156, 156, 255, 0.6); |
d2ce251d RK |
287 | -moz-margin-start: -1px; |
288 | -moz-margin-end: -1px; | |
289 | } | |
290 | ||
291 | /* Highlight for evaluating current statement. */ | |
292 | div.CodeMirror span.eval-text { | |
293 | background-color: #403800; | |
294 | } | |
295 | ||
6568957a | 296 | .cm-s-mozilla .CodeMirror-linenumber { /* line number text */ |
de5e780d | 297 | color: var(--theme-content-color2); |
6568957a RK |
298 | } |
299 | ||
300 | .cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */ | |
de5e780d RK |
301 | border-right-color: var(--theme-contrast-border); |
302 | background-color: var(--theme-contrast-background); | |
7600e0b1 RK |
303 | } |
304 | ||
305 | .cm-s-markup-view pre { | |
306 | line-height: 1.4em; | |
307 | min-height: 1.4em; | |
308 | } | |
c5987919 | 309 | |
649b5d38 RK |
310 | /* Twisty and checkbox controls */ |
311 | .theme-twisty, .theme-checkbox { | |
312 | width: 14px; | |
313 | height: 14px; | |
314 | background-repeat: no-repeat; | |
315 | background-image: url("chrome://browser/skin/devtools/controls.png"); | |
316 | background-size: 28px 28px; | |
317 | } | |
318 | ||
319 | .theme-twisty { | |
320 | cursor: pointer; | |
321 | background-position: -0px -14px; | |
322 | } | |
323 | ||
324 | .theme-twisty:-moz-focusring { | |
325 | outline-style: none; | |
326 | } | |
327 | ||
328 | .theme-twisty[open] { | |
329 | background-position: -14px -14px; | |
330 | } | |
331 | ||
2b5a5147 RK |
332 | .theme-twisty[invisible] { |
333 | visibility: hidden; | |
334 | } | |
335 | ||
649b5d38 RK |
336 | .theme-checkbox { |
337 | display: inline-block; | |
338 | border: 0; | |
339 | padding: 0; | |
340 | outline: none; | |
341 | background-position: 0 0; | |
342 | } | |
343 | ||
344 | .theme-checkbox[checked] { | |
345 | background-position: -14px 0; | |
346 | } | |
347 | ||
348 | @media (min-resolution: 2dppx) { | |
349 | .theme-twisty, .theme-checkbox { | |
350 | background-image: url("chrome://browser/skin/devtools/controls@2x.png"); | |
351 | } | |
352 | } | |
353 | ||
6dc70335 RK |
354 | /* XUL panel styling (see browser/devtools/shared/widgets/Tooltip.js) */ |
355 | ||
356 | .theme-tooltip-panel .panel-arrowcontent { | |
357 | /* padding: 5px; */ | |
358 | background: rgba(0, 0, 0, .9); | |
359 | /* border-radius: 5px; | |
360 | box-shadow: none; | |
361 | border: 3px solid #9C9CFF; */ | |
362 | } | |
363 | ||
364 | /* Overring panel arrow images to fit with our light and dark themes */ | |
365 | /* | |
366 | .theme-tooltip-panel .panel-arrow[side="top"] { | |
367 | list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-vertical-dark.png"); | |
368 | margin-bottom: -4px; | |
369 | } | |
370 | ||
371 | .theme-tooltip-panel .panel-arrow[side="bottom"] { | |
372 | list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-vertical-dark.png"); | |
373 | margin-top: -4px; | |
374 | } | |
375 | ||
376 | .theme-tooltip-panel .panel-arrow[side="left"] { | |
377 | list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-horizontal-dark.png"); | |
378 | margin-right: -4px; | |
379 | } | |
380 | ||
381 | .theme-tooltip-panel .panel-arrow[side="right"] { | |
382 | list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-horizontal-dark.png"); | |
383 | margin-left: -4px; | |
384 | } | |
385 | ||
386 | @media (min-resolution: 2dppx) { | |
387 | .theme-tooltip-panel .panel-arrow[side="top"], | |
388 | .theme-tooltip-panel .panel-arrow[side="bottom"] { | |
389 | list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-vertical-dark@2x.png"); | |
390 | } | |
391 | ||
392 | .theme-tooltip-panel .panel-arrow[side="left"], | |
393 | .theme-tooltip-panel .panel-arrow[side="right"] { | |
394 | list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-horizontal-dark@2x.png"); | |
395 | } | |
396 | } | |
397 | */ | |
398 | .theme-tooltip-panel .devtools-tooltip-simple-text { | |
399 | /* color: white; */ | |
400 | border-bottom: 1px solid #A09090; | |
401 | } | |
402 | ||
403 | .theme-tooltip-panel .devtools-tooltip-simple-text:last-child { | |
404 | border-bottom: 0; | |
405 | } | |
406 | ||
45dc7657 RK |
407 | .devtools-textinput, |
408 | .devtools-searchinput { | |
409 | background-color: #000000; | |
410 | color: #E7ADE7; | |
411 | } | |
412 | ||
ed88669c RK |
413 | .CodeMirror-Tern-fname { |
414 | color: #A09090; | |
415 | } | |
416 | ||
417 | .CodeMirror-hints, | |
418 | .CodeMirror-Tern-tooltip { | |
419 | background-color: #000000; | |
de5e780d | 420 | color: var(--theme-body-color); |
ed88669c RK |
421 | } |
422 | ||
3886293f RK |
423 | /* === BEGIN toolbars.inc.css === */ |
424 | ||
2b5a5147 RK |
425 | /* Toolbars */ |
426 | .devtools-toolbar, | |
427 | .devtools-sidebar-tabs > tabs { | |
428 | } | |
429 | ||
3886293f RK |
430 | .devtools-toolbar { |
431 | } | |
432 | ||
9168a62c RK |
433 | .devtools-toolbar checkbox { |
434 | /* LCARStrek checkbox colors don't work well against toolbar background */ | |
28e80a05 | 435 | background-color: var(--theme-toolbar-background); |
3886293f RK |
436 | padding: 2px; |
437 | } | |
9168a62c RK |
438 | .devtools-toolbar checkbox .checkbox-check { |
439 | } | |
440 | .devtools-toolbar checkbox .checkbox-label-box { | |
441 | } | |
442 | .devtools-toolbar checkbox .checkbox-label-box .checkbox-label { | |
443 | } | |
3886293f | 444 | |
2b5a5147 RK |
445 | /* Toolbar buttons */ |
446 | .devtools-menulist, | |
447 | .devtools-toolbarbutton { | |
9168a62c | 448 | /* transition: background 0.05s ease-in-out; */ |
2b5a5147 RK |
449 | } |
450 | ||
451 | .devtools-menulist:-moz-focusring, | |
3886293f | 452 | .devtools-toolbarbutton:-moz-focusring { |
28e80a05 | 453 | outline: 1px dotted var(--theme-selection-color); |
3886293f RK |
454 | } |
455 | ||
2b5a5147 RK |
456 | .devtools-toolbarbutton[standalone] { |
457 | } | |
458 | .devtools-toolbarbutton[label][standalone] { | |
3886293f RK |
459 | } |
460 | ||
2b5a5147 RK |
461 | .devtools-toolbarbutton:not([label]), |
462 | .devtools-toolbarbutton[text-as-image] { | |
3886293f RK |
463 | min-width: 20px; |
464 | } | |
465 | ||
9168a62c RK |
466 | #toolbox-buttons .devtools-toolbarbutton[text-as-image] { |
467 | -moz-padding-start: 5px; | |
468 | -moz-padding-end: 5px; | |
469 | min-width: inherit; | |
470 | } | |
471 | ||
cac2a998 RK |
472 | /* Command buttons with menupopups should be styled slightly differently - |
473 | no background color and a bit more narrow */ | |
474 | #toolbox-buttons .devtools-toolbarbutton:not([text-as-image]):not(:hover):not([open=true]) { | |
475 | background: transparent; | |
476 | } | |
477 | #toolbox-buttons .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker { | |
478 | padding: 0 2px; | |
479 | } | |
480 | ||
3886293f RK |
481 | .devtools-toolbarbutton:not([label]) > .toolbarbutton-text { |
482 | display: none; | |
483 | } | |
484 | ||
2b5a5147 | 485 | .devtools-toolbar .devtools-toolbarbutton { |
2f2239a0 | 486 | -moz-margin-start: 2px; |
3886293f RK |
487 | } |
488 | ||
2b5a5147 | 489 | .devtools-toolbarbutton > .toolbarbutton-icon { |
46e71434 RK |
490 | } |
491 | ||
2b5a5147 | 492 | .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { |
9168a62c | 493 | /* -moz-box-orient: horizontal; */ |
3886293f RK |
494 | } |
495 | ||
2b5a5147 | 496 | .devtools-toolbarbutton[type=menu-button] { |
3886293f RK |
497 | } |
498 | ||
9168a62c RK |
499 | .devtools-toolbarbutton > .toolbarbutton-menubutton-button > .toolbarbutton-icon { |
500 | } | |
501 | ||
2b5a5147 | 502 | .devtools-menulist > .menulist-dropmarker { |
3886293f RK |
503 | } |
504 | ||
2b5a5147 RK |
505 | .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker, |
506 | .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker { | |
3886293f RK |
507 | } |
508 | ||
2b5a5147 RK |
509 | .devtools-menulist, |
510 | .devtools-toolbarbutton { | |
3886293f RK |
511 | } |
512 | ||
2b5a5147 | 513 | /* Text-only buttons */ |
9168a62c RK |
514 | .devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]), |
515 | #toolbox-buttons .devtools-toolbarbutton[text-as-image] { | |
2b5a5147 | 516 | /* background-color: rgba(0, 0, 0, .2); / Splitter */ |
3886293f RK |
517 | } |
518 | ||
2b5a5147 | 519 | /* Button States */ |
20752032 RK |
520 | .devtools-toolbarbutton:not([disabled]):hover, |
521 | #toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover, | |
522 | .devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover { | |
2b5a5147 | 523 | /* background: rgba(0, 0, 0, .3); / Splitters */ |
3886293f RK |
524 | } |
525 | ||
20752032 RK |
526 | .devtools-toolbarbutton:not([disabled]):hover:active, |
527 | #toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover:active, | |
528 | .devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover:active { | |
2b5a5147 | 529 | /* background: rgba(0, 0, 0, .4); / Splitters */ |
3886293f RK |
530 | } |
531 | ||
2b5a5147 | 532 | /* Menu type buttons and checked states */ |
9168a62c RK |
533 | .devtools-toolbarbutton[checked=true], |
534 | #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] { | |
535 | /* background: rgba(29, 79, 115, .7); / Select highlight blue / | |
28e80a05 | 536 | color: var(--theme-selection-color); */ |
9168a62c RK |
537 | } |
538 | ||
539 | .devtools-menulist[open=true], | |
540 | .devtools-toolbarbutton[open=true], | |
541 | .devtools-toolbarbutton[open=true]:hover, | |
542 | .devtools-toolbarbutton[open=true]:hover:active, | |
543 | .devtools-toolbarbutton[checked=true], | |
544 | .devtools-toolbarbutton[checked=true]:hover, | |
545 | #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] { | |
546 | /* background: rgba(29, 79, 115, .8); / Select highlight blue / | |
28e80a05 | 547 | color: var(--theme-selection-color); */ |
3886293f RK |
548 | } |
549 | ||
2b5a5147 | 550 | .devtools-toolbarbutton[checked=true]:hover { |
3886293f RK |
551 | } |
552 | ||
2b5a5147 RK |
553 | .devtools-option-toolbarbutton { |
554 | list-style-image: url("chrome://browser/skin/devtools/tool-options-tbutton.svg"); | |
555 | /* background: none; | |
556 | border: none; */ | |
557 | } | |
558 | ||
559 | .devtools-option-toolbarbutton:hover, | |
560 | .devtools-option-toolbarbutton[open=true] { | |
561 | list-style-image: url("chrome://browser/skin/devtools/tool-options.svg"); | |
3886293f RK |
562 | } |
563 | ||
46e71434 RK |
564 | /* Toolbar button groups */ |
565 | .devtools-toolbarbutton-group > .devtools-toolbarbutton { | |
566 | } | |
567 | ||
2b5a5147 | 568 | .devtools-toolbarbutton-group > .devtools-toolbarbutton:last-child { |
46e71434 RK |
569 | } |
570 | ||
2b5a5147 RK |
571 | .devtools-toolbarbutton-group + .devtools-toolbarbutton { |
572 | } | |
573 | ||
574 | .devtools-separator + .devtools-toolbarbutton { | |
46e71434 RK |
575 | } |
576 | ||
20752032 RK |
577 | /* HTML buttons, similar to toolbar buttons, but work in HTML documents */ |
578 | ||
579 | .devtools-button { | |
580 | border: 0 solid var(--theme-splitter-color); | |
581 | background: var(--theme-toolbar-background); | |
582 | margin: 0; | |
583 | padding: 0; | |
584 | min-width: 32px; | |
585 | min-height: 18px; | |
586 | /* The icon is absolutely positioned in the button using ::before */ | |
587 | position: relative; | |
588 | } | |
589 | ||
590 | .devtools-button[standalone] { | |
591 | min-height: 32px; | |
592 | border-width: 1px; | |
593 | } | |
594 | ||
595 | /* Button States */ | |
596 | .devtools-button:not([disabled]):hover { | |
597 | background: var(--theme-hover-background); | |
598 | color: var(--theme-hover-color); | |
599 | } | |
600 | ||
601 | .devtools-button:not([disabled]):hover:active { | |
602 | background: var(--theme-active-background); | |
603 | color: var(--theme-active-color); | |
604 | } | |
605 | ||
606 | /* Menu type buttons and checked states */ | |
607 | .devtools-button[checked] { | |
608 | background: var(--theme-selection-background); | |
609 | color: var(--theme-selection-color); | |
610 | } | |
611 | ||
612 | .devtools-button::before { | |
613 | content: ""; | |
614 | display: block; | |
615 | width: 16px; | |
616 | height: 16px; | |
617 | position: absolute; | |
618 | left: 50%; | |
619 | top: 50%; | |
620 | margin: -8px 0 0 -8px; | |
621 | background-repeat: no-repeat; | |
622 | } | |
623 | ||
624 | @media (min-resolution: 2dppx) { | |
625 | .devtools-button::before { | |
626 | background-size: 32px; | |
627 | } | |
628 | } | |
629 | ||
3886293f RK |
630 | /* Text input */ |
631 | ||
632 | .devtools-textinput, | |
633 | .devtools-searchinput { | |
dfa34f73 RK |
634 | /* -moz-appearance: none; |
635 | margin: 0 3px; | |
636 | border: 1px solid rgb(88, 94, 101); | |
3886293f | 637 | border-radius: 2px; |
dfa34f73 RK |
638 | background-color: rgba(24, 29, 32, 1); |
639 | padding: 4px 6px; | |
640 | color: rgba(184, 200, 217, 1);*/ | |
3886293f RK |
641 | } |
642 | ||
643 | .devtools-searchinput { | |
2b5a5147 RK |
644 | /* margin-top: 1px; |
645 | margin-bottom: 1px; | |
646 | padding: 0;*/ | |
dfa34f73 | 647 | -moz-padding-start: 22px; |
3886293f | 648 | -moz-padding-end: 12px; |
dfa34f73 | 649 | background-position: 8px center; |
46e71434 | 650 | background-size: 11px 11px; |
dfa34f73 | 651 | background-repeat: no-repeat; |
3886293f | 652 | font-size: inherit; |
46e71434 RK |
653 | |
654 | background-image: url("magnifying-glass.png"); | |
655 | } | |
656 | ||
657 | @media (min-resolution: 2dppx) { | |
934990f8 | 658 | .devtools-searchinput { |
46e71434 RK |
659 | background-image: url("magnifying-glass@2x.png"); |
660 | } | |
3886293f RK |
661 | } |
662 | ||
663 | .devtools-searchinput:-moz-locale-dir(rtl) { | |
dfa34f73 | 664 | background-position: calc(100% - 8px) center; |
3886293f RK |
665 | } |
666 | ||
667 | .devtools-searchinput > .textbox-input-box > .textbox-search-icons { | |
668 | display: none; | |
669 | } | |
670 | ||
3886293f | 671 | .devtools-no-search-result { |
28e80a05 | 672 | border-color: var(--theme-highlight-red) !important; |
3886293f RK |
673 | } |
674 | ||
675 | /* Close button */ | |
676 | ||
677 | .devtools-closebutton { | |
3886293f RK |
678 | min-width: 16px; |
679 | width: 16px; | |
680 | } | |
681 | ||
373d8c69 RK |
682 | .devtools-closebutton > image { |
683 | width: 16px; | |
684 | height: 16px; | |
685 | -moz-appearance: none; | |
686 | background-size: 32px 16px; | |
687 | background-image: url("chrome://browser/skin/devtools/close@2x.png"); | |
688 | background-position: 0 center; | |
689 | background-repeat: no-repeat; | |
3886293f RK |
690 | } |
691 | ||
373d8c69 RK |
692 | .devtools-closebutton:hover > image, |
693 | .devtools-closebutton:hover:active > image { | |
694 | background-position: -16px center; | |
695 | } | |
696 | ||
697 | .devtools-closebutton > .toolbarbutton-text { | |
698 | display: none; | |
3886293f RK |
699 | } |
700 | ||
701 | /* In-tools sidebar */ | |
702 | ||
703 | .devtools-sidebar-tabs { | |
704 | } | |
705 | ||
706 | .devtools-sidebar-tabs > tabpanels { | |
707 | padding: 0; | |
708 | border: 0; | |
709 | } | |
710 | ||
711 | .devtools-sidebar-tabs > tabs { | |
712 | position: static; | |
713 | overflow: hidden; | |
714 | } | |
715 | ||
716 | .devtools-sidebar-tabs > tabs > .tabs-right, | |
717 | .devtools-sidebar-tabs > tabs > .tabs-left { | |
718 | display: none; | |
719 | } | |
720 | ||
721 | .devtools-sidebar-tabs > tabs > tab { | |
722 | min-width: 78px; | |
723 | text-align: center; | |
724 | -moz-box-flex: 1; | |
725 | position: static; | |
726 | margin-top: 0; | |
727 | } | |
728 | ||
729 | .devtools-sidebar-tabs > tabs > tab:-moz-focusring { | |
730 | position: static; | |
731 | } | |
732 | ||
733 | .devtools-sidebar-tabs > tabs > tab:last-of-type { | |
734 | -moz-border-end-width: 0; | |
735 | } | |
736 | ||
cac2a998 | 737 | .devtools-sidebar-tabs > tabs > tab:first-child { |
3886293f RK |
738 | } |
739 | ||
740 | .devtools-sidebar-tabs > tabs > tab:hover { | |
741 | } | |
742 | ||
743 | .devtools-sidebar-tabs > tabs > tab:hover:active { | |
744 | } | |
745 | ||
dfa34f73 | 746 | .devtools-sidebar-tabs > tabs > tab[selected] + tab { |
3886293f RK |
747 | } |
748 | ||
dfa34f73 | 749 | .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover { |
3886293f RK |
750 | } |
751 | ||
dfa34f73 | 752 | .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover:active { |
3886293f RK |
753 | } |
754 | ||
a21f2959 | 755 | .devtools-sidebar-tabs > tabs > tab[selected], |
dfa34f73 | 756 | .devtools-sidebar-tabs > tabs > tab[selected]:hover:active { |
3886293f RK |
757 | } |
758 | ||
759 | /* Toolbox - moved from toolbox.css. | |
760 | * Rules that apply to the global toolbox like command buttons, | |
761 | * devtools tabs, docking buttons, etc. */ | |
762 | ||
3886293f RK |
763 | #toolbox-controls > toolbarbutton, |
764 | #toolbox-dock-buttons > toolbarbutton { | |
765 | min-width: 16px; | |
766 | /* padding: 1px 3px; */ | |
767 | } | |
768 | ||
373d8c69 RK |
769 | #toolbox-dock-buttons > toolbarbutton > image { |
770 | width: 16px; | |
771 | height: 16px; | |
772 | background-size: 32px 16px; | |
773 | background-position: 0 center; | |
774 | background-repeat: no-repeat; | |
3886293f | 775 | } |
373d8c69 RK |
776 | |
777 | #toolbox-dock-buttons > toolbarbutton:hover > image { | |
778 | background-position: -16px center; | |
3886293f | 779 | } |
373d8c69 RK |
780 | |
781 | #toolbox-dock-bottom > image { | |
782 | background-image: url("chrome://browser/skin/devtools/dock-bottom@2x.png"); | |
3886293f | 783 | } |
373d8c69 RK |
784 | |
785 | #toolbox-dock-side > image { | |
786 | background-image: url("chrome://browser/skin/devtools/dock-side@2x.png"); | |
3886293f RK |
787 | } |
788 | ||
373d8c69 RK |
789 | #toolbox-dock-window > image { |
790 | background-image: url("chrome://browser/skin/devtools/undock@2x.png"); | |
3886293f RK |
791 | } |
792 | ||
793 | #toolbox-dock-window, | |
794 | #toolbox-dock-bottom, | |
795 | #toolbox-dock-side { | |
796 | } | |
797 | ||
798 | #toolbox-dock-window:hover, | |
799 | #toolbox-dock-bottom:hover, | |
800 | #toolbox-dock-side:hover { | |
801 | } | |
802 | ||
2b5a5147 RK |
803 | .devtools-separator { |
804 | margin: 0 2px; | |
3d64e0ce RK |
805 | width: 2px; |
806 | } | |
807 | ||
2b5a5147 RK |
808 | #toolbox-buttons:empty + .devtools-separator, |
809 | .devtools-separator[invisible] { | |
3d64e0ce | 810 | visibility: hidden; |
3886293f RK |
811 | } |
812 | ||
2b5a5147 RK |
813 | #toolbox-controls-separator { |
814 | margin: 0; | |
815 | } | |
816 | ||
3886293f RK |
817 | /* Command buttons */ |
818 | ||
819 | .command-button { | |
820 | /* padding: 1px 4px; */ | |
821 | min-width: 16px; | |
822 | } | |
823 | ||
824 | .command-button:hover { | |
825 | } | |
826 | .command-button:hover:active { | |
827 | } | |
828 | ||
373d8c69 RK |
829 | .command-button > image { |
830 | width: 16px; | |
831 | height: 16px; | |
832 | background-size: 32px 16px; | |
833 | background-position: 0 center; | |
834 | background-repeat: no-repeat; | |
3886293f RK |
835 | } |
836 | ||
373d8c69 RK |
837 | .command-button:hover > image, |
838 | .command-button:hover:active > image, | |
cac2a998 RK |
839 | .command-button[checked=true] > image, |
840 | .command-button[open=true] > image { | |
373d8c69 | 841 | background-position: -16px center; |
3886293f RK |
842 | } |
843 | ||
373d8c69 | 844 | #command-button-paintflashing > image { |
45dc7657 | 845 | background-image: url("chrome://browser/skin/devtools/command-paintflashing.png"); |
3886293f RK |
846 | } |
847 | ||
589b5528 RK |
848 | #command-button-screenshot > image { |
849 | background-image: url("chrome://browser/skin/devtools/command-screenshot.png"); | |
850 | } | |
851 | ||
373d8c69 | 852 | #command-button-responsive > image { |
45dc7657 | 853 | background-image: url("chrome://browser/skin/devtools/command-responsivemode.png"); |
3886293f RK |
854 | } |
855 | ||
373d8c69 | 856 | #command-button-tilt > image { |
45dc7657 | 857 | background-image: url("chrome://browser/skin/devtools/command-tilt.png"); |
3886293f RK |
858 | } |
859 | ||
373d8c69 | 860 | #command-button-scratchpad > image { |
45dc7657 | 861 | background-image: url("chrome://browser/skin/devtools/command-scratchpad.png"); |
3886293f RK |
862 | } |
863 | ||
373d8c69 | 864 | #command-button-pick > image { |
45dc7657 | 865 | background-image: url("chrome://browser/skin/devtools/command-pick.png"); |
3886293f RK |
866 | } |
867 | ||
cac2a998 RK |
868 | #command-button-frames > image { |
869 | background-image: url("chrome://browser/skin/devtools/command-frames.png"); | |
870 | } | |
871 | ||
373d8c69 | 872 | #command-button-splitconsole > image { |
45dc7657 | 873 | background-image: url("chrome://browser/skin/devtools/command-console.png"); |
3886293f RK |
874 | } |
875 | ||
373d8c69 | 876 | #command-button-eyedropper > image { |
45dc7657 RK |
877 | background-image: url("chrome://browser/skin/devtools/command-eyedropper.png"); |
878 | } | |
879 | ||
880 | @media (min-resolution: 2dppx) { | |
881 | #command-button-paintflashing > image { | |
882 | background-image: url("chrome://browser/skin/devtools/command-paintflashing@2x.png"); | |
883 | } | |
884 | ||
589b5528 RK |
885 | #command-button-screenshot > image { |
886 | background-image: url("chrome://browser/skin/devtools/command-screenshot@2x.png"); | |
887 | } | |
888 | ||
45dc7657 RK |
889 | #command-button-responsive > image { |
890 | background-image: url("chrome://browser/skin/devtools/command-responsivemode@2x.png"); | |
891 | } | |
892 | ||
893 | #command-button-tilt > image { | |
894 | background-image: url("chrome://browser/skin/devtools/command-tilt@2x.png"); | |
895 | } | |
896 | ||
897 | #command-button-scratchpad > image { | |
898 | background-image: url("chrome://browser/skin/devtools/command-scratchpad@2x.png"); | |
899 | } | |
900 | ||
901 | #command-button-pick > image { | |
902 | background-image: url("chrome://browser/skin/devtools/command-pick@2x.png"); | |
903 | } | |
904 | ||
cac2a998 RK |
905 | #command-button-frames > image { |
906 | background-image: url("chrome://browser/skin/devtools/command-frames@2x.png"); | |
907 | } | |
908 | ||
45dc7657 RK |
909 | #command-button-splitconsole > image { |
910 | background-image: url("chrome://browser/skin/devtools/command-console@2x.png"); | |
911 | } | |
912 | ||
913 | #command-button-eyedropper > image { | |
914 | background-image: url("chrome://browser/skin/devtools/command-eyedropper@2x.png"); | |
915 | } | |
3886293f RK |
916 | } |
917 | ||
918 | /* Tabs */ | |
919 | ||
920 | .devtools-tabbar { | |
921 | } | |
922 | ||
923 | #toolbox-tabs { | |
fff8097b RK |
924 | margin: 0 2px; |
925 | -moz-padding-start: 3px; | |
3886293f RK |
926 | background-color: #000000; |
927 | color: #FFCF00; | |
928 | } | |
929 | ||
930 | .devtools-tab { | |
931 | min-width: 32px; | |
932 | max-width: 110px; | |
933 | color: #000000; | |
934 | margin: 0; | |
935 | -moz-margin-end: 3px; | |
936 | padding: 1px; | |
937 | -moz-padding-start: 3px; | |
938 | background-color: #C09070; | |
939 | border-radius: 8px 8px 0 0; | |
940 | } | |
941 | ||
942 | .devtools-tab > image { | |
943 | -moz-margin-end: 0px; | |
944 | /* -moz-margin-start: 4px; */ | |
945 | max-height: 16px; | |
946 | width: 16px; /* Prevents collapse during theme switching */ | |
947 | } | |
948 | ||
3886293f RK |
949 | .devtools-tab:hover > image { |
950 | } | |
951 | ||
952 | .devtools-tab:active > image, | |
dfa34f73 | 953 | .devtools-tab[selected] > image { |
3886293f RK |
954 | } |
955 | ||
956 | .devtools-tab:hover, | |
957 | .devtools-tab:hover:active { | |
28e80a05 RK |
958 | background-color: var(--theme-hover-background); |
959 | color: var(--theme-hover-color); | |
3886293f RK |
960 | } |
961 | ||
dfa34f73 | 962 | .devtools-tab[selected] { |
28e80a05 RK |
963 | background-color: var(--theme-selection-background); |
964 | color: var(--theme-selection-color); | |
3886293f RK |
965 | } |
966 | ||
967 | .devtools-tab > spacer { | |
968 | max-width: 0; | |
969 | -moz-box-flex: 0; | |
970 | } | |
971 | ||
972 | .devtools-tab > image { | |
973 | -moz-margin-end: 0; | |
974 | -moz-margin-start: 0; | |
975 | } | |
976 | ||
fff8097b RK |
977 | #toolbox-option-container { |
978 | background-color: #000000; | |
979 | -moz-padding-start: 3px; | |
980 | } | |
981 | ||
3886293f RK |
982 | #toolbox-tab-options { |
983 | min-width: 20px; | |
984 | } | |
985 | ||
986 | #toolbox-tab-options > image { | |
987 | -moz-margin-end: 3px; | |
988 | } | |
989 | ||
dfa34f73 RK |
990 | .devtools-tab:not([highlighted]) > .highlighted-icon, |
991 | .devtools-tab[selected] > .highlighted-icon, | |
992 | .devtools-tab:not([selected])[highlighted] > .default-icon { | |
3886293f RK |
993 | visibility: collapse; |
994 | } | |
995 | ||
dfa34f73 | 996 | .devtools-tab:not([selected])[highlighted] { |
3886293f RK |
997 | color: #FFCF00; |
998 | } | |
999 | ||
dfa34f73 RK |
1000 | .devtools-tab:not([highlighted]) > .highlighted-icon, |
1001 | .devtools-tab[selected] > .highlighted-icon, | |
1002 | .devtools-tab:not([selected])[highlighted] > .default-icon { | |
3886293f RK |
1003 | visibility: collapse; |
1004 | } | |
1005 | ||
3d64e0ce RK |
1006 | /* The options tab is special - it doesn't have the same parent |
1007 | as the other tabs (toolbox-option-container vs toolbox-tabs) */ | |
1008 | #toolbox-option-container .devtools-tab:not([selected]) { | |
1009 | /* background-color: transparent;*/ | |
1010 | } | |
1011 | #toolbox-option-container .devtools-tab { | |
1012 | /* border-color: transparent; | |
1013 | border-width: 0; | |
1014 | -moz-padding-start: 1px;*/ | |
1015 | } | |
1016 | #toolbox-tab-options > image { | |
1017 | /* margin: 0 8px;*/ | |
1018 | } | |
1019 | ||
3886293f RK |
1020 | .hidden-labels-box:not(.visible) > label, |
1021 | .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child { | |
1022 | display: none; | |
1023 | } | |
1024 | ||
b3bf08b1 RK |
1025 | .devtools-horizontal-splitter { |
1026 | /* border-bottom: 1px solid var(--theme-splitter-color); */ | |
1027 | } | |
1028 | ||
1029 | .devtools-side-splitter { | |
1030 | /* -moz-border-end: 1px solid var(--theme-splitter-color); | |
1031 | border-color: var(--theme-splitter-color); / Needed for responsive container at low width. */ | |
1032 | } | |
1033 | ||
3886293f | 1034 | /* === END toolbars.inc.css === */ |