/* vim:set ts=2 sw=2 sts=2 et: */ /* 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/. */ /* CSS Variables specific to the devtools toolbar that aren't defined by the themes */ .theme-light { --searchbox-background-color: var(--theme-highlight-yellow); --searchbox-border-color: #ffbf00; --searcbox-no-match-background-color: #ffe5e5; --searcbox-no-match-border-color: #e52e2e; --magnifying-glass-image: url(chrome://devtools/skin/images/search.svg); --filter-image: url(chrome://devtools/skin/images/filter.svg); --tool-options-image: url(chrome://devtools/skin/images/tool-options.svg); --separator-border-image: linear-gradient(transparent 4px, rgba(0,0,0,.1) 4px, rgba(0,0,0,.1) calc(100% - 4px), transparent calc(100% - 4px)); } .theme-dark { --searchbox-background-color: #4d4222; --searchbox-border-color: #d99f2b; --searcbox-no-match-background-color: #402325; --searcbox-no-match-border-color: #cc3d3d; --magnifying-glass-image: url(chrome://devtools/skin/images/search.svg); --filter-image: url(chrome://devtools/skin/images/filter.svg); --tool-options-image: url(chrome://devtools/skin/images/tool-options.svg); --separator-border-image: linear-gradient(transparent 4px, rgba(100%,100%,100%,.2) 4px, rgba(100%,100%,100%,.2) calc(100% - 4px), transparent calc(100% - 4px)); } .theme-firebug { --magnifying-glass-image: url(chrome://devtools/skin/images/search.svg); --tool-options-image: url(chrome://devtools/skin/images/firebug/tool-options.svg); } /* Toolbars */ .devtools-toolbar, .devtools-sidebar-tabs tabs { -moz-appearance: none; padding: 0; border-width: 0; border-bottom-width: 1px; border-style: solid; height: 24px; line-height: 24px; box-sizing: border-box; } .devtools-toolbar { padding: 0 3px; } .devtools-toolbar checkbox { margin: 0 2px; padding: 0; line-height: -moz-block-height; } .devtools-toolbar checkbox .checkbox-check { margin: 0; padding: 0; vertical-align: bottom; } .devtools-toolbar checkbox .checkbox-label-box { border: none !important; /* overrides .checkbox-label-box from checkbox.css */ } .devtools-toolbar checkbox .checkbox-label-box .checkbox-label { margin: 0 6px !important; /* overrides .checkbox-label from checkbox.css */ padding: 0; } .devtools-toolbar-bottom { border-top-width: 1px; border-bottom: none; } .devtools-separator { border-inline-start: 1px solid; border-image: var(--separator-border-image); border-image-slice: 1; height: inherit; } /* In-tools sidebar */ .devtools-sidebar-tabs { -moz-appearance: none; margin: 0; height: 100%; } .devtools-sidebar-tabs > tabpanels { -moz-appearance: none; background: transparent; padding: 0; border: 0; } .theme-light .devtools-sidebar-tabs > tabpanels { background: var(--theme-sidebar-background); color: var(--theme-body-color); } .devtools-sidebar-tabs tabs { position: static; font: inherit; margin-bottom: 0; overflow: hidden; } .devtools-sidebar-alltabs { -moz-appearance: none; height: 24px; line-height: 24px; padding: 0 4px; margin: 0; border-width: 0 0 1px 0; border-inline-start-width: 1px; border-style: solid; } .devtools-sidebar-alltabs .toolbarbutton-icon { display: none; } .devtools-sidebar-tabs tabs > .tabs-right, .devtools-sidebar-tabs tabs > .tabs-left { display: none; } .devtools-sidebar-tabs tabs > tab { -moz-appearance: none; /* We want to match the height of a toolbar with a toolbarbutton * First, we need to replicated the padding of toolbar (4px), * then we need to take the border of the buttons into account (1px). */ padding: 0 3px; margin: 0; min-width: 78px; text-align: center; background-color: transparent; color: inherit; -moz-box-flex: 1; border-width: 0; border-inline-start-width: 1px; border-style: solid; border-radius: 0; position: static; text-shadow: none; } .devtools-sidebar-tabs tabs > tab { border-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%) 1 1; } .devtools-sidebar-tabs tabs > tab[selected], .devtools-sidebar-tabs tabs > tab[selected] + tab { border-image: linear-gradient(var(--theme-splitter-color), var(--theme-splitter-color)) 1 1; } .devtools-sidebar-tabs tabs > tab:first-child { border-inline-start-width: 0; } .devtools-sidebar-tabs tabs > tab:hover { background: rgba(0, 0, 0, 0.12); } .devtools-sidebar-tabs tabs > tab:hover:active { background: rgba(0, 0, 0, 0.2); } .devtools-sidebar-tabs tabs > tab[selected], .devtools-sidebar-tabs tabs > tab[selected]:hover:active { color: var(--theme-selection-color); background: var(--theme-selection-background); } /* Invert the colors of certain light theme images for displaying * inside of the dark theme. */ .devtools-tab.icon-invertable > img, .devtools-toolbarbutton > image, .devtools-button::before, .scrollbutton-up > .toolbarbutton-icon, .scrollbutton-down > .toolbarbutton-icon, #black-boxed-message-button .button-icon, #canvas-debugging-empty-notice-button .button-icon, #toggle-breakpoints[checked] > image, .event-tooltip-debugger-icon { filter: var(--theme-icon-filter); } .hidden-labels-box:not(.visible) > label, .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child { display: none; } .devtools-invisible-splitter { border-color: transparent; background-color: transparent; } .devtools-horizontal-splitter, .devtools-side-splitter { background-color: var(--theme-splitter-color); }