michael@0: %if 0 michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: %endif michael@0: %filter substitution michael@0: %define smallSeparatorDark linear-gradient(transparent 15%, #5a6169 15%, #5a6169 85%, transparent 85%) michael@0: %define smallSeparatorLight linear-gradient(transparent 15%, #aaa 15%, #aaa 85%, transparent 85%) michael@0: %define solidSeparatorDark linear-gradient(#2d5b7d, #2d5b7d) michael@0: %define solidSeparatorLight linear-gradient(#aaa, #aaa) michael@0: michael@0: michael@0: .devtools-toolbar { michael@0: -moz-appearance: none; michael@0: padding: 4px 3px; michael@0: border-bottom-width: 1px; michael@0: border-bottom-style: solid; michael@0: } michael@0: michael@0: .devtools-menulist, michael@0: .devtools-toolbarbutton { michael@0: -moz-appearance: none; michael@0: -moz-box-align: center; michael@0: min-width: 78px; michael@0: min-height: 22px; michael@0: text-shadow: none; michael@0: border: 1px solid hsla(210,8%,5%,.45); michael@0: border-radius: 3px; michael@0: margin: 0 3px; michael@0: } michael@0: michael@0: .devtools-menulist:-moz-focusring, michael@0: .devtools-toolbarbutton:-moz-focusring { michael@0: outline: 1px dotted hsla(210,30%,85%,0.7); michael@0: outline-offset: -4px; michael@0: } michael@0: michael@0: .devtools-toolbarbutton > .toolbarbutton-icon { michael@0: margin: 0; michael@0: } michael@0: michael@0: .devtools-toolbarbutton:not([label]) { michael@0: min-width: 32px; michael@0: } michael@0: michael@0: .devtools-toolbarbutton:not([label]) > .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: michael@0: .devtools-toolbarbutton > .toolbarbutton-menubutton-button { michael@0: -moz-box-orient: horizontal; michael@0: } michael@0: michael@0: .theme-dark .devtools-menulist, michael@0: .theme-dark .devtools-toolbarbutton { michael@0: background: linear-gradient(hsla(212,7%,57%,.35), hsla(212,7%,57%,.1)) padding-box; michael@0: color: inherit; michael@0: box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset, 0 0 0 1px hsla(210,16%,76%,.15) inset, 0 1px 0 hsla(210,16%,76%,.15); michael@0: } michael@0: michael@0: .theme-light .devtools-menulist, michael@0: .theme-light .devtools-toolbarbutton { michael@0: background: #f7f7f7; michael@0: color: #18191a; michael@0: border-color: #bbb; michael@0: } michael@0: michael@0: .theme-light .devtools-menulist[open=true], michael@0: .theme-light .devtools-toolbarbutton[open=true], michael@0: .theme-light .devtools-toolbarbutton[open=true]:hover, michael@0: .theme-light .devtools-toolbarbutton[open=true]:hover:active, michael@0: .theme-light .devtools-toolbarbutton[checked=true], michael@0: .theme-light .devtools-toolbarbutton[checked=true]:hover { michael@0: background: #ddd; michael@0: } michael@0: michael@0: .theme-light .devtools-toolbarbutton:hover { michael@0: background: #eee; michael@0: } michael@0: michael@0: .theme-light .devtools-toolbarbutton:hover:active, michael@0: .theme-light .devtools-toolbarbutton[checked=true]:hover:active { michael@0: background: #e8e8e8; michael@0: } michael@0: michael@0: .theme-light .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { michael@0: color: #667380; michael@0: } michael@0: michael@0: .theme-light .devtools-toolbarbutton[type=menu-button][checked=true] > .toolbarbutton-menubutton-button { michael@0: color: #18191a; michael@0: } michael@0: michael@0: .theme-dark .devtools-toolbarbutton:not([checked]):hover:active { michael@0: border-color: hsla(210,8%,5%,.6); michael@0: background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3)); michael@0: box-shadow: 0 0 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15); michael@0: } michael@0: michael@0: .theme-dark .devtools-menulist[open=true], michael@0: .theme-dark .devtools-toolbarbutton[open=true], michael@0: .theme-dark .devtools-toolbarbutton[checked=true] { michael@0: border-color: hsla(210,8%,5%,.6) !important; michael@0: background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4)); michael@0: box-shadow: 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15); michael@0: } michael@0: michael@0: .theme-dark .devtools-toolbarbutton[checked=true] { michael@0: color: hsl(208,100%,60%); michael@0: } michael@0: michael@0: .theme-dark .devtools-toolbarbutton[checked=true]:hover { michael@0: background-color: transparent !important; michael@0: } michael@0: michael@0: .theme-dark .devtools-toolbarbutton[checked=true]:hover:active { michael@0: background-color: hsla(210,8%,5%,.2) !important; michael@0: } michael@0: michael@0: .devtools-option-toolbarbutton { michael@0: -moz-appearance: none; michael@0: list-style-image: url("chrome://browser/skin/devtools/tool-options.svg"); michael@0: background: none; michael@0: opacity: .8; michael@0: border: none; michael@0: } michael@0: michael@0: .devtools-option-toolbarbutton[open=true] { michael@0: opacity: 1; michael@0: } michael@0: michael@0: .devtools-menulist > .menulist-label-box { michael@0: text-align: center; michael@0: } michael@0: michael@0: .devtools-menulist > .menulist-dropmarker { michael@0: -moz-appearance: none; michael@0: display: -moz-box; michael@0: list-style-image: url("chrome://browser/skin/devtools/dropmarker.png"); michael@0: -moz-box-align: center; michael@0: min-width: 16px; michael@0: } michael@0: michael@0: .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { michael@0: -moz-appearance: none; michael@0: color: inherit; michael@0: border-width: 0; michael@0: } michael@0: michael@0: .theme-dark .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { michael@0: -moz-border-end: 1px solid hsla(210,8%,5%,.45); michael@0: box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15); michael@0: } michael@0: michael@0: .theme-dark .devtools-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button { michael@0: box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15); michael@0: } michael@0: michael@0: .theme-light .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button { michael@0: -moz-border-end: 1px solid #bbb; michael@0: } michael@0: michael@0: .devtools-toolbarbutton[type=menu-button] { michael@0: padding: 0 1px; michael@0: -moz-box-align: stretch; michael@0: } michael@0: michael@0: .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker, michael@0: .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker { michael@0: -moz-appearance: none !important; michael@0: list-style-image: url("chrome://browser/skin/devtools/dropmarker.png"); michael@0: -moz-box-align: center; michael@0: padding: 0 3px; michael@0: } michael@0: michael@0: /* Toolbar button groups */ michael@0: .theme-light .devtools-toolbarbutton-group > .devtools-toolbarbutton, michael@0: .theme-dark .devtools-toolbarbutton-group > .devtools-toolbarbutton { michael@0: margin: 0; michael@0: box-shadow: none; michael@0: border-radius: 0; michael@0: border-width: 0; michael@0: -moz-border-end-width: 1px; michael@0: outline-offset: -3px; michael@0: } michael@0: michael@0: .devtools-toolbarbutton-group > .devtools-toolbarbutton:last-of-type { michael@0: -moz-border-end-width: 0; michael@0: } michael@0: michael@0: .devtools-toolbarbutton-group { michael@0: border-radius: 3px; michael@0: margin: 0 3px; michael@0: } michael@0: michael@0: .theme-dark .devtools-toolbarbutton-group { michael@0: box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset, michael@0: 0 0 0 1px hsla(210,16%,76%,.15) inset, michael@0: 0 1px 0 hsla(210,16%,76%,.15); michael@0: border: 1px solid hsla(210,8%,5%,.45); michael@0: } michael@0: michael@0: .theme-light .devtools-toolbarbutton-group { michael@0: border: 1px solid #bbb; michael@0: } michael@0: michael@0: /* Text input */ michael@0: michael@0: .devtools-textinput, michael@0: .devtools-searchinput { michael@0: -moz-appearance: none; michael@0: margin: 0 3px; michael@0: border: 1px solid; michael@0: %ifdef XP_MACOSX michael@0: border-radius: 20px; michael@0: %else michael@0: border-radius: 2px; michael@0: %endif michael@0: padding: 4px 6px; michael@0: } michael@0: michael@0: .theme-dark .devtools-textinput, michael@0: .theme-dark .devtools-searchinput { michael@0: border-color: rgb(88, 94, 101); michael@0: } michael@0: michael@0: .theme-light .devtools-textinput, michael@0: .theme-light .devtools-searchinput { michael@0: border-color: #aaa; /* Match the splitter color */ michael@0: } michael@0: michael@0: .devtools-searchinput { michael@0: padding-top: 3px; michael@0: padding-bottom: 3px; michael@0: -moz-padding-start: 22px; michael@0: -moz-padding-end: 12px; michael@0: background-position: 8px center; michael@0: background-size: 11px 11px; michael@0: background-repeat: no-repeat; michael@0: font-size: inherit; michael@0: } michael@0: michael@0: .theme-dark .devtools-searchinput { michael@0: background-image: url(magnifying-glass.png); michael@0: } michael@0: michael@0: .theme-light .devtools-searchinput { michael@0: background-image: url(magnifying-glass-light.png); michael@0: } michael@0: michael@0: @media (min-resolution: 2dppx) { michael@0: .theme-dark .devtools-searchinput { michael@0: background-image: url(magnifying-glass@2x.png); michael@0: } michael@0: michael@0: .theme-light .devtools-searchinput { michael@0: background-image: url(magnifying-glass-light@2x.png); michael@0: } michael@0: } michael@0: michael@0: .devtools-searchinput:-moz-locale-dir(rtl) { michael@0: background-position: calc(100% - 8px) center; michael@0: } michael@0: michael@0: .devtools-searchinput > .textbox-input-box > .textbox-search-icons { michael@0: display: none; michael@0: } michael@0: michael@0: .devtools-no-search-result { michael@0: border-color: #eb5368 !important; michael@0: } michael@0: michael@0: /* Close button */ michael@0: michael@0: .devtools-closebutton { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: margin: 0 4px; michael@0: min-width: 16px; michael@0: width: 16px; michael@0: opacity: 0.6; michael@0: } michael@0: michael@0: .devtools-closebutton > image { michael@0: width: 16px; michael@0: height: 16px; michael@0: -moz-appearance: none; michael@0: background-size: 16px 16px; michael@0: background-image: url("chrome://browser/skin/devtools/close@2x.png"); michael@0: background-position: center center; michael@0: background-repeat: no-repeat; michael@0: } michael@0: michael@0: .devtools-closebutton > .toolbarbutton-icon { michael@0: /* XXX Buttons have padding in widget/ that we don't want here but can't override with good CSS, so we must michael@0: use evil CSS to give the impression of smaller content */ michael@0: margin: -4px; michael@0: } michael@0: michael@0: .devtools-closebutton > .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: michael@0: .devtools-closebutton:hover { michael@0: opacity: 0.8; michael@0: } michael@0: michael@0: .devtools-closebutton:hover:active { michael@0: opacity: 1; michael@0: } michael@0: michael@0: /* In-tools sidebar */ michael@0: michael@0: .devtools-sidebar-tabs { michael@0: -moz-appearance: none; michael@0: margin: 0; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabpanels { michael@0: -moz-appearance: none; michael@0: background: transparent; michael@0: padding: 0; michael@0: border: 0; michael@0: } michael@0: michael@0: .theme-light .devtools-sidebar-tabs > tabpanels { michael@0: background: #f7f7f7; michael@0: color: #18191a; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabs { michael@0: -moz-appearance: none; michael@0: position: static; michael@0: font: inherit; michael@0: margin-bottom: 0; michael@0: padding: 0; michael@0: border-width: 0 0 1px 0; michael@0: border-style: solid; michael@0: overflow: hidden; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabs > .tabs-right, michael@0: .devtools-sidebar-tabs > tabs > .tabs-left { michael@0: display: none; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabs > tab { michael@0: -moz-appearance: none; michael@0: /* We want to match the height of a toolbar with a toolbarbutton michael@0: * First, we need to replicated the padding of toolbar (4px), michael@0: * then we need to take the border of the buttons into account (1px). michael@0: */ michael@0: padding: 5px 3px; michael@0: -moz-padding-start: 6px; michael@0: margin: 0; michael@0: min-width: 78px; michael@0: /* toolbar's min-height is button min-height (25px) + padding (2 * 4px): 33px. michael@0: * -1px because the parent element () comes with a 1px bottom border. michael@0: */ michael@0: min-height: 32px; michael@0: text-align: center; michael@0: color: inherit; michael@0: -moz-box-flex: 1; michael@0: border-width: 0; michael@0: position: static; michael@0: -moz-margin-start: -1px; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabs > tab:first-of-type { michael@0: -moz-margin-start: -3px; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabs > tab { michael@0: background-size: calc(100% - 1px) 100%, 1px 100%; michael@0: background-repeat: no-repeat; michael@0: background-position: 1px, 0; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabs > tab:not(:last-of-type) { michael@0: background-size: calc(100% - 2px) 100%, 1px 100%; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs:-moz-locale-dir(rtl) > tabs > tab { michael@0: background-position: calc(100% - 1px), 100%; michael@0: } michael@0: michael@0: .devtools-sidebar-tabs > tabs > tab { michael@0: background-color: transparent; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab { michael@0: background-image: linear-gradient(transparent, transparent), @smallSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab:hover { michael@0: background-image: linear-gradient(hsla(206,37%,4%,.2), hsla(206,37%,4%,.2)), @smallSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab:hover:active { michael@0: background-image: linear-gradient(hsla(206,37%,4%,.4), hsla(206,37%,4%,.4)), @smallSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab { michael@0: background-image: linear-gradient(transparent, transparent), @solidSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover { michael@0: background-image: linear-gradient(hsla(206,37%,4%,.2), hsla(206,37%,4%,.2)), @solidSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover:active { michael@0: background-image: linear-gradient(hsla(206,37%,4%,.4), hsla(206,37%,4%,.4)), @solidSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] { michael@0: color: #f5f7fa; michael@0: background-image: linear-gradient(#1d4f73, #1d4f73), @solidSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab[selected]:hover { michael@0: background-image: linear-gradient(#274f64, #274f64), @solidSeparatorDark@; michael@0: } michael@0: michael@0: .theme-dark .devtools-sidebar-tabs > tabs > tab[selected]:hover:active { michael@0: background-image: linear-gradient(#1f3e4f, #1f3e4f), @solidSeparatorDark@; michael@0: } michael@0: michael@0: .theme-light .devtools-sidebar-tabs > tabs > tab { michael@0: background-image: linear-gradient(transparent, transparent), @smallSeparatorLight@; michael@0: } michael@0: michael@0: .theme-light .devtools-sidebar-tabs > tabs > tab:hover { michael@0: background-image: linear-gradient(#ddd, #ddd), @smallSeparatorLight@; michael@0: } michael@0: michael@0: .theme-light .devtools-sidebar-tabs > tabs > tab:hover:active { michael@0: background-image: linear-gradient(#ddd, #ddd), @smallSeparatorLight@; michael@0: } michael@0: michael@0: .theme-light .devtools-sidebar-tabs > tabs > tab[selected] + tab { michael@0: background-image: linear-gradient(transparent, transparent), @solidSeparatorLight@; michael@0: } michael@0: michael@0: .theme-light .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover { michael@0: background-image: linear-gradient(#ddd, #ddd), @solidSeparatorLight@; michael@0: } michael@0: michael@0: .theme-light .devtools-sidebar-tabs > tabs > tab[selected], michael@0: .theme-light .devtools-sidebar-tabs > tabs > tab[selected]:hover:active { michael@0: color: #f5f7fa; michael@0: background-image: linear-gradient(#4c9ed9, #4c9ed9), @solidSeparatorLight@; michael@0: } michael@0: michael@0: /* Toolbox - moved from toolbox.css. michael@0: * Rules that apply to the global toolbox like command buttons, michael@0: * devtools tabs, docking buttons, etc. */ michael@0: michael@0: #toolbox-controls { michael@0: margin: 0 4px; michael@0: } michael@0: michael@0: #toolbox-controls > toolbarbutton, michael@0: #toolbox-dock-buttons > toolbarbutton { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: margin: 0 4px; michael@0: min-width: 16px; michael@0: width: 16px; michael@0: } michael@0: michael@0: #toolbox-controls > toolbarbutton > .toolbarbutton-text, michael@0: #toolbox-dock-buttons > toolbarbutton > .toolbarbutton-text, michael@0: .command-button > .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: michael@0: #toolbox-dock-buttons > toolbarbutton > image { michael@0: -moz-appearance: none; michael@0: width: 16px; michael@0: height: 16px; michael@0: background-size: 16px 16px; michael@0: background-position: 0 center; michael@0: background-repeat: no-repeat; michael@0: } michael@0: michael@0: #toolbox-dock-bottom > image { michael@0: background-image: url("chrome://browser/skin/devtools/dock-bottom@2x.png"); michael@0: } michael@0: michael@0: #toolbox-dock-side > image { michael@0: background-image: url("chrome://browser/skin/devtools/dock-side@2x.png"); michael@0: } michael@0: michael@0: #toolbox-dock-window > image { michael@0: background-image: url("chrome://browser/skin/devtools/undock@2x.png"); michael@0: } michael@0: michael@0: #toolbox-dock-window, michael@0: #toolbox-dock-bottom, michael@0: #toolbox-dock-side { michael@0: opacity: 0.6; michael@0: } michael@0: michael@0: #toolbox-dock-window:hover, michael@0: #toolbox-dock-bottom:hover, michael@0: #toolbox-dock-side:hover { michael@0: opacity: 1; michael@0: } michael@0: michael@0: #toolbox-controls-separator { michael@0: width: 3px; michael@0: background-image: linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0)), michael@0: linear-gradient(hsla(206,37%,4%,0), hsla(206,37%,4%,.6), hsla(206,37%,4%,0)), michael@0: linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0)); michael@0: background-size: 1px 100%; michael@0: background-repeat: no-repeat; michael@0: background-position: 0, 1px, 2px; michael@0: -moz-margin-start: 8px; michael@0: } michael@0: michael@0: /* Command buttons */ michael@0: michael@0: .command-button { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: padding: 0 8px; michael@0: margin: 0; michael@0: width: 32px; michael@0: position: relative; michael@0: } michael@0: michael@0: .command-button:hover { michael@0: background-color: hsla(206,37%,4%,.2); michael@0: } michael@0: .command-button:hover:active, .command-button[checked=true]:not(:hover) { michael@0: background-color: hsla(206,37%,4%,.4); michael@0: } michael@0: michael@0: .command-button > image { michael@0: -moz-appearance: none; michael@0: width: 16px; michael@0: height: 16px; michael@0: background-size: 64px 16px; michael@0: background-position: 0 center; michael@0: background-repeat: no-repeat; michael@0: } michael@0: .command-button:hover > image { michael@0: background-position: -16px center; michael@0: } michael@0: .command-button:hover:active > image { michael@0: background-position: -32px center; michael@0: } michael@0: .command-button[checked=true] > image { michael@0: background-position: -48px center; michael@0: } michael@0: michael@0: #command-button-paintflashing > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-paintflashing.png"); michael@0: } michael@0: michael@0: #command-button-responsive > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-responsivemode.png"); michael@0: } michael@0: michael@0: #command-button-tilt > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-tilt.png"); michael@0: } michael@0: michael@0: #command-button-scratchpad > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-scratchpad.png"); michael@0: background-size: 48px 16px; michael@0: } michael@0: michael@0: #command-button-pick > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-pick.png"); michael@0: } michael@0: michael@0: #command-button-splitconsole > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-console.png"); michael@0: } michael@0: michael@0: #command-button-eyedropper > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-eyedropper.png"); michael@0: } michael@0: michael@0: @media (min-resolution: 2dppx) { michael@0: #command-button-paintflashing > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-paintflashing@2x.png"); michael@0: } michael@0: michael@0: #command-button-responsive > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-responsivemode@2x.png"); michael@0: } michael@0: michael@0: #command-button-tilt > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-tilt@2x.png"); michael@0: } michael@0: michael@0: #command-button-scratchpad > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-scratchpad@2x.png"); michael@0: } michael@0: michael@0: #command-button-pick > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-pick@2x.png"); michael@0: } michael@0: michael@0: #command-button-splitconsole > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-console@2x.png"); michael@0: } michael@0: michael@0: #command-button-eyedropper > image { michael@0: background-image: url("chrome://browser/skin/devtools/command-eyedropper@2x.png"); michael@0: } michael@0: } michael@0: michael@0: /* Tabs */ michael@0: michael@0: .devtools-tabbar { michael@0: -moz-appearance: none; michael@0: min-height: 28px; michael@0: border: 0px solid; michael@0: border-bottom-width: 1px; michael@0: padding: 0; michael@0: } michael@0: michael@0: .theme-light .devtools-tabbar { michael@0: box-shadow: 0 -2px 0 rgba(170,170,170,.1) inset; michael@0: background: #ebeced; michael@0: border-bottom-color: #aaa; michael@0: } michael@0: michael@0: .theme-dark .devtools-tabbar { michael@0: box-shadow: 0 -2px 0 rgba(0,0,0,.1) inset; michael@0: background: #252c33; michael@0: border-bottom-color: #000; michael@0: } michael@0: michael@0: #toolbox-tabs { michael@0: margin: 0; michael@0: } michael@0: michael@0: .devtools-tab { michael@0: -moz-appearance: none; michael@0: -moz-binding: url("chrome://global/content/bindings/general.xml#control-item"); michael@0: -moz-box-align: center; michael@0: min-width: 32px; michael@0: min-height: 28px; michael@0: max-width: 127px; michael@0: margin: 0; michael@0: padding: 0; michael@0: -moz-border-start: 1px solid; michael@0: -moz-box-align: center; michael@0: } michael@0: michael@0: .theme-dark .devtools-tab { michael@0: color: #b6babf; michael@0: border-color: #42484f; michael@0: } michael@0: michael@0: .theme-light .devtools-tab { michael@0: color: #18191a; michael@0: border-color: #aaa; michael@0: } michael@0: michael@0: .theme-dark .devtools-tab:hover { michael@0: background-color: hsla(206,37%,4%,.2); michael@0: color: #ced3d9; michael@0: } michael@0: michael@0: .theme-light .devtools-tab:hover { michael@0: background-color: rgba(170,170,170,.2); michael@0: } michael@0: michael@0: .theme-dark .devtools-tab:hover:active { michael@0: background-color: hsla(206,37%,4%,.4); michael@0: color: #f5f7fa; michael@0: } michael@0: michael@0: .theme-light .devtools-tab:hover:active { michael@0: background-color: rgba(170,170,170,.4); michael@0: } michael@0: michael@0: .theme-dark .devtools-tab:not([selected])[highlighted] { michael@0: background-color: hsla(99,100%,14%,.2); michael@0: box-shadow: 0 2px 0 #7bc107 inset; michael@0: } michael@0: michael@0: .theme-light .devtools-tab:not([selected])[highlighted] { michael@0: background-color: rgba(44, 187, 15, .2); michael@0: } michael@0: michael@0: .devtools-tab:first-child { michael@0: -moz-border-start-width: 0; michael@0: } michael@0: michael@0: .theme-light .devtools-tab:last-child { michael@0: -moz-border-end: 1px solid #aaa; michael@0: } michael@0: michael@0: .theme-dark .devtools-tab:last-child { michael@0: -moz-border-end: 1px solid #42484f; michael@0: } michael@0: michael@0: .devtools-tab > image { michael@0: border: none; michael@0: -moz-margin-end: 0; michael@0: -moz-margin-start: 4px; michael@0: opacity: 0.6; michael@0: max-height: 16px; michael@0: width: 16px; /* Prevents collapse during theme switching */ michael@0: } michael@0: michael@0: #toolbox-tab-options > image { michael@0: margin: 0 8px; michael@0: } michael@0: michael@0: .devtools-tab > label { michael@0: white-space: nowrap; michael@0: } michael@0: michael@0: .devtools-tab:hover > image { michael@0: opacity: 0.8; michael@0: } michael@0: michael@0: .devtools-tab:active > image, michael@0: .devtools-tab[selected] > image { michael@0: opacity: 1; michael@0: } michael@0: michael@0: .theme-dark #toolbox-tabs .devtools-tab[selected] { michael@0: color: #f5f7fa; michael@0: background-color: #1a4666; michael@0: box-shadow: 0 2px 0 #d7f1ff inset, michael@0: 0 8px 3px -5px #2b82bf inset, michael@0: 0 -2px 0 rgba(0,0,0,.2) inset; michael@0: } michael@0: michael@0: .theme-light #toolbox-tabs .devtools-tab[selected] { michael@0: color: #f5f7fa; michael@0: background-color: #4c9ed9; michael@0: box-shadow: 0 2px 0 #d7f1ff inset, michael@0: 0 8px 3px -5px #2b82bf inset, michael@0: 0 -2px 0 rgba(0,0,0,.06) inset; michael@0: } michael@0: michael@0: .devtools-tab[selected]:not(:first-child), michael@0: .devtools-tab[highlighted]:not(:first-child) { michael@0: border-width: 0; michael@0: -moz-padding-start: 1px; michael@0: } michael@0: michael@0: .devtools-tab[selected]:last-child, michael@0: .devtools-tab[highlighted]:last-child { michael@0: -moz-padding-end: 1px; michael@0: } michael@0: michael@0: .devtools-tab[selected] + .devtools-tab, michael@0: .devtools-tab[highlighted] + .devtools-tab { michael@0: -moz-border-start-width: 0; michael@0: -moz-padding-start: 1px; michael@0: } michael@0: michael@0: .devtools-tab:not([highlighted]) > .highlighted-icon, michael@0: .devtools-tab[selected] > .highlighted-icon, michael@0: .devtools-tab:not([selected])[highlighted] > .default-icon { michael@0: visibility: collapse; michael@0: } michael@0: michael@0: /* Invert the colors of certain dark theme images for displaying michael@0: * inside of the light theme. michael@0: */ michael@0: .theme-light .devtools-tab[icon-invertable] > image, michael@0: .theme-light #toolbox-dock-buttons > toolbarbutton > image, michael@0: .theme-light .command-button-invertable > image, michael@0: .theme-light .command-button-invertable:active > image, michael@0: .theme-light .devtools-closebutton > image, michael@0: .theme-light .devtools-toolbarbutton > image, michael@0: .theme-light .devtools-option-toolbarbutton > image, michael@0: .theme-light #breadcrumb-separator-normal, michael@0: .theme-light .scrollbutton-up > .toolbarbutton-icon, michael@0: .theme-light .scrollbutton-down > .toolbarbutton-icon, michael@0: .theme-light #black-boxed-message-button .button-icon, michael@0: .theme-light #canvas-debugging-empty-notice-button .button-icon, michael@0: .theme-light #requests-menu-perf-notice-button .button-icon, michael@0: .theme-light #requests-menu-network-summary-button .button-icon { michael@0: filter: url(filters.svg#invert); michael@0: } michael@0: michael@0: /* Since selected backgrounds are blue, we want to use the normal michael@0: * (light) icons. */ michael@0: .theme-light .command-button-invertable[checked=true]:not(:active) > image, michael@0: .theme-light .devtools-tab[icon-invertable][selected] > image, michael@0: .theme-light .devtools-tab[icon-invertable][highlighted] > image, michael@0: .theme-light #resume[checked] > image { michael@0: filter: none !important; michael@0: } michael@0: michael@0: .theme-light .command-button:hover { michael@0: background-color: inherit; michael@0: } michael@0: michael@0: .theme-light .command-button:hover:active, michael@0: .theme-light .command-button[checked=true]:not(:hover) { michael@0: background-color: inherit; michael@0: } michael@0: michael@0: .hidden-labels-box:not(.visible) > label, michael@0: .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child { michael@0: display: none; michael@0: } michael@0: michael@0: .devtools-invisible-splitter { michael@0: border-color: transparent; michael@0: }