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/. */
7 * https://bugzilla.mozilla.org/show_bug.cgi?id=715472#c17
10 --theme-body-background: #000000;
11 --theme-sidebar-background: #000000;
12 --theme-contrast-background: #402800;
13 --theme-contrast-border: #A09090;
14 --theme-contrast-background2: #795900;
16 /* --theme-tab-toolbar-background: #.252c33; */
17 --theme-toolbar-background: #000000;
18 --theme-hover-background: #FFCF00;
19 --theme-hover-color: #000000;
20 --theme-selection-background: #008484;
21 --theme-selection-color: #000000;
22 --theme-selection-background2: #004242;
23 --theme-selection-color2: #FF9F00;
24 --theme-selection-background-semitransparent: rgba(0, 132, 132, .5);
25 --theme-splitter-color: #9C9CFF;
26 --theme-comment: #A09090;
28 --theme-contrastsidebar-background: #A09090;
29 --theme-contrastsidebar-color: #000000;
30 --theme-contrastsidebar-bordercolor: #000000;
32 --theme-body-color: #FF9F00;
33 --theme-body-color-alt: #A09090;
34 --theme-content-color1: #FF9F00;
35 --theme-content-color2: #A09090;
36 --theme-content-color3: #FF9F00;
37 --theme-content-disabled: #8050B0;
39 --theme-text-blue: #3333FF;
40 --theme-highlight-green: #008484;
41 --theme-highlight-blue: #9C9CFF;
42 --theme-highlight-bluegrey: #A09090;
43 --theme-highlight-purple: #C09070;
44 --theme-highlight-darkpurple: #6000CF;
45 --theme-highlight-lightorange: #FFCF00;
46 --theme-highlight-orange: #FF9F00;
47 --theme-highlight-red: #FF0000;
48 --theme-highlight-pink: #E7ADE7;
52 background: var(--theme-body-background);
53 color: var(--theme-body-color);
57 background: var(--theme-sidebar-background);
58 color: var(--theme-content-color1);
62 background-color: var(--theme-selection-background);
63 color: var(--theme-selection-color);
67 background: var(--theme-selection-background-semitransparent);
71 .CodeMirror-hint-active {
72 background-color: var(--theme-selection-background2);
73 color: var(--theme-selection-color2);
77 .variable-or-property:not([overridden])[changed] {
78 background: var(--theme-contrast-background);
82 .cm-s-mozilla .cm-link { /* original: blue */
83 color: var(--theme-text-blue);
87 * FIXME: http://bugzil.la/575675 CSS links without :visited set cause assertion
88 * failures in debug builds.
91 .cm-s-mozilla .cm-link:visited,
92 .CodeMirror-Tern-type {
93 color: var(--theme-text-blue);
97 .cm-s-mozilla .cm-meta,
99 .cm-s-mozilla .cm-comment,
100 .variable-or-property .token-undefined,
101 .variable-or-property .token-null,
102 .CodeMirror-Tern-completion-unknown:before {
103 color: var(--theme-comment);
107 background-color: #000000;
108 color: var(--theme-content-color3);
109 border-color: #9C9CFF;
112 .theme-separator { /* original: grey */
113 border-color: #8050B0;
117 .cm-s-mozilla .cm-number,
118 .variable-or-property .token-number,
119 .variable-or-property[return] > .title > .name,
120 .variable-or-property[scope] > .title > .name {
121 color: var(--theme-highlight-green);
124 .CodeMirror-Tern-completion-number:before {
125 background-color: #008484;
129 .cm-s-mozilla .cm-attribute,
130 .cm-s-mozilla .cm-variable,
131 .cm-s-mozilla .cm-def,
132 .cm-s-mozilla .cm-property,
133 .cm-s-mozilla .cm-qualifier,
134 .variables-view-variable > .title > .name {
135 color: var(--theme-highlight-blue);
138 .CodeMirror-Tern-completion-object:before {
139 background-color: #9C9CFF;
142 .cm-s-mozilla .cm-unused-line {
143 text-decoration: line-through;
144 text-decoration-color: #8050B0;
147 .cm-s-mozilla .cm-executed-line {
148 background-color: #404000;
152 .cm-s-mozilla .cm-builtin,
153 .cm-s-mozilla .cm-tag,
154 .cm-s-mozilla .cm-header,
155 .cm-s-mozilla .cm-bracket,
156 .variables-view-property > .title > .name,
157 .variable-or-property[safe-getter] > .title > .name {
158 color: var(--theme-highlight-pink);
161 .CodeMirror-Tern-completion-array:before {
162 color: var(--theme-highlight-pink); /* var(--theme-highlight-bluegrey) */
166 color: var(--theme-highlight-purple);
170 .cm-s-mozilla .cm-keyword {
171 color: var(--theme-highlight-lightorange);
175 .cm-s-mozilla .cm-string,
176 .cm-s-mozilla .cm-string-2,
177 .variable-or-property .token-string,
178 .CodeMirror-Tern-farg {
179 color: var(--theme-highlight-pink); /* -orange? */
182 .CodeMirror-Tern-completion-string:before,
183 .CodeMirror-Tern-completion-fn:before {
184 background-color: #E7ADE7;
188 .cm-s-mozilla .cm-atom,
189 .cm-s-mozilla .cm-quote,
190 .cm-s-mozilla .cm-error,
191 .variable-or-property .token-boolean,
192 .variable-or-property .token-domnode,
193 .variable-or-property[exception] > .title > .name {
194 color: var(--theme-highlight-red);
197 .CodeMirror-Tern-completion-bool:before {
198 background-color: #FF0000;
201 .variable-or-property .token-domnode {
207 .devtools-sidebar-tabs > tabs,
208 .CodeMirror-dialog { /* General toolbar styling */
209 /* color: var(--theme-body-color-alt);
210 background-color: var(--theme-toolbar-background);*/
214 .theme-fg-contrast { /* To be used for text on theme-bg-contrast */
218 .ruleview-colorswatch,
219 .computedview-colorswatch,
220 .ruleview-bezierswatch {
221 /* box-shadow: 0 0 0 1px #818181; */
224 .variables-view-scope:focus > .title,
225 .variable-or-property:focus > .title {
226 background-color: #008484; /* fg-color2 */
230 /* CodeMirror specific styles.
231 * Best effort to match the existing theme, some of the colors
232 * are duplicated here to prevent weirdness in the main theme. */
234 .CodeMirror { /* Inherit platform specific font sizing and styles */
235 font-family: inherit;
237 background: transparent;
241 .cm-s-mozilla .cm-variable-2,
242 .cm-s-mozilla .cm-variable-3,
243 .cm-s-mozilla .cm-operator,
244 .cm-s-mozilla .cm-special {
245 color: var(--theme-content-color1);
248 .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor {
249 border-left: solid 1px #FF9F00;
252 .cm-s-mozilla.CodeMirror-focused .CodeMirror-selected { /* selected text (focused) */
257 .cm-s-mozilla .CodeMirror-selected { /* selected text (unfocused) */
262 .cm-s-mozilla .CodeMirror-activeline-background { /* selected color with alpha */
263 background: rgba(0, 132, 132, .25);
266 div.cm-s-mozilla span.CodeMirror-matchingbracket { /* highlight brackets */
267 outline: solid 1px rgba(0, 132, 132, .4);
271 /* Highlight for a line that contains an error. */
272 div.CodeMirror div.error-line {
273 background: rgba(255, 0, 0, 0.2);
276 /* Highlight for a line that represents a stack frame's location. */
277 div.CodeMirror div.debug-line {
278 background: rgba(156, 156, 255, 0.2);
281 /* Generic highlighted text */
282 div.CodeMirror span.marked-text {
283 background: rgba(255,207,0,0.2);
284 border: 1px dashed rgba(156, 156, 255, 0.6);
285 -moz-margin-start: -1px;
286 -moz-margin-end: -1px;
289 /* Highlight for evaluating current statement. */
290 div.CodeMirror span.eval-text {
291 background-color: #403800;
294 .cm-s-mozilla .CodeMirror-linenumber { /* line number text */
295 color: var(--theme-content-color2);
298 .cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */
299 border-right-color: var(--theme-contrast-border);
300 background-color: var(--theme-contrast-background);
303 .cm-s-markup-view pre {
308 /* Twisty and checkbox controls */
309 .theme-twisty, .theme-checkbox {
312 background-repeat: no-repeat;
313 background-image: url("chrome://browser/skin/devtools/controls.png");
314 background-size: 28px 28px;
319 background-position: -0px -14px;
322 .theme-twisty:-moz-focusring {
326 .theme-twisty[open] {
327 background-position: -14px -14px;
330 .theme-twisty[invisible] {
335 display: inline-block;
339 background-position: 0 0;
342 .theme-checkbox[checked] {
343 background-position: -14px 0;
346 @media (min-resolution: 2dppx) {
347 .theme-twisty, .theme-checkbox {
348 background-image: url("chrome://browser/skin/devtools/controls@2x.png");
352 /* XUL panel styling (see browser/devtools/shared/widgets/Tooltip.js) */
354 .theme-tooltip-panel .panel-arrowcontent {
356 background: rgba(0, 0, 0, .9);
357 /* border-radius: 5px;
359 border: 3px solid #9C9CFF; */
362 /* Overring panel arrow images to fit with our light and dark themes */
364 .theme-tooltip-panel .panel-arrow[side="top"] {
365 list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-vertical-dark.png");
369 .theme-tooltip-panel .panel-arrow[side="bottom"] {
370 list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-vertical-dark.png");
374 .theme-tooltip-panel .panel-arrow[side="left"] {
375 list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-horizontal-dark.png");
379 .theme-tooltip-panel .panel-arrow[side="right"] {
380 list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-horizontal-dark.png");
384 @media (min-resolution: 2dppx) {
385 .theme-tooltip-panel .panel-arrow[side="top"],
386 .theme-tooltip-panel .panel-arrow[side="bottom"] {
387 list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-vertical-dark@2x.png");
390 .theme-tooltip-panel .panel-arrow[side="left"],
391 .theme-tooltip-panel .panel-arrow[side="right"] {
392 list-style-image: url("chrome://browser/skin/devtools/tooltip/arrow-horizontal-dark@2x.png");
396 .theme-tooltip-panel .devtools-tooltip-simple-text {
398 border-bottom: 1px solid #A09090;
401 .theme-tooltip-panel .devtools-tooltip-simple-text:last-child {
405 .devtools-horizontal-splitter {
406 /* border-bottom: 1px solid var(--theme-splitter-color); */
409 .devtools-side-splitter {
410 /* -moz-border-end: 1px solid var(--theme-splitter-color);
411 border-color: var(--theme-splitter-color); / Needed for responsive container at low width. */
415 .devtools-searchinput {
416 background-color: #000000;
420 .CodeMirror-Tern-fname {
425 .CodeMirror-Tern-tooltip {
426 background-color: #000000;
427 color: var(--theme-body-color);
430 /* === BEGIN toolbars.inc.css === */
434 .devtools-sidebar-tabs > tabs {
440 .devtools-toolbar checkbox {
441 /* LCARStrek checkbox colors don't work well against toolbar background */
442 background-color: var(--theme-toolbar-background);
445 .devtools-toolbar checkbox .checkbox-check {
447 .devtools-toolbar checkbox .checkbox-label-box {
449 .devtools-toolbar checkbox .checkbox-label-box .checkbox-label {
452 /* Toolbar buttons */
454 .devtools-toolbarbutton {
455 /* transition: background 0.05s ease-in-out; */
458 .devtools-menulist:-moz-focusring,
459 .devtools-toolbarbutton:-moz-focusring {
460 outline: 1px dotted var(--theme-selection-color);
463 .devtools-toolbarbutton[standalone] {
465 .devtools-toolbarbutton[label][standalone] {
468 .devtools-toolbarbutton:not([label]),
469 .devtools-toolbarbutton[text-as-image] {
473 #toolbox-buttons .devtools-toolbarbutton[text-as-image] {
474 -moz-padding-start: 5px;
475 -moz-padding-end: 5px;
479 /* Command buttons with menupopups should be styled slightly differently -
480 no background color and a bit more narrow */
481 #toolbox-buttons .devtools-toolbarbutton:not([text-as-image]):not(:hover):not([open=true]) {
482 background: transparent;
484 #toolbox-buttons .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker {
488 .devtools-toolbarbutton:not([label]) > .toolbarbutton-text {
492 .devtools-toolbar .devtools-toolbarbutton {
495 .devtools-toolbarbutton > .toolbarbutton-icon {
498 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
499 /* -moz-box-orient: horizontal; */
502 .devtools-toolbarbutton[type=menu-button] {
505 .devtools-toolbarbutton > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
508 .devtools-menulist > .menulist-dropmarker {
511 .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
512 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
516 .devtools-toolbarbutton {
519 /* Text-only buttons */
520 .devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]),
521 #toolbox-buttons .devtools-toolbarbutton[text-as-image] {
522 /* background-color: rgba(0, 0, 0, .2); / Splitter */
526 .devtools-toolbarbutton:hover,
527 #toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover,
528 .devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover {
529 /* background: rgba(0, 0, 0, .3); / Splitters */
532 .devtools-toolbarbutton:hover:active,
533 #toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover:active,
534 .devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover:active {
535 /* background: rgba(0, 0, 0, .4); / Splitters */
538 /* Menu type buttons and checked states */
539 .devtools-toolbarbutton[checked=true],
540 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
541 /* background: rgba(29, 79, 115, .7); / Select highlight blue /
542 color: var(--theme-selection-color); */
545 .devtools-menulist[open=true],
546 .devtools-toolbarbutton[open=true],
547 .devtools-toolbarbutton[open=true]:hover,
548 .devtools-toolbarbutton[open=true]:hover:active,
549 .devtools-toolbarbutton[checked=true],
550 .devtools-toolbarbutton[checked=true]:hover,
551 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
552 /* background: rgba(29, 79, 115, .8); / Select highlight blue /
553 color: var(--theme-selection-color); */
556 .devtools-toolbarbutton[checked=true]:hover {
559 .devtools-option-toolbarbutton {
560 list-style-image: url("chrome://browser/skin/devtools/tool-options-tbutton.svg");
565 .devtools-option-toolbarbutton:hover,
566 .devtools-option-toolbarbutton[open=true] {
567 list-style-image: url("chrome://browser/skin/devtools/tool-options.svg");
570 /* Toolbar button groups */
571 .devtools-toolbarbutton-group > .devtools-toolbarbutton {
574 .devtools-toolbarbutton-group > .devtools-toolbarbutton:last-child {
577 .devtools-toolbarbutton-group + .devtools-toolbarbutton {
580 .devtools-separator + .devtools-toolbarbutton {
586 .devtools-searchinput {
587 /* -moz-appearance: none;
589 border: 1px solid rgb(88, 94, 101);
591 background-color: rgba(24, 29, 32, 1);
593 color: rgba(184, 200, 217, 1);*/
596 .devtools-searchinput {
600 -moz-padding-start: 22px;
601 -moz-padding-end: 12px;
602 background-position: 8px center;
603 background-size: 11px 11px;
604 background-repeat: no-repeat;
607 background-image: url("magnifying-glass.png");
610 @media (min-resolution: 2dppx) {
611 .devtools-searchinput {
612 background-image: url("magnifying-glass@2x.png");
616 .devtools-searchinput:-moz-locale-dir(rtl) {
617 background-position: calc(100% - 8px) center;
620 .devtools-searchinput > .textbox-input-box > .textbox-search-icons {
624 .devtools-no-search-result {
625 border-color: var(--theme-highlight-red) !important;
630 .devtools-closebutton {
635 .devtools-closebutton > image {
638 -moz-appearance: none;
639 background-size: 32px 16px;
640 background-image: url("chrome://browser/skin/devtools/close@2x.png");
641 background-position: 0 center;
642 background-repeat: no-repeat;
645 .devtools-closebutton:hover > image,
646 .devtools-closebutton:hover:active > image {
647 background-position: -16px center;
650 .devtools-closebutton > .toolbarbutton-text {
654 /* In-tools sidebar */
656 .devtools-sidebar-tabs {
659 .devtools-sidebar-tabs > tabpanels {
664 .devtools-sidebar-tabs > tabs {
669 .devtools-sidebar-tabs > tabs > .tabs-right,
670 .devtools-sidebar-tabs > tabs > .tabs-left {
674 .devtools-sidebar-tabs > tabs > tab {
682 .devtools-sidebar-tabs > tabs > tab:-moz-focusring {
686 .devtools-sidebar-tabs > tabs > tab:last-of-type {
687 -moz-border-end-width: 0;
690 .devtools-sidebar-tabs > tabs > tab:first-child {
693 .devtools-sidebar-tabs > tabs > tab:hover {
696 .devtools-sidebar-tabs > tabs > tab:hover:active {
699 .devtools-sidebar-tabs > tabs > tab[selected] + tab {
702 .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover {
705 .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover:active {
708 .devtools-sidebar-tabs > tabs > tab[selected],
709 .devtools-sidebar-tabs > tabs > tab[selected]:hover:active {
712 /* Toolbox - moved from toolbox.css.
713 * Rules that apply to the global toolbox like command buttons,
714 * devtools tabs, docking buttons, etc. */
716 #toolbox-controls > toolbarbutton,
717 #toolbox-dock-buttons > toolbarbutton {
719 /* padding: 1px 3px; */
722 #toolbox-dock-buttons > toolbarbutton > image {
725 background-size: 32px 16px;
726 background-position: 0 center;
727 background-repeat: no-repeat;
730 #toolbox-dock-buttons > toolbarbutton:hover > image {
731 background-position: -16px center;
734 #toolbox-dock-bottom > image {
735 background-image: url("chrome://browser/skin/devtools/dock-bottom@2x.png");
738 #toolbox-dock-side > image {
739 background-image: url("chrome://browser/skin/devtools/dock-side@2x.png");
742 #toolbox-dock-window > image {
743 background-image: url("chrome://browser/skin/devtools/undock@2x.png");
746 #toolbox-dock-window,
747 #toolbox-dock-bottom,
751 #toolbox-dock-window:hover,
752 #toolbox-dock-bottom:hover,
753 #toolbox-dock-side:hover {
756 .devtools-separator {
761 #toolbox-buttons:empty + .devtools-separator,
762 .devtools-separator[invisible] {
766 #toolbox-controls-separator {
770 /* Command buttons */
773 /* padding: 1px 4px; */
777 .command-button:hover {
779 .command-button:hover:active {
782 .command-button > image {
785 background-size: 32px 16px;
786 background-position: 0 center;
787 background-repeat: no-repeat;
790 .command-button:hover > image,
791 .command-button:hover:active > image,
792 .command-button[checked=true] > image,
793 .command-button[open=true] > image {
794 background-position: -16px center;
797 #command-button-paintflashing > image {
798 background-image: url("chrome://browser/skin/devtools/command-paintflashing.png");
801 #command-button-screenshot > image {
802 background-image: url("chrome://browser/skin/devtools/command-screenshot.png");
805 #command-button-responsive > image {
806 background-image: url("chrome://browser/skin/devtools/command-responsivemode.png");
809 #command-button-tilt > image {
810 background-image: url("chrome://browser/skin/devtools/command-tilt.png");
813 #command-button-scratchpad > image {
814 background-image: url("chrome://browser/skin/devtools/command-scratchpad.png");
817 #command-button-pick > image {
818 background-image: url("chrome://browser/skin/devtools/command-pick.png");
821 #command-button-frames > image {
822 background-image: url("chrome://browser/skin/devtools/command-frames.png");
825 #command-button-splitconsole > image {
826 background-image: url("chrome://browser/skin/devtools/command-console.png");
829 #command-button-eyedropper > image {
830 background-image: url("chrome://browser/skin/devtools/command-eyedropper.png");
833 @media (min-resolution: 2dppx) {
834 #command-button-paintflashing > image {
835 background-image: url("chrome://browser/skin/devtools/command-paintflashing@2x.png");
838 #command-button-screenshot > image {
839 background-image: url("chrome://browser/skin/devtools/command-screenshot@2x.png");
842 #command-button-responsive > image {
843 background-image: url("chrome://browser/skin/devtools/command-responsivemode@2x.png");
846 #command-button-tilt > image {
847 background-image: url("chrome://browser/skin/devtools/command-tilt@2x.png");
850 #command-button-scratchpad > image {
851 background-image: url("chrome://browser/skin/devtools/command-scratchpad@2x.png");
854 #command-button-pick > image {
855 background-image: url("chrome://browser/skin/devtools/command-pick@2x.png");
858 #command-button-frames > image {
859 background-image: url("chrome://browser/skin/devtools/command-frames@2x.png");
862 #command-button-splitconsole > image {
863 background-image: url("chrome://browser/skin/devtools/command-console@2x.png");
866 #command-button-eyedropper > image {
867 background-image: url("chrome://browser/skin/devtools/command-eyedropper@2x.png");
878 -moz-padding-start: 3px;
879 background-color: #000000;
888 -moz-margin-end: 3px;
890 -moz-padding-start: 3px;
891 background-color: #C09070;
892 border-radius: 8px 8px 0 0;
895 .devtools-tab > image {
896 -moz-margin-end: 0px;
897 /* -moz-margin-start: 4px; */
899 width: 16px; /* Prevents collapse during theme switching */
902 .devtools-tab:hover > image {
905 .devtools-tab:active > image,
906 .devtools-tab[selected] > image {
910 .devtools-tab:hover:active {
911 background-color: var(--theme-hover-background);
912 color: var(--theme-hover-color);
915 .devtools-tab[selected] {
916 background-color: var(--theme-selection-background);
917 color: var(--theme-selection-color);
920 .devtools-tab > spacer {
925 .devtools-tab > image {
927 -moz-margin-start: 0;
930 #toolbox-option-container {
931 background-color: #000000;
932 -moz-padding-start: 3px;
935 #toolbox-tab-options {
939 #toolbox-tab-options > image {
940 -moz-margin-end: 3px;
943 .devtools-tab:not([highlighted]) > .highlighted-icon,
944 .devtools-tab[selected] > .highlighted-icon,
945 .devtools-tab:not([selected])[highlighted] > .default-icon {
946 visibility: collapse;
949 .devtools-tab:not([selected])[highlighted] {
953 .devtools-tab:not([highlighted]) > .highlighted-icon,
954 .devtools-tab[selected] > .highlighted-icon,
955 .devtools-tab:not([selected])[highlighted] > .default-icon {
956 visibility: collapse;
959 /* The options tab is special - it doesn't have the same parent
960 as the other tabs (toolbox-option-container vs toolbox-tabs) */
961 #toolbox-option-container .devtools-tab:not([selected]) {
962 /* background-color: transparent;*/
964 #toolbox-option-container .devtools-tab {
965 /* border-color: transparent;
967 -moz-padding-start: 1px;*/
969 #toolbox-tab-options > image {
973 .hidden-labels-box:not(.visible) > label,
974 .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child {
978 /* === END toolbars.inc.css === */