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"]:not(#browser-style-checkbox),
60 #browser-style-checkbox:not([label]) { /* not()s are workaround for old placement of checkbox in label */
67 /* Create a box to style as the checkbox */
68 input[type="checkbox"] + label::before {
69 display: inline-block;
71 vertical-align: middle;
74 .devtools-searchbox + #browser-style-checkbox-label, /* workaround for old placement of checkbox in label */
75 input[type="checkbox"] + label {
77 color: var(--theme-capped-toolbar-text);
80 input[type="checkbox"] + label::before {
81 -moz-appearance: none;
85 border: 1px solid var(--theme-body-color);
86 margin-inline-end: 3px;
87 margin-inline-start: 2px;
88 background-color: var(--theme-toolbar-background);
89 background-position: center center;
90 background-repeat: no-repeat;
93 input[type="checkbox"]:not(:disabled) + label:hover::before {
94 border-color: var(--theme-hover-background);
96 .devtools-searchbox + #browser-style-checkbox-label:hover, /* workaround for old placement of checkbox in label */
97 input[type="checkbox"]:not(:disabled) + label:hover {
98 color: var(--theme-hover-background);
100 input[type="checkbox"]:checked + label::before {
101 background-image: url("chrome://global/skin/in-content/check.svg#check");
104 input[type="checkbox"]:checked:disabled + label::before {
105 background-image: url("chrome://global/skin/in-content/check.svg#check-disabled");
107 input[type="checkbox"]:checked:not(:disabled) + label:hover::before {
108 background-image: url("chrome://global/skin/in-content/check.svg#check-hover");
110 input[type="checkbox"]:disabled + label::before {
111 border-color: var(--theme-body-color-inactive);
113 input[type="checkbox"]:disabled + label {
114 color: var(--theme-body-color-inactive);
117 .devtools-separator {
120 background-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%);
121 background-size: 1px 100%;
122 background-repeat: no-repeat;
123 background-position: 0, 1px, 2px;
126 /* HTML toolbars - style them LCARStrek-like */
128 div.devtools-toolbar {
129 background-size: calc(100% - 30px);
130 background-image: linear-gradient(90deg, var(--theme-capped-toolbar-background), var(--theme-capped-toolbar-background));
131 background-repeat: no-repeat;
132 background-position: center center;
136 div.devtools-toolbar::before,
137 div.devtools-toolbar::after {
142 background-color: var(--theme-toolbar-caps);
145 div.devtools-toolbar::before {
146 border-radius: 8px 0px 0px 8px;
148 border-inline-end: 3px solid black;
149 margin-inline-end: 2px;
152 div.devtools-toolbar::after {
153 border-radius: 0px 8px 8px 0px;
155 border-inline-start: 3px solid black;
156 margin-inline-start: auto; /* originally 2px, but auto makes us able to get flexible free space */
159 /* Toolbar buttons */
162 .devtools-toolbarbutton,
167 .devtools-toolbarbutton {
170 .devtools-toolbarbutton:not([label]) > .toolbarbutton-icon,
171 .devtools-button::before {
174 /* transition: opacity 0.05s ease-in-out;*/
185 margin-inline-start: 2px;
186 background: var(--theme-toolbar-background);
187 color: var(--theme-body-color);
188 /* The icon is absolutely positioned in the button using ::before */
192 .devtools-button:not([disabled]):hover {
193 background: var(--theme-hover-background);
194 color: var(--theme-hover-color);
197 .devtools-button:not([disabled]):hover:active {
198 background: var(--theme-active-background);
199 color: var(--theme-active-color);
202 /* Menu type buttons and checked states */
203 .devtools-button[checked] {
204 background: var(--theme-selection-background);
205 color: var(--theme-selection-color);
208 .devtools-button::before {
214 margin: -8px 0 0 -8px;
215 /* background-size: cover;
216 background-repeat: no-repeat;*/
217 /* transition: opacity 0.05s ease-in-out;*/
220 .devtools-button:-moz-focusring {
224 /* Standalone buttons */
225 .devtools-button[standalone],
226 .devtools-button[data-standalone],
227 .devtools-toolbarbutton[standalone],
228 .devtools-toolbarbutton[data-standalone],
229 .menu-filter-button {
231 /* min-height: 32px; */
232 background-color: var(--theme-button-background);
233 color: var(--theme-button-color);
234 border-radius: 300px;
237 .devtools-button[standalone]:hover,
238 .devtools-button[data-standalone]:hover,
239 .devtools-toolbarbutton[standalone]:hover,
240 .devtools-toolbarbutton[data-standalone]:hover,
241 .menu-filter-button:hover {
242 background-color: var(--theme-hover-background);
243 color: var(--theme-hover-color);
246 .devtools-button[standalone]:hover:active,
247 .devtools-button[data-standalone]:hover:active,
248 .devtools-toolbarbutton[standalone]:hover:active,
249 .devtools-toolbarbutton[data-standalone]:hover:active,
250 .menu-filter-button:hover:active {
251 background-color: var(--theme-active-background);
252 color: var(--theme-active-color);
255 .menu-filter-button.checked {
256 background: var(--theme-selection-background);
257 color: var(--theme-selection-color);
260 .menu-filter-button + .menu-filter-button {
261 margin-inline-start: 2px;
264 .devtools-toolbarbutton[standalone], .devtools-toolbarbutton[data-standalone] {
267 .devtools-toolbarbutton[label][standalone] {
271 .devtools-toolbarbutton,
276 /* Icon button styles */
277 .devtools-toolbarbutton:not([label]),
278 .devtools-toolbarbutton[text-as-image] {
282 /* Set flex attribute to Toolbox buttons and Picker container so,
283 they don't overlapp with the tab bar */
288 #toolbox-picker-container {
290 margin-inline-start: 1px;
293 .devtools-toolbarbutton:not([label]) > .toolbarbutton-text {
297 .devtools-toolbar .devtools-toolbarbutton {
298 margin-inline-start: 2px;
301 .devtools-toolbarbutton > .toolbarbutton-icon {
304 /* Menu button styles (eg. web console filters) */
305 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
306 /* -moz-box-orient: horizontal; */
309 .devtools-toolbarbutton[type=menu-button] {
312 .devtools-toolbarbutton > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
315 .devtools-menulist > .menulist-dropmarker {
318 .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
319 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
322 /* Icon-only buttons */
323 .devtools-button:empty::before,
324 .devtools-toolbarbutton:not([label]):not([disabled]) > image {
328 .devtools-button:hover:empty::before,
329 .devtools-button[checked]:empty::before,
330 .devtools-button[open]:empty::before,
331 .devtools-toolbarbutton:not([label]):hover > image,
332 .devtools-toolbarbutton:not([label])[checked=true] > image,
333 .devtools-toolbarbutton:not([label])[open=true] > image {
337 .devtools-button:disabled,
338 .devtools-button[disabled],
339 .devtools-toolbarbutton[disabled] {
340 /* opacity: 0.5 !important;*/
343 .devtools-button[standalone]::before,
344 .devtools-button[data-standalone]::before,
345 .devtools-button:not([disabled]):hover::before,
346 .devtools-button:not([disabled]):hover:active::before,
347 .devtools-button[checked]:empty::before,
348 .devtools-button[open]:empty::before,
349 .devtools-toolbarbutton[standalone] > image,
350 .devtools-toolbarbutton[data-standalone] > image,
351 .devtools-toolbarbutton:not([disabled]):hover > image,
352 .devtools-toolbarbutton:not([disabled]):hover:active > image,
353 .devtools-toolbarbutton[checked=true] > image,
354 .devtools-toolbarbutton[open=true] > image {
355 filter: var(--checked-icon-filter);
358 .devtools-button[disabled]::before,
359 .devtools-toolbarbutton[disabled] > image {
360 filter: url(images/filters.svg#disabled-icon-state);
363 /* Icon-and-text buttons */
364 .devtools-toolbarbutton.icon-and-text .toolbarbutton-text {
365 margin-inline-start: .5em !important;
369 /* Text-only buttons */
370 .devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]),
371 .devtools-toolbarbutton[data-text-only],
372 #toolbox-buttons .devtools-toolbarbutton[text-as-image] {
373 /* background-color: rgba(0, 0, 0, .2); / Splitter */
376 /* Text-only button states */
377 .devtools-button:not(:empty):not([disabled]):hover,
378 #toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover,
379 .devtools-toolbarbutton:not(:-moz-any([checked=true],[disabled],[text-as-image]))[label]:hover {
380 /* background: rgba(0, 0, 0, .3); / Splitters */
383 .devtools-button:not(:empty):not([disabled]):hover:active,
384 #toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover:active,
385 .devtools-toolbarbutton:not(:-moz-any([checked=true],[disabled],[text-as-image]))[label]:hover:active {
386 /* background: rgba(0, 0, 0, .4); / Splitters */
389 .devtools-toolbarbutton:not([disabled])[label][checked=true],
390 .devtools-toolbarbutton:not([disabled])[label][open],
391 .devtools-button:not(:empty)[checked=true],
392 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked=true] {
393 /* background: rgba(29, 79, 115, .7); / Select highlight blue /
394 color: var(--theme-selection-color); */
397 .devtools-menulist[open=true],
398 .devtools-toolbarbutton[open=true],
399 .devtools-toolbarbutton[open=true]:hover,
400 .devtools-toolbarbutton[open=true]:hover:active,
401 .devtools-toolbarbutton[checked=true],
402 .devtools-toolbarbutton[checked=true]:hover,
403 #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] {
404 /* background: rgba(29, 79, 115, .8); / Select highlight blue /
405 color: var(--theme-selection-color); */
409 --clear-icon-url: url("chrome://devtools/skin/images/clear.svg");
412 .devtools-button.devtools-clear-icon::before {
413 background-image: var(--clear-icon-url);
416 .devtools-toolbarbutton.devtools-clear-icon {
417 list-style-image: var(--clear-icon-url);
420 .devtools-option-toolbarbutton {
421 list-style-image: var(--tool-options-image);
424 .devtools-toolbarbutton-group > .devtools-toolbarbutton:last-child {
427 .devtools-toolbarbutton-group + .devtools-toolbarbutton {
430 .devtools-separator + .devtools-toolbarbutton {
436 .devtools-searchinput,
437 .devtools-filterinput {
438 /* -moz-appearance: none;
443 border-color: var(--theme-splitter-color);
449 :root[platform="mac"] .devtools-searchinput,
450 :root[platform="mac"] .devtools-textinput {
451 /* border-radius: 20px;*/
454 .devtools-searchinput,
455 .devtools-filterinput {
459 padding-inline-start: 22px;
460 padding-inline-end: 4px;
461 background-position: 8px center;
462 background-size: 11px 11px;
463 background-repeat: no-repeat;
467 .devtools-searchinput {
468 background-image: var(--magnifying-glass-image);
471 .devtools-filterinput {
472 background-image: var(--filter-image);
475 .devtools-searchinput:-moz-locale-dir(rtl),
476 .devtools-searchinput:dir(rtl),
477 .devtools-filterinput:-moz-locale-dir(rtl),
478 .devtools-filterinput:dir(rtl) {
479 background-position: calc(100% - 8px) center;
482 .devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-icon,
483 .devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-icon {
487 .devtools-searchinput .textbox-input::-moz-placeholder,
488 .devtools-filterinput .textbox-input::-moz-placeholder {
492 /* Searchbox is a div container element for a search input element */
493 .devtools-searchbox {
499 /* The spacing is accomplished with a padding on the searchbox */
500 .devtools-searchbox > .devtools-textinput,
501 .devtools-searchbox > .devtools-searchinput {
504 .devtools-textinput:focus,
505 .devtools-searchinput:focus,
506 .devtools-filterinput:focus {
507 border-color: var(--theme-focus-border-color-textbox);
508 /* box-shadow: var(--theme-focus-box-shadow-textbox);*/
509 transition: all 0.2s ease-in-out;
513 /* Don't add 'double spacing' for inputs that are at beginning / end
514 of a toolbar (since the toolbar has it's own spacing). */
515 .devtools-toolbar > .devtools-textinput:first-child,
516 .devtools-toolbar > .devtools-searchinput:first-child,
517 .devtools-toolbar > .devtools-filterinput:first-child {
519 .devtools-toolbar > .devtools-textinput:last-child,
520 .devtools-toolbar > .devtools-searchinput:last-child,
521 .devtools-toolbar > .devtools-filterinput:last-child {
523 .devtools-toolbar > .devtools-searchbox:first-child {
525 .devtools-toolbar > .devtools-searchbox:last-child {
528 .devtools-rule-searchbox {
534 .devtools-rule-searchbox[filled] {
535 background-color: var(--searchbox-background-color);
536 border-color: var(--searchbox-border-color);
537 padding-inline-end: 23px;
540 .devtools-style-searchbox-no-match {
541 background-color: var(--searchbox-no-match-background-color) !important;
542 border-color: var(--searchbox-no-match-border-color) !important;
545 .devtools-searchinput-clear {
553 background-position: 0 0;
554 background-repeat: no-repeat;
555 background-color: transparent;
558 .devtools-searchinput-clear:dir(rtl) {
563 .devtools-searchinput-clear {
564 background-image: url("chrome://devtools/skin/images/search-clear.svg");
567 .devtools-style-searchbox-no-match + .devtools-searchinput-clear {
568 background-image: url("chrome://devtools/skin/images/search-clear-failed.svg") !important;
571 .devtools-searchinput-clear:hover {
572 background-position: -16px 0;
575 .devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear,
576 .devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear {
577 list-style-image: url("chrome://devtools/skin/images/search-clear.svg");
578 -moz-image-region: rect(0, 16px, 16px, 0);
581 .devtools-searchinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:hover,
582 .devtools-filterinput > .textbox-input-box > .textbox-search-icons > .textbox-search-clear:hover {
583 -moz-image-region: rect(0, 32px, 16px, 16px);
586 /* In-tools sidebar */
588 .devtools-sidebar-tabs {
592 .devtools-sidebar-tabs > tabpanels {
597 .devtools-sidebar-tabs tabs {
602 .devtools-sidebar-alltabs {
603 /* -moz-appearance: none;
608 border-width: 0 0 1px 0;
609 border-inline-start-width: 1px;
610 border-style: solid;*/
613 .devtools-sidebar-alltabs .toolbarbutton-icon {
617 .devtools-sidebar-tabs tabs > .tabs-right,
618 .devtools-sidebar-tabs tabs > .tabs-left {
622 .devtools-sidebar-tabs tabs > tab {
630 .devtools-sidebar-tabs tabs > tab:-moz-focusring {
634 .devtools-sidebar-tabs tabs > tab:first-of-type {
635 margin-inline-start: 0;
638 .devtools-sidebar-tabs tabs > tab:last-of-type {
639 border-inline-end-width: 0;
642 .devtools-sidebar-tabs tabs > tab {
645 .devtools-sidebar-tabs tabs > tab[selected],
646 .devtools-sidebar-tabs tabs > tab[selected] + tab {
649 .devtools-sidebar-tabs tabs > tab:first-child {
652 .devtools-sidebar-tabs tabs > tab:hover {
655 .devtools-sidebar-tabs tabs > tab:hover:active {
658 .devtools-sidebar-tabs tabs > tab[selected],
659 .devtools-sidebar-tabs tabs > tab[selected]:hover:active {
662 .hidden-labels-box:not(.visible) > label,
663 .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child {
667 .devtools-invisible-splitter {
668 border-color: transparent;
669 background-color: transparent;
672 .devtools-horizontal-splitter,
673 .devtools-side-splitter {
674 /* background-color: var(--theme-splitter-color);*/
677 /* HACK around hardcoded stylings for the HTML-based sidebar tabs */
678 .tabs .tabs-menu-item,
679 .theme-dark .tabs .tabs-menu-item,
680 .theme-light .tabs .tabs-menu-item {
682 margin-inline-end: 3px !important;
683 padding: 0 !important;
684 border-radius: 8px 8px 0 0;
685 border: 0 !important;
686 background-color: var(--theme-button-background);
688 .tabs .tabs-menu-item a {
689 color: var(--theme-button-color) !important;
690 padding: 0px 3px !important;
692 .tabs .tabs-menu-item.is-active {
693 height: auto !important;
695 .tabs .tabs-navigation {
696 height: auto !important;
697 border: 0 !important;
698 border-bottom: 3px solid var(--theme-body-background) !important;
703 .devtools-throbber::before {
705 display: inline-block;
706 vertical-align: bottom;
707 margin-inline-end: 0.5em;
710 border: 2px solid currentColor;
711 border-right-color: transparent;
713 animation: 1.1s linear throbber-spin infinite;
716 @keyframes throbber-spin {
721 transform: rotate(360deg);