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 /* CSS Variables specific to the devtools toolbar that aren't defined by the themes */
10 --toolbar-tab-hover: #FFCF00;
11 --toolbar-tab-hover-active: #FF9F00;
12 --searchbox-background-color: #000000;
13 --searchbox-border-color: #9C9CFF;
14 --searcbox-no-match-background-color: #400000;
15 --searcbox-no-match-border-color: #FF0000;
16 --magnifying-glass-image: url(images/search.svg);
17 --filter-image: url(images/filter.svg);
18 --tool-options-image: url(images/tool-options-tbutton.svg);
19 --icon-filter: invert(1);
20 --checked-icon-filter: url(images/filters.svg#checked-icon-state);
21 --toolbar-button-border-color: #A09090;
26 .devtools-sidebar-tabs tabs {
29 /* border-bottom-width: 1px;*/
33 box-sizing: border-box;
34 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
41 border-bottom: 3px solid var(--theme-body-background);
44 .devtools-toolbar checkbox {
45 /* LCARStrek checkbox colors don't work well against toolbar background */
46 background-color: var(--theme-toolbar-background);
48 line-height: -moz-block-height;
50 .devtools-toolbar checkbox .checkbox-check {
52 .devtools-toolbar checkbox .checkbox-label-box {
54 .devtools-toolbar checkbox .checkbox-label-box .checkbox-label {
57 /* HTML Checkboxes - a lot copied from global/in-content/common.css */
58 /* Hide the actual checkbox */
59 input[type="checkbox"] {
66 label > input[type="checkbox"] { /* old placement of checkbox in label, undo above */
73 /* Create a box to style as the checkbox */
74 input[type="checkbox"] + label::before {
75 display: inline-block;
77 vertical-align: middle;
80 .devtools-searchbox + #browser-style-checkbox-label, /* workaround for old placement of checkbox in label */
81 input[type="checkbox"] + label {
83 color: var(--theme-capped-toolbar-text);
86 input[type="checkbox"] + label::before {
87 -moz-appearance: none;
91 border: 1px solid var(--theme-body-color);
92 margin-inline-end: 3px;
93 margin-inline-start: 2px;
94 background-color: var(--theme-toolbar-background);
95 background-position: center center;
96 background-repeat: no-repeat;
99 input[type="checkbox"]:not(:disabled) + label:hover::before {
100 border-color: var(--theme-hover-background);
102 .devtools-searchbox + #browser-style-checkbox-label:hover, /* workaround for old placement of checkbox in label */
103 input[type="checkbox"]:not(:disabled) + label:hover {
104 color: var(--theme-hover-background);
106 input[type="checkbox"]:checked + label::before {
107 background-image: url("chrome://global/skin/in-content/check.svg#check");
110 input[type="checkbox"]:checked:disabled + label::before {
111 background-image: url("chrome://global/skin/in-content/check.svg#check-disabled");
113 input[type="checkbox"]:checked:not(:disabled) + label:hover::before {
114 background-image: url("chrome://global/skin/in-content/check.svg#check-hover");
116 input[type="checkbox"]:disabled + label::before {
117 border-color: var(--theme-body-color-inactive);
119 input[type="checkbox"]:disabled + label {
120 color: var(--theme-body-color-inactive);
123 .devtools-separator {
126 background-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%);
127 background-size: 1px 100%;
128 background-repeat: no-repeat;
129 background-position: 0, 1px, 2px;
132 /* HTML toolbars - style them LCARStrek-like */
134 div.devtools-toolbar,
135 div.devtools-tabbar {
136 background-size: calc(100% - 30px);
137 background-image: linear-gradient(90deg, var(--theme-capped-toolbar-background), var(--theme-capped-toolbar-background));
138 background-repeat: no-repeat;
139 background-position: center center;
143 div.devtools-toolbar::before,
144 div.devtools-toolbar::after,
145 div.devtools-tabbar::before,
146 div.devtools-tabbar::after {
151 background-color: var(--theme-toolbar-caps);
154 div.devtools-toolbar::before,
155 div.devtools-tabbar::before {
156 border-radius: 8px 0px 0px 8px;
158 border-inline-end: 3px solid black;
159 margin-inline-end: 2px;
162 div.devtools-toolbar::after,
163 div.devtools-tabbar::after {
164 border-radius: 0px 8px 8px 0px;
166 border-inline-start: 3px solid black;
167 margin-inline-start: auto; /* originally 2px, but auto makes us able to get flexible free space */
170 /* Toolbar buttons */
173 .devtools-toolbarbutton,
178 .devtools-toolbarbutton {
181 .devtools-toolbarbutton:not([label]) > .toolbarbutton-icon,
182 .devtools-button::before {
185 /* transition: opacity 0.05s ease-in-out;*/
196 margin-inline-start: 2px;
197 background: var(--theme-toolbar-background);
198 color: var(--theme-body-color);
199 /* The icon is absolutely positioned in the button using ::before */
203 .devtools-button:not([disabled]):hover {
204 background: var(--theme-hover-background);
205 color: var(--theme-hover-color);
208 .devtools-button:not([disabled]):hover:active {
209 background: var(--theme-active-background);
210 color: var(--theme-active-color);
213 /* Menu type buttons and checked states */
214 .devtools-button[checked],
215 .devtools-button.checked {
216 background: var(--theme-selection-background);
217 color: var(--theme-selection-color);
220 .devtools-button::before {
226 margin: -8px 0 0 -8px;
227 /* background-size: cover;
228 background-repeat: no-repeat;*/
229 /* transition: opacity 0.05s ease-in-out;*/
232 .devtools-button:-moz-focusring {
236 /* Standalone buttons */
237 .devtools-button[standalone],
238 .devtools-button[data-standalone],
239 .devtools-toolbarbutton[standalone],
240 .devtools-toolbarbutton[data-standalone],
241 .menu-filter-button {
243 /* min-height: 32px; */
245 background-color: var(--theme-button-background);
246 color: var(--theme-button-color);
247 border-radius: 300px;
250 .devtools-button[standalone]:hover,
251 .devtools-button[data-standalone]:hover,
252 .devtools-toolbarbutton[standalone]:hover,
253 .devtools-toolbarbutton[data-standalone]:hover,
254 .menu-filter-button:hover {
255 background-color: var(--theme-hover-background);
256 color: var(--theme-hover-color);
259 .devtools-button[standalone]:hover:active,
260 .devtools-button[data-standalone]:hover:active,
261 .devtools-toolbarbutton[standalone]:hover:active,
262 .devtools-toolbarbutton[data-standalone]:hover:active,
263 .menu-filter-button:hover:active {
264 background-color: var(--theme-active-background);
265 color: var(--theme-active-color);
268 .menu-filter-button.checked {
269 background: var(--theme-selection-background);
270 color: var(--theme-selection-color);
273 .menu-filter-button + .menu-filter-button {
274 margin-inline-start: 2px;
277 .devtools-toolbarbutton[standalone], .devtools-toolbarbutton[data-standalone] {
280 .devtools-toolbarbutton[label][standalone] {
284 .devtools-toolbarbutton,
289 /* Icon button styles */
290 .devtools-toolbarbutton:not([label]),
291 .devtools-toolbarbutton[text-as-image] {
295 /* Set flex attribute to Toolbox buttons and Picker container so,
296 they don't overlapp with the tab bar */
301 #toolbox-picker-container {
303 margin-inline-start: 1px;
306 .devtools-toolbarbutton:not([label]) > .toolbarbutton-text {
310 .devtools-toolbar .devtools-toolbarbutton {
311 margin-inline-start: 2px;
314 .devtools-toolbarbutton > .toolbarbutton-icon {
317 /* Menu button styles (eg. web console filters) */
318 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
319 /* -moz-box-orient: horizontal; */
322 .devtools-toolbarbutton[type=menu-button] {
325 .devtools-toolbarbutton > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
328 .devtools-menulist > .menulist-dropmarker {
331 .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
332 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
335 /* Icon-only buttons */
336 .devtools-button:empty::before,
337 .devtools-toolbarbutton:not([label]):not([disabled]) > image {
341 .devtools-button:hover:empty::before,
342 .devtools-button[checked]:empty::before,
343 .devtools-button[open]:empty::before,
344 .devtools-toolbarbutton:not([label]):hover > image,
345 .devtools-toolbarbutton:not([label])[checked=true] > image,
346 .devtools-toolbarbutton:not([label])[open=true] > image {
350 .devtools-button:disabled,
351 .devtools-button[disabled],
352 .devtools-toolbarbutton[disabled] {
353 /* opacity: 0.5 !important;*/
356 .devtools-button[standalone]::before,
357 .devtools-button[data-standalone]::before,
358 .devtools-button:not([disabled]):hover::before,
359 .devtools-button:not([disabled]):hover:active::before,
360 .devtools-button[checked]:empty::before,
361 .devtools-button[open]:empty::before,
362 .devtools-toolbarbutton[standalone] > image,
363 .devtools-toolbarbutton[data-standalone] > image,
364 .devtools-toolbarbutton:not([disabled]):hover > image,
365 .devtools-toolbarbutton:not([disabled]):hover:active > image,
366 .devtools-toolbarbutton[checked=true] > image,
367 .devtools-toolbarbutton[open=true] > image {
368 filter: var(--checked-icon-filter);
371 .devtools-button[disabled]::before,
372 .devtools-toolbarbutton[disabled] > image {
373 filter: url(images/filters.svg#disabled-icon-state);
376 /* Icon-and-text buttons */
377 .devtools-toolbarbutton.icon-and-text .toolbarbutton-text {
378 margin-inline-start: .5em !important;
382 /* Text-only buttons */
383 .devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]),
384 .devtools-toolbarbutton[data-text-only],
385 #toolbox-buttons .devtools-toolbarbutton[text-as-image] {
386 /* background-color: rgba(0, 0, 0, .2); / Splitter */
389 /* Text-only button states */
390 .devtools-button:not(:empty):not([disabled]):hover,
391 #toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover,
392 .devtools-toolbarbutton:not(:-moz-any([checked=true],[disabled],[text-as-image]))[label]:hover {
393 /* background: rgba(0, 0, 0, .3); / Splitters */
396 .devtools-button:not(:empty):not([disabled]):hover:active,
397 #toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover:active,
398 .devtools-toolbarbutton:not(:-moz-any([checked=true],[disabled],[text-as-image]))[label]:hover:active {
399 /* background: rgba(0, 0, 0, .4); / Splitters */
402 .devtools-toolbarbutton:not([disabled])[label][checked=true],
403 .devtools-toolbarbutton:not([disabled])[label][open],
404 .devtools-button:not(:empty)[checked=true],
405 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked=true] {
406 /* background: rgba(29, 79, 115, .7); / Select highlight blue /
407 color: var(--theme-selection-color); */
410 .devtools-menulist[open=true],
411 .devtools-toolbarbutton[open=true],
412 .devtools-toolbarbutton[open=true]:hover,
413 .devtools-toolbarbutton[open=true]:hover:active,
414 .devtools-toolbarbutton[checked=true],
415 .devtools-toolbarbutton[checked=true]:hover,
416 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
417 /* background: rgba(29, 79, 115, .8); / Select highlight blue /
418 color: var(--theme-selection-color); */
422 --clear-icon-url: url("chrome://devtools/skin/images/clear.svg");
425 .devtools-button.devtools-clear-icon::before {
426 background-image: var(--clear-icon-url);
429 .devtools-toolbarbutton.devtools-clear-icon {
430 list-style-image: var(--clear-icon-url);
433 .devtools-option-toolbarbutton {
434 list-style-image: var(--tool-options-image);
437 .devtools-toolbarbutton-group > .devtools-toolbarbutton:last-child {
440 .devtools-toolbarbutton-group + .devtools-toolbarbutton {
443 .devtools-separator + .devtools-toolbarbutton {
449 .devtools-searchinput,
450 .devtools-filterinput {
451 /* -moz-appearance: none;
456 border-color: var(--theme-splitter-color);
462 :root[platform="mac"] .devtools-searchinput,
463 :root[platform="mac"] .devtools-textinput {
464 /* border-radius: 20px;*/
467 .devtools-searchinput,
468 .devtools-filterinput {
472 padding-inline-start: 22px;
473 padding-inline-end: 4px;
474 background-position: 8px center;
475 background-size: 11px 11px;
476 background-repeat: no-repeat;
480 .devtools-searchinput {
481 background-image: var(--magnifying-glass-image);
484 .devtools-filterinput {
485 background-image: var(--filter-image);
488 .devtools-searchinput:-moz-locale-dir(rtl),
489 .devtools-searchinput:dir(rtl),
490 .devtools-filterinput:-moz-locale-dir(rtl),
491 .devtools-filterinput:dir(rtl) {
492 background-position: calc(100% - 8px) center;
495 .devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-icon,
496 .devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-icon {
500 .devtools-searchinput .textbox-input::placeholder,
501 .devtools-filterinput .textbox-input::placeholder {
505 /* Searchbox is a div container element for a search input element */
506 .devtools-searchbox {
512 button + .devtools-searchbox {
513 margin-inline-start: 2px;
516 /* The spacing is accomplished with a padding on the searchbox */
517 .devtools-searchbox > .devtools-textinput,
518 .devtools-searchbox > .devtools-searchinput {
521 .devtools-textinput:focus,
522 .devtools-searchinput:focus,
523 .devtools-filterinput:focus {
524 border-color: var(--theme-focus-border-color-textbox);
525 /* box-shadow: var(--theme-focus-box-shadow-textbox);*/
526 transition: all 0.2s ease-in-out;
530 /* Don't add 'double spacing' for inputs that are at beginning / end
531 of a toolbar (since the toolbar has it's own spacing). */
532 .devtools-toolbar > .devtools-textinput:first-child,
533 .devtools-toolbar > .devtools-searchinput:first-child,
534 .devtools-toolbar > .devtools-filterinput:first-child {
536 .devtools-toolbar > .devtools-textinput:last-child,
537 .devtools-toolbar > .devtools-searchinput:last-child,
538 .devtools-toolbar > .devtools-filterinput:last-child {
540 .devtools-toolbar > .devtools-searchbox:first-child {
542 .devtools-toolbar > .devtools-searchbox:last-child {
545 .devtools-rule-searchbox {
551 .devtools-rule-searchbox[filled] {
552 background-color: var(--searchbox-background-color);
553 border-color: var(--searchbox-border-color);
554 padding-inline-end: 23px;
557 .devtools-style-searchbox-no-match {
558 background-color: var(--searchbox-no-match-background-color) !important;
559 border-color: var(--searchbox-no-match-border-color) !important;
562 .devtools-searchinput-clear {
570 background-position: 0 0;
571 background-repeat: no-repeat;
572 background-color: transparent;
575 .devtools-searchinput-clear:dir(rtl) {
580 .devtools-searchinput-clear {
581 background-image: url("chrome://devtools/skin/images/search-clear.svg");
584 .devtools-style-searchbox-no-match + .devtools-searchinput-clear {
585 background-image: url("chrome://devtools/skin/images/search-clear-failed.svg") !important;
588 .devtools-searchinput-clear:hover {
589 background-position: -16px 0;
592 .devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear,
593 .devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear {
594 list-style-image: url("chrome://devtools/skin/images/search-clear.svg");
595 -moz-image-region: rect(0, 16px, 16px, 0);
598 .devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:hover,
599 .devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:hover {
600 -moz-image-region: rect(0, 32px, 16px, 16px);
603 /* In-tools sidebar */
605 .devtools-sidebar-tabs {
609 .devtools-sidebar-tabs > tabpanels {
614 .devtools-sidebar-tabs tabs {
619 .devtools-sidebar-alltabs {
620 /* -moz-appearance: none;
625 border-width: 0 0 1px 0;
626 border-inline-start-width: 1px;
627 border-style: solid;*/
630 .devtools-sidebar-alltabs .toolbarbutton-icon {
634 .devtools-sidebar-tabs tabs > .tabs-right,
635 .devtools-sidebar-tabs tabs > .tabs-left {
639 .devtools-sidebar-tabs tabs > tab {
647 .devtools-sidebar-tabs tabs > tab:-moz-focusring {
651 .devtools-sidebar-tabs tabs > tab:first-of-type {
652 margin-inline-start: 0;
655 .devtools-sidebar-tabs tabs > tab:last-of-type {
656 border-inline-end-width: 0;
659 .devtools-sidebar-tabs tabs > tab {
662 .devtools-sidebar-tabs tabs > tab[selected],
663 .devtools-sidebar-tabs tabs > tab[selected] + tab {
666 .devtools-sidebar-tabs tabs > tab:first-child {
669 .devtools-sidebar-tabs tabs > tab:hover {
672 .devtools-sidebar-tabs tabs > tab:hover:active {
675 .devtools-sidebar-tabs tabs > tab[selected],
676 .devtools-sidebar-tabs tabs > tab[selected]:hover:active {
679 .hidden-labels-box:not(.visible) > label,
680 .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child {
684 .devtools-invisible-splitter {
685 border-color: transparent;
686 background-color: transparent;
689 .devtools-horizontal-splitter,
690 .devtools-side-splitter {
691 /* background-color: var(--theme-splitter-color);*/
694 /* HACK around hardcoded stylings for the HTML-based sidebar tabs */
695 .tabs .tabs-menu-item,
696 .theme-dark .tabs .tabs-menu-item,
697 .theme-light .tabs .tabs-menu-item {
699 margin-inline-end: 3px !important;
700 padding: 0 !important;
701 border-radius: 8px 8px 0 0;
702 border: 0 !important;
703 background-color: var(--theme-button-background);
705 .tabs .tabs-menu-item a {
706 color: var(--theme-button-color) !important;
707 padding: 0px 3px !important;
709 .tabs .tabs-menu-item.is-active {
710 height: auto !important;
712 .tabs .tabs-navigation {
713 height: auto !important;
714 border: 0 !important;
715 border-bottom: 3px solid var(--theme-body-background) !important;
720 .devtools-throbber::before {
722 display: inline-block;
723 vertical-align: bottom;
724 margin-inline-end: 0.5em;
727 border: 2px solid currentColor;
728 border-right-color: transparent;
730 animation: 1.1s linear throbber-spin infinite;
733 @keyframes throbber-spin {
738 transform: rotate(360deg);