/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ :root { --close-button-image: url(chrome://devtools/skin/images/close.svg); --dock-bottom-image: url(chrome://devtools/skin/images/dock-bottom.svg); --dock-side-image: url(chrome://devtools/skin/images/dock-side.svg); --dock-undock-image: url(chrome://devtools/skin/images/dock-undock.svg); --command-paintflashing-image: url(images/command-paintflashing.svg); --command-screenshot-image: url(images/command-screenshot.svg); --command-responsive-image: url(images/command-responsivemode.svg); --command-scratchpad-image: url(images/tool-scratchpad.svg); --command-pick-image: url(images/command-pick.svg); --command-frames-image: url(images/command-frames.svg); --command-splitconsole-image: url(images/command-console.svg); --command-noautohide-image: url(images/command-noautohide.svg); --command-rulers-image: url(images/command-rulers.svg); --command-measure-image: url(images/command-measure.svg); } .theme-firebug { --close-button-image: url(chrome://devtools/skin/images/firebug/close.svg); --dock-bottom-image: url(chrome://devtools/skin/images/firebug/dock-bottom.svg); --dock-side-image: url(chrome://devtools/skin/images/firebug/dock-side.svg); --dock-undock-image: url(chrome://devtools/skin/images/firebug/dock-undock.svg); --command-paintflashing-image: url(images/firebug/command-paintflashing.svg); --command-screenshot-image: url(images/firebug/command-screenshot.svg); --command-responsive-image: url(images/firebug/command-responsivemode.svg); --command-scratchpad-image: url(images/firebug/command-scratchpad.svg); --command-pick-image: url(images/firebug/command-pick.svg); --command-frames-image: url(images/firebug/command-frames.svg); --command-splitconsole-image: url(images/firebug/command-console.svg); --command-noautohide-image: url(images/firebug/command-noautohide.svg); --command-rulers-image: url(images/firebug/command-rulers.svg); --command-measure-image: url(images/firebug/command-measure.svg); } /* Toolbox tabbar */ .devtools-tabbar { appearance: none; min-height: 24px; border: 0px solid; border-bottom-width: 1px; padding: 0; background: var(--theme-tab-toolbar-background); border-bottom-color: var(--theme-splitter-color); display: flex; } .toolbox-tabs { margin: 0; flex: 1; } .toolbox-tabs-wrapper { position: relative; display: flex; flex: 1; } .toolbox-tabs { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; } /* Set flex attribute to Toolbox buttons and Picker container so, they don't overlap with the tab bar */ #toolbox-buttons-start, #toolbox-buttons-end { display: flex; align-items: stretch; } #toolbox-buttons-start { border: solid 0 var(--theme-splitter-color); border-inline-end-width: 1px; } /* Toolbox tabs */ .devtools-tab { min-width: 32px; min-height: 24px; margin: 0; padding: 0; border-style: solid; border-width: 0; border-inline-start-width: 1px; padding-inline-end: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-color: transparent; } .devtools-tab-icon-only { padding-inline-end: 2px; } .devtools-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline-end: 13px; position: relative; top: 1px; } /* Save space on the tab-strip in Firebug theme */ .theme-firebug .devtools-tab { -moz-box-flex: initial; } .theme-dark .devtools-tab { color: var(--theme-body-color-alt); border-color: #42484f; } .theme-light .devtools-tab { color: var(--theme-body-color); border-color: var(--theme-splitter-color); } .theme-dark .devtools-tab:hover { color: #ced3d9; } .devtools-tab:hover { background-color: var(--toolbar-tab-hover); } .theme-dark .devtools-tab:hover:active { color: var(--theme-selection-color); } .devtools-tab:hover:active { background-color: var(--toolbar-tab-hover-active); } .theme-dark .devtools-tab:not(.selected).highlighted { background-color: hsla(99, 100%, 14%, .3); } .theme-light .devtools-tab:not(.selected).highlighted { background-color: rgba(44, 187, 15, .2); } /* Display execution pointer in the Debugger tab to indicate that the debugger is paused. */ .theme-firebug #toolbox-tab-jsdebugger.devtools-tab:not(.selected).highlighted { background-color: rgba(89, 178, 234, .2); background-image: url(chrome://devtools/skin/images/firebug/tool-debugger-paused.svg); background-repeat: no-repeat; padding-left: 13px !important; background-position: 3px 6px; } .devtools-tab > img { border: none; margin: 0; margin-inline-start: 10px; opacity: 0.6; max-height: 16px; width: 16px; /* Prevents collapse during theme switching */ vertical-align: text-top; margin-inline-end: 6px; } /* Support invertable icon flags and make icon white when it's on a blue background */ .theme-light .devtools-tab.icon-invertable-light-theme:not(.selected) > img, .devtools-tab.icon-invertable-dark-theme.selected > img { filter: invert(1); } /* Don't apply any filter to non-invertable command button icons */ .command-button:not(.command-button-invertable), /* icon-invertable-light-theme icons are white, so do not invert them for the dark theme */ .theme-dark .devtools-tab.icon-invertable-light-theme > img, /* Since "highlighted" icons are green, we should omit the filter */ .devtools-tab.icon-invertable.highlighted:not(.selected) > img { filter: none; } .devtools-tab > label { white-space: nowrap; margin: 0 4px; } .devtools-tab:hover > img { opacity: 0.8; } .devtools-tab:active > img, .devtools-tab.selected > img { opacity: 1; } .devtools-tabbar .devtools-tab.selected, .devtools-tabbar .devtools-tab.selected:hover:active { color: var(--theme-selection-color); background-color: var(--theme-selection-background); } .toolbox-tabs .devtools-tab.selected, .toolbox-tabs .devtools-tab.highlighted { border-width: 0; padding-inline-start: 1px; } .toolbox-tabs .devtools-tab.selected + .devtools-tab, .toolbox-tabs .devtools-tab.highlighted + .devtools-tab { border-inline-start-width: 0; padding-inline-start: 1px; } .toolbox-tabs .devtools-tab:first-child { border-inline-start-width: 0; } .toolbox-tabs .devtools-tab:last-child { border-inline-end-width: 1px; } .devtools-tab:not(.highlighted) > .highlighted-icon, .devtools-tab.selected > .highlighted-icon, .devtools-tab:not(.selected).highlighted > .default-icon { display: none; } /* The options tab is special - it doesn't have the same parent as the other tabs (toolbox-option-container vs toolbox-tabs) */ #toolbox-option-container .devtools-tab:not(.selected) { background-color: transparent; } #toolbox-option-container .devtools-tab { border-color: transparent; border-width: 0; padding-inline-start: 1px; } #toolbox-option-container img { margin-inline-end: 6px; margin-inline-start: 6px; } /* Toolbox controls */ #toolbox-controls, #toolbox-dock-buttons { display: flex; } #toolbox-controls > button, #toolbox-dock-buttons > button { appearance: none; border: none; margin: 0 4px; min-width: 16px; width: 16px; } /* Save space in Firebug theme */ .theme-firebug #toolbox-controls button { margin-inline-start: 0 !important; min-width: 12px; margin: 0 1px; } #toolbox-close::before { background-image: var(--close-button-image); } #toolbox-dock-bottom::before { background-image: var(--dock-bottom-image); } #toolbox-dock-side::before { background-image: var(--dock-side-image); } #toolbox-dock-window::before { background-image: var(--dock-undock-image); } #toolbox-dock-bottom-minimize::before { background-image: url("chrome://devtools/skin/images/dock-bottom-minimize@2x.png"); } #toolbox-dock-bottom-minimize.minimized::before { background-image: url("chrome://devtools/skin/images/dock-bottom-maximize@2x.png"); } /** * Ensure that when the toolbar collapses in on itself when there is not enough room * that it still looks reasonable. */ .devtools-tabbar > div { background-color: var(--theme-tab-toolbar-background); z-index: 0; } #toolbox-buttons-end:empty + .devtools-separator, .devtools-separator[invisible] { visibility: hidden; } #toolbox-controls-separator { margin: 0; } /* Command buttons */ .command-button { /* !important is needed to override .devtools-button rules in common.css */ padding: 0 !important; margin: 0 !important; position: relative; } .command-button::before { opacity: 0.7; } .command-button:hover { background-color: var(--toolbar-tab-hover); } .theme-light .command-button:hover { background-color: inherit; } .command-button:hover:active, .command-button.checked:not(:hover) { background-color: var(--toolbar-tab-hover-active) } .theme-light .command-button:hover:active, .theme-light .command-button.checked:not(:hover) { background-color: inherit; } .command-button:hover::before { opacity: 0.85; } .command-button:hover:active::before, .command-button.checked::before, .command-button.open::before { opacity: 1; } /* Command button images */ #command-button-paintflashing::before { background-image: var(--command-paintflashing-image); } #command-button-screenshot::before { background-image: var(--command-screenshot-image); } #command-button-responsive::before { background-image: var(--command-responsive-image); } #command-button-scratchpad::before { background-image: var(--command-scratchpad-image); } #command-button-pick::before { background-image: var(--command-pick-image); } #command-button-splitconsole::before { background-image: var(--command-splitconsole-image); } #command-button-noautohide::before { background-image: var(--command-noautohide-image); } #command-button-eyedropper::before { background-image: var(--command-eyedropper-image); } #command-button-rulers::before { background-image: var(--command-rulers-image); } #command-button-measure::before { background-image: var(--command-measure-image); } #command-button-frames::before { background-image: var(--command-frames-image); } #command-button-frames { background-image: url("chrome://devtools/skin/images/dropmarker.svg"); background-repeat: no-repeat; /* Override background-size from the command-button. The drop down arrow is smaller */ background-size: 8px 4px !important; min-width: 32px; } #command-button-frames:-moz-locale-dir(ltr) { background-position: right; } #command-button-frames:-moz-locale-dir(rtl) { background-position: left; } /* Toolbox panels */ .toolbox-panel { display: -moz-box; -moz-box-flex: 1; visibility: collapse; } .toolbox-panel[selected] { visibility: visible; } /** * When panels are collapsed or hidden, making sure that they are also * inaccessible by keyboard. This is not the case by default because the are * predominantly hidden using visibility: collapse; style or collapsed * attribute. */ .toolbox-panel *, #toolbox-panel-webconsole[collapsed] * { -moz-user-focus: ignore; } /** * Enrure that selected toolbox panel's contents are keyboard accessible as they * are explicitly made not to be when hidden (default). */ .toolbox-panel[selected] * { -moz-user-focus: normal; }