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 --close-button-image: url(chrome://devtools/skin/images/close.svg);
8 --dock-bottom-image: url(chrome://devtools/skin/images/dock-bottom.svg);
9 --dock-side-image: url(chrome://devtools/skin/images/dock-side.svg);
10 --dock-undock-image: url(chrome://devtools/skin/images/dock-undock.svg);
12 --command-paintflashing-image: url(images/command-paintflashing.svg);
13 --command-screenshot-image: url(images/command-screenshot.svg);
14 --command-responsive-image: url(images/command-responsivemode.svg);
15 --command-scratchpad-image: url(images/command-scratchpad.svg);
16 --command-pick-image: url(images/command-pick.svg);
17 --command-frames-image: url(images/command-frames.svg);
18 --command-splitconsole-image: url(images/command-console.svg);
19 --command-noautohide-image: url(images/command-noautohide.svg);
20 --command-rulers-image: url(images/command-rulers.svg);
21 --command-measure-image: url(images/command-measure.svg);
31 /* -moz-appearance: none;
34 border-bottom-width: 1px;
36 background: var(--theme-capped-toolbar-background);
37 border-bottom-color: var(--theme-splitter-color);*/
40 border-bottom: 3px solid #000000;
44 .toolbox-tabs-wrapper {
53 padding-inline-start: 3px;
54 margin-inline-start: 2px;
55 background-color: #000000;
61 /* Set flex attribute to Toolbox buttons and Picker container so,
62 they don't overlapp with the tab bar */
66 hbox#toolbox-buttons {
67 margin-inline-end: 2px;
70 #toolbox-picker-container {
74 #toolbox-buttons-end {
76 margin-inline-end: 2px;
79 #toolbox-picker-container {
83 #toolbox-buttons-start {
84 border: solid 0 var(--theme-splitter-color);
85 /* border-inline-end-width: 1px;*/
92 /* -moz-appearance: none;
93 -moz-binding: url("chrome://global/content/bindings/general.xml#control-item");
94 -moz-box-align: center;*/
96 /* min-height: 24px;*/
99 margin-inline-end: 3px;
101 padding-inline-start: 3px;
102 padding-inline-end: 3px;
103 border-radius: 8px 8px 0 0;
105 /* border-inline-start-width: 1px;*/
106 -moz-box-align: center;
107 -moz-user-focus: normal;
110 color: var(--theme-button-color);
111 background-color: var(--theme-button-background);
113 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
116 text-overflow: ellipsis;
118 align-content: flex-start;
124 .devtools-tab:hover:active {
125 background-color: var(--theme-hover-background);
126 color: var(--theme-hover-color);
129 .devtools-tab:not([selected])[highlighted],
130 .devtools-tab:not(.selected).highlighted {
131 background-color: var(--theme-highlight-pink);
134 .devtools-tab > image {
137 /* margin-inline-start: 4px;
140 width: 16px; /* Prevents collapse during theme switching */
143 .devtools-tab > img {
146 /* margin-inline-start: 10px;
149 width: 16px; /* Prevents collapse during theme switching */
150 vertical-align: middle;
151 margin-inline-end: 3px;
155 .devtools-tab > label {
160 .devtools-tab:hover > image {
164 .devtools-tab:active > image,
165 .devtools-tab[selected] > image {
169 .devtools-tab > spacer {
174 .devtools-tabbar .devtools-tab[selected],
175 .devtools-tabbar .devtools-tab.selected {
176 color: var(--theme-selection-color);
177 background-color: var(--theme-selection-background);
180 #toolbox-tabs .devtools-tab[selected],
181 #toolbox-tabs .devtools-tab[highlighted] {
184 #toolbox-tabs .devtools-tab[selected]:last-child,
185 #toolbox-tabs .devtools-tab[highlighted]:last-child {
188 #toolbox-tabs .devtools-tab[selected] + .devtools-tab,
189 #toolbox-tabs .devtools-tab[highlighted] + .devtools-tab {
192 #toolbox-tabs .devtools-tab:first-child[selected] {
195 #toolbox-tabs .devtools-tab:last-child {
198 .devtools-tab:not([highlighted]) > .highlighted-icon,
199 .devtools-tab[selected] > .highlighted-icon,
200 .devtools-tab:not([selected])[highlighted] > .default-icon {
201 visibility: collapse;
203 .devtools-tab:not(.highlighted) > .highlighted-icon,
204 .devtools-tab.selected > .highlighted-icon,
205 .devtools-tab:not(.selected).highlighted > .default-icon {
210 /* The options tab is special - it doesn't have the same parent
211 as the other tabs (toolbox-option-container vs toolbox-tabs) */
212 #toolbox-option-container .devtools-tab:not([selected]) {
213 /* background-color: transparent;*/
215 #toolbox-option-container .devtools-tab {
216 /* border-color: transparent;
218 padding-inline-start: 1px;*/
220 #toolbox-tab-options > image {
222 margin-inline-end: 3px;
224 #toolbox-tab-options {
227 #toolbox-tab-options > img {
228 margin-inline-end: 0;
230 #toolbox-option-container {
231 background-color: #000000;
232 padding-inline-start: 3px;
233 margin-inline-end: 1px;
236 /* Toolbox controls */
238 #toolbox-controls, #toolbox-dock-buttons {
243 margin-inline-end: 2px;
246 #toolbox-controls > button,
247 #toolbox-dock-buttons > button {
248 -moz-appearance: none;
249 -moz-user-focus: normal;
256 #toolbox-close::before {
257 background-image: var(--close-button-image);
260 #toolbox-dock-bottom::before {
261 background-image: var(--dock-bottom-image);
264 #toolbox-dock-side::before {
265 background-image: var(--dock-side-image);
268 #toolbox-dock-window::before {
269 background-image: var(--dock-undock-image);
272 #toolbox-dock-bottom-minimize {
273 /* Bug 1177463 - The minimize button is currently hidden until we agree on
274 the UI for it, and until bug 1173849 is fixed too. */
278 #toolbox-dock-bottom-minimize::before {
279 background-image: url("chrome://devtools/skin/images/dock-bottom-minimize@2x.png");
282 #toolbox-dock-bottom-minimize.minimized::before {
283 background-image: url("chrome://devtools/skin/images/dock-bottom-maximize@2x.png");
286 .devtools-separator {
291 #toolbox-buttons:empty + .devtools-separator,
292 .devtools-separator[invisible] {
296 #toolbox-controls-separator {
301 /* Command buttons */
307 -moz-user-focus: normal;
310 .command-button::before {
314 .command-button:hover {
315 /* background-color: var(--toolbar-tab-hover);*/
318 .command-button:hover:active,
319 .command-button[checked=true]:not(:hover) {
320 /* background-color: var(--toolbar-tab-hover-active)*/
323 .command-button:hover::before {
327 .command-button:hover:active::before,
328 .command-button[checked=true]::before,
329 .command-button[open=true]::before {
333 #toolbox-close:hover::before,
334 #toolbox-close:hover:active::before,
335 .toolbox-dock-button:hover::before,
336 .toolbox-dock-button:hover:active::before,
337 .command-button:hover::before,
338 .command-button:hover:active::before,
339 .command-button[checked=true]::before,
340 .command-button[open=true]::before,
341 .command-button.checked::before,
342 .command-button.open::before {
343 filter: var(--checked-icon-filter);
346 /* Command button images */
348 #command-button-paintflashing::before {
349 background-image: var(--command-paintflashing-image);
352 #command-button-screenshot::before {
353 background-image: var(--command-screenshot-image);
356 #command-button-responsive::before {
357 background-image: var(--command-responsive-image);
360 #command-button-scratchpad::before {
361 background-image: var(--command-scratchpad-image);
364 #command-button-pick::before {
365 background-image: var(--command-pick-image);
368 #command-button-splitconsole::before {
369 background-image: var(--command-splitconsole-image);
372 #command-button-noautohide::before {
373 background-image: var(--command-noautohide-image);
376 #command-button-eyedropper::before {
377 background-image: var(--command-eyedropper-image);
380 #command-button-rulers::before {
381 background-image: var(--command-rulers-image);
384 #command-button-measure::before {
385 background-image: var(--command-measure-image);
388 #command-button-frames::before {
389 background-image: var(--command-frames-image);
392 #command-button-frames {
393 background-image: url("chrome://devtools/skin/images/dropmarker.svg");
394 background-repeat: no-repeat;
395 background-position: right;
397 /* Override background-size from the command-button.
398 The drop down arrow is smaller */
399 background-size: 8px 4px !important;
403 #command-button-frames:-moz-dir(rtl) {
404 background-position: left;
412 visibility: collapse;
415 .toolbox-panel[selected] {
420 * When panels are collapsed or hidden, making sure that they are also
421 * inaccessible by keyboard. This is not the case by default because the are
422 * predominantly hidden using visibility: collapse; style or collapsed
426 #toolbox-panel-webconsole[collapsed] * {
427 -moz-user-focus: ignore;
431 * Enrure that selected toolbox panel's contents are keyboard accessible as they
432 * are explicitly made not to be when hidden (default).
434 .toolbox-panel[selected] * {
435 -moz-user-focus: normal;