browser/themes/shared/devtools/toolbars.inc.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/themes/shared/devtools/toolbars.inc.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,815 @@
     1.4 +%if 0
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +%endif
     1.9 +%filter substitution
    1.10 +%define smallSeparatorDark linear-gradient(transparent 15%, #5a6169 15%, #5a6169 85%, transparent 85%)
    1.11 +%define smallSeparatorLight linear-gradient(transparent 15%, #aaa 15%, #aaa 85%, transparent 85%)
    1.12 +%define solidSeparatorDark linear-gradient(#2d5b7d, #2d5b7d)
    1.13 +%define solidSeparatorLight linear-gradient(#aaa, #aaa)
    1.14 +
    1.15 +
    1.16 +.devtools-toolbar {
    1.17 +  -moz-appearance: none;
    1.18 +  padding: 4px 3px;
    1.19 +  border-bottom-width: 1px;
    1.20 +  border-bottom-style: solid;
    1.21 +}
    1.22 +
    1.23 +.devtools-menulist,
    1.24 +.devtools-toolbarbutton {
    1.25 +  -moz-appearance: none;
    1.26 +  -moz-box-align: center;
    1.27 +  min-width: 78px;
    1.28 +  min-height: 22px;
    1.29 +  text-shadow: none;
    1.30 +  border: 1px solid hsla(210,8%,5%,.45);
    1.31 +  border-radius: 3px;
    1.32 +  margin: 0 3px;
    1.33 +}
    1.34 +
    1.35 +.devtools-menulist:-moz-focusring,
    1.36 +.devtools-toolbarbutton:-moz-focusring {
    1.37 +  outline: 1px dotted hsla(210,30%,85%,0.7);
    1.38 +  outline-offset: -4px;
    1.39 +}
    1.40 +
    1.41 +.devtools-toolbarbutton > .toolbarbutton-icon {
    1.42 +  margin: 0;
    1.43 +}
    1.44 +
    1.45 +.devtools-toolbarbutton:not([label]) {
    1.46 +  min-width: 32px;
    1.47 +}
    1.48 +
    1.49 +.devtools-toolbarbutton:not([label]) > .toolbarbutton-text {
    1.50 +  display: none;
    1.51 +}
    1.52 +
    1.53 +.devtools-toolbarbutton > .toolbarbutton-menubutton-button {
    1.54 +  -moz-box-orient: horizontal;
    1.55 +}
    1.56 +
    1.57 +.theme-dark .devtools-menulist,
    1.58 +.theme-dark .devtools-toolbarbutton {
    1.59 +  background: linear-gradient(hsla(212,7%,57%,.35), hsla(212,7%,57%,.1)) padding-box;
    1.60 +  color: inherit;
    1.61 +  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);
    1.62 +}
    1.63 +
    1.64 +.theme-light .devtools-menulist,
    1.65 +.theme-light .devtools-toolbarbutton {
    1.66 +  background: #f7f7f7;
    1.67 +  color: #18191a;
    1.68 +  border-color: #bbb;
    1.69 +}
    1.70 +
    1.71 +.theme-light .devtools-menulist[open=true],
    1.72 +.theme-light .devtools-toolbarbutton[open=true],
    1.73 +.theme-light .devtools-toolbarbutton[open=true]:hover,
    1.74 +.theme-light .devtools-toolbarbutton[open=true]:hover:active,
    1.75 +.theme-light .devtools-toolbarbutton[checked=true],
    1.76 +.theme-light .devtools-toolbarbutton[checked=true]:hover  {
    1.77 +  background: #ddd;
    1.78 +}
    1.79 +
    1.80 +.theme-light .devtools-toolbarbutton:hover {
    1.81 +  background: #eee;
    1.82 +}
    1.83 +
    1.84 +.theme-light .devtools-toolbarbutton:hover:active,
    1.85 +.theme-light .devtools-toolbarbutton[checked=true]:hover:active {
    1.86 +  background: #e8e8e8;
    1.87 +}
    1.88 +
    1.89 +.theme-light .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
    1.90 +  color: #667380;
    1.91 +}
    1.92 +
    1.93 +.theme-light .devtools-toolbarbutton[type=menu-button][checked=true] > .toolbarbutton-menubutton-button {
    1.94 +  color: #18191a;
    1.95 +}
    1.96 +
    1.97 +.theme-dark .devtools-toolbarbutton:not([checked]):hover:active {
    1.98 +  border-color: hsla(210,8%,5%,.6);
    1.99 +  background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3));
   1.100 +  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);
   1.101 +}
   1.102 +
   1.103 +.theme-dark .devtools-menulist[open=true],
   1.104 +.theme-dark .devtools-toolbarbutton[open=true],
   1.105 +.theme-dark .devtools-toolbarbutton[checked=true] {
   1.106 +  border-color: hsla(210,8%,5%,.6) !important;
   1.107 +  background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4));
   1.108 +  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);
   1.109 +}
   1.110 +
   1.111 +.theme-dark .devtools-toolbarbutton[checked=true] {
   1.112 +  color: hsl(208,100%,60%);
   1.113 +}
   1.114 +
   1.115 +.theme-dark .devtools-toolbarbutton[checked=true]:hover {
   1.116 +  background-color: transparent !important;
   1.117 +}
   1.118 +
   1.119 +.theme-dark .devtools-toolbarbutton[checked=true]:hover:active {
   1.120 +  background-color: hsla(210,8%,5%,.2) !important;
   1.121 +}
   1.122 +
   1.123 +.devtools-option-toolbarbutton {
   1.124 +  -moz-appearance: none;
   1.125 +  list-style-image: url("chrome://browser/skin/devtools/tool-options.svg");
   1.126 +  background: none;
   1.127 +  opacity: .8;
   1.128 +  border: none;
   1.129 +}
   1.130 +
   1.131 +.devtools-option-toolbarbutton[open=true] {
   1.132 +  opacity: 1;
   1.133 +}
   1.134 +
   1.135 +.devtools-menulist > .menulist-label-box {
   1.136 +  text-align: center;
   1.137 +}
   1.138 +
   1.139 +.devtools-menulist > .menulist-dropmarker {
   1.140 +  -moz-appearance: none;
   1.141 +  display: -moz-box;
   1.142 +  list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
   1.143 +  -moz-box-align: center;
   1.144 +  min-width: 16px;
   1.145 +}
   1.146 +
   1.147 +.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
   1.148 +  -moz-appearance: none;
   1.149 +  color: inherit;
   1.150 +  border-width: 0;
   1.151 +}
   1.152 +
   1.153 +.theme-dark .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
   1.154 +  -moz-border-end: 1px solid hsla(210,8%,5%,.45);
   1.155 +  box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15);
   1.156 +}
   1.157 +
   1.158 +.theme-dark .devtools-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button {
   1.159 +  box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15);
   1.160 +}
   1.161 +
   1.162 +.theme-light .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
   1.163 +  -moz-border-end: 1px solid #bbb;
   1.164 +}
   1.165 +
   1.166 +.devtools-toolbarbutton[type=menu-button] {
   1.167 +  padding: 0 1px;
   1.168 +  -moz-box-align: stretch;
   1.169 +}
   1.170 +
   1.171 +.devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
   1.172 +.devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
   1.173 +  -moz-appearance: none !important;
   1.174 +  list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
   1.175 +  -moz-box-align: center;
   1.176 +  padding: 0 3px;
   1.177 +}
   1.178 +
   1.179 +/* Toolbar button groups */
   1.180 +.theme-light .devtools-toolbarbutton-group > .devtools-toolbarbutton,
   1.181 +.theme-dark .devtools-toolbarbutton-group > .devtools-toolbarbutton {
   1.182 +  margin: 0;
   1.183 +  box-shadow: none;
   1.184 +  border-radius: 0;
   1.185 +  border-width: 0;
   1.186 +  -moz-border-end-width: 1px;
   1.187 +  outline-offset: -3px;
   1.188 +}
   1.189 +
   1.190 +.devtools-toolbarbutton-group > .devtools-toolbarbutton:last-of-type {
   1.191 +  -moz-border-end-width: 0;
   1.192 +}
   1.193 +
   1.194 +.devtools-toolbarbutton-group {
   1.195 +  border-radius: 3px;
   1.196 +  margin: 0 3px;
   1.197 +}
   1.198 +
   1.199 +.theme-dark .devtools-toolbarbutton-group {
   1.200 +  box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset,
   1.201 +              0 0 0 1px hsla(210,16%,76%,.15) inset,
   1.202 +              0 1px 0 hsla(210,16%,76%,.15);
   1.203 +  border: 1px solid hsla(210,8%,5%,.45);
   1.204 +}
   1.205 +
   1.206 +.theme-light .devtools-toolbarbutton-group {
   1.207 +  border: 1px solid #bbb;
   1.208 +}
   1.209 +
   1.210 +/* Text input */
   1.211 +
   1.212 +.devtools-textinput,
   1.213 +.devtools-searchinput {
   1.214 +  -moz-appearance: none;
   1.215 +  margin: 0 3px;
   1.216 +  border: 1px solid;
   1.217 +%ifdef XP_MACOSX
   1.218 +  border-radius: 20px;
   1.219 +%else
   1.220 +  border-radius: 2px;
   1.221 +%endif
   1.222 +  padding: 4px 6px;
   1.223 +}
   1.224 +
   1.225 +.theme-dark .devtools-textinput,
   1.226 +.theme-dark .devtools-searchinput {
   1.227 +  border-color: rgb(88, 94, 101);
   1.228 +}
   1.229 +
   1.230 +.theme-light .devtools-textinput,
   1.231 +.theme-light .devtools-searchinput {
   1.232 +  border-color: #aaa; /* Match the splitter color */
   1.233 +}
   1.234 +
   1.235 +.devtools-searchinput {
   1.236 +  padding-top: 3px;
   1.237 +  padding-bottom: 3px;
   1.238 +  -moz-padding-start: 22px;
   1.239 +  -moz-padding-end: 12px;
   1.240 +  background-position: 8px center;
   1.241 +  background-size: 11px 11px;
   1.242 +  background-repeat: no-repeat;
   1.243 +  font-size: inherit;
   1.244 +}
   1.245 +
   1.246 +.theme-dark .devtools-searchinput {
   1.247 +  background-image: url(magnifying-glass.png);
   1.248 +}
   1.249 +
   1.250 +.theme-light .devtools-searchinput {
   1.251 +  background-image: url(magnifying-glass-light.png);
   1.252 +}
   1.253 +
   1.254 +@media (min-resolution: 2dppx) {
   1.255 +  .theme-dark .devtools-searchinput {
   1.256 +    background-image: url(magnifying-glass@2x.png);
   1.257 +  }
   1.258 +
   1.259 +  .theme-light .devtools-searchinput {
   1.260 +    background-image: url(magnifying-glass-light@2x.png);
   1.261 +  }
   1.262 +}
   1.263 +
   1.264 +.devtools-searchinput:-moz-locale-dir(rtl) {
   1.265 +  background-position: calc(100% - 8px) center;
   1.266 +}
   1.267 +
   1.268 +.devtools-searchinput > .textbox-input-box > .textbox-search-icons {
   1.269 +  display: none;
   1.270 +}
   1.271 +
   1.272 +.devtools-no-search-result {
   1.273 +  border-color: #eb5368 !important;
   1.274 +}
   1.275 +
   1.276 +/* Close button */
   1.277 +
   1.278 +.devtools-closebutton {
   1.279 +  -moz-appearance: none;
   1.280 +  border: none;
   1.281 +  margin: 0 4px;
   1.282 +  min-width: 16px;
   1.283 +  width: 16px;
   1.284 +  opacity: 0.6;
   1.285 +}
   1.286 +
   1.287 +.devtools-closebutton > image {
   1.288 +  width: 16px;
   1.289 +  height: 16px;
   1.290 +  -moz-appearance: none;
   1.291 +  background-size: 16px 16px;
   1.292 +  background-image: url("chrome://browser/skin/devtools/close@2x.png");
   1.293 +  background-position: center center;
   1.294 +  background-repeat: no-repeat;
   1.295 +}
   1.296 +
   1.297 +.devtools-closebutton > .toolbarbutton-icon {
   1.298 +  /* XXX Buttons have padding in widget/ that we don't want here but can't override with good CSS, so we must
   1.299 +     use evil CSS to give the impression of smaller content */
   1.300 +  margin: -4px;
   1.301 +}
   1.302 +
   1.303 +.devtools-closebutton > .toolbarbutton-text {
   1.304 +  display: none;
   1.305 +}
   1.306 +
   1.307 +.devtools-closebutton:hover {
   1.308 +  opacity: 0.8;
   1.309 +}
   1.310 +
   1.311 +.devtools-closebutton:hover:active {
   1.312 +  opacity: 1;
   1.313 +}
   1.314 +
   1.315 +/* In-tools sidebar */
   1.316 +
   1.317 +.devtools-sidebar-tabs {
   1.318 +  -moz-appearance: none;
   1.319 +  margin: 0;
   1.320 +}
   1.321 +
   1.322 +.devtools-sidebar-tabs > tabpanels {
   1.323 +  -moz-appearance: none;
   1.324 +  background: transparent;
   1.325 +  padding: 0;
   1.326 +  border: 0;
   1.327 +}
   1.328 +
   1.329 +.theme-light .devtools-sidebar-tabs > tabpanels {
   1.330 +  background: #f7f7f7;
   1.331 +  color: #18191a;
   1.332 +}
   1.333 +
   1.334 +.devtools-sidebar-tabs > tabs {
   1.335 +  -moz-appearance: none;
   1.336 +  position: static;
   1.337 +  font: inherit;
   1.338 +  margin-bottom: 0;
   1.339 +  padding: 0;
   1.340 +  border-width: 0 0 1px 0;
   1.341 +  border-style: solid;
   1.342 +  overflow: hidden;
   1.343 +}
   1.344 +
   1.345 +.devtools-sidebar-tabs > tabs > .tabs-right,
   1.346 +.devtools-sidebar-tabs > tabs > .tabs-left {
   1.347 +  display: none;
   1.348 +}
   1.349 +
   1.350 +.devtools-sidebar-tabs > tabs > tab {
   1.351 +  -moz-appearance: none;
   1.352 +  /* We want to match the height of a toolbar with a toolbarbutton
   1.353 +   * First, we need to replicated the padding of toolbar (4px),
   1.354 +   * then we need to take the border of the buttons into account (1px).
   1.355 +   */
   1.356 +  padding: 5px 3px;
   1.357 +  -moz-padding-start: 6px;
   1.358 +  margin: 0;
   1.359 +  min-width: 78px;
   1.360 +  /* toolbar's min-height is button min-height (25px) + padding (2 * 4px): 33px.
   1.361 +   * -1px because the parent element (<tabs>) comes with a 1px bottom border.
   1.362 +   */
   1.363 +  min-height: 32px;
   1.364 +  text-align: center;
   1.365 +  color: inherit;
   1.366 +  -moz-box-flex: 1;
   1.367 +  border-width: 0;
   1.368 +  position: static;
   1.369 +  -moz-margin-start: -1px;
   1.370 +  text-shadow: none;
   1.371 +}
   1.372 +
   1.373 +.devtools-sidebar-tabs > tabs > tab:first-of-type {
   1.374 +  -moz-margin-start: -3px;
   1.375 +}
   1.376 +
   1.377 +.devtools-sidebar-tabs > tabs > tab {
   1.378 +  background-size: calc(100% - 1px) 100%, 1px 100%;
   1.379 +  background-repeat: no-repeat;
   1.380 +  background-position: 1px, 0;
   1.381 +}
   1.382 +
   1.383 +.devtools-sidebar-tabs > tabs > tab:not(:last-of-type) {
   1.384 +  background-size: calc(100% - 2px) 100%, 1px 100%;
   1.385 +}
   1.386 +
   1.387 +.devtools-sidebar-tabs:-moz-locale-dir(rtl) > tabs > tab {
   1.388 +  background-position: calc(100% - 1px), 100%;
   1.389 +}
   1.390 +
   1.391 +.devtools-sidebar-tabs > tabs > tab {
   1.392 +  background-color: transparent;
   1.393 +}
   1.394 +
   1.395 +.theme-dark .devtools-sidebar-tabs > tabs > tab {
   1.396 +  background-image: linear-gradient(transparent, transparent), @smallSeparatorDark@;
   1.397 +}
   1.398 +
   1.399 +.theme-dark .devtools-sidebar-tabs > tabs > tab:hover {
   1.400 +  background-image: linear-gradient(hsla(206,37%,4%,.2), hsla(206,37%,4%,.2)), @smallSeparatorDark@;
   1.401 +}
   1.402 +
   1.403 +.theme-dark .devtools-sidebar-tabs > tabs > tab:hover:active {
   1.404 +  background-image: linear-gradient(hsla(206,37%,4%,.4), hsla(206,37%,4%,.4)), @smallSeparatorDark@;
   1.405 +}
   1.406 +
   1.407 +.theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab {
   1.408 +  background-image: linear-gradient(transparent, transparent), @solidSeparatorDark@;
   1.409 +}
   1.410 +
   1.411 +.theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover {
   1.412 +  background-image: linear-gradient(hsla(206,37%,4%,.2), hsla(206,37%,4%,.2)), @solidSeparatorDark@;
   1.413 +}
   1.414 +
   1.415 +.theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover:active {
   1.416 +  background-image: linear-gradient(hsla(206,37%,4%,.4), hsla(206,37%,4%,.4)), @solidSeparatorDark@;
   1.417 +}
   1.418 +
   1.419 +.theme-dark .devtools-sidebar-tabs > tabs > tab[selected] {
   1.420 +  color: #f5f7fa;
   1.421 +  background-image: linear-gradient(#1d4f73, #1d4f73), @solidSeparatorDark@;
   1.422 +}
   1.423 +
   1.424 +.theme-dark .devtools-sidebar-tabs > tabs > tab[selected]:hover {
   1.425 +  background-image: linear-gradient(#274f64, #274f64), @solidSeparatorDark@;
   1.426 +}
   1.427 +
   1.428 +.theme-dark .devtools-sidebar-tabs > tabs > tab[selected]:hover:active {
   1.429 +  background-image: linear-gradient(#1f3e4f, #1f3e4f), @solidSeparatorDark@;
   1.430 +}
   1.431 +
   1.432 +.theme-light .devtools-sidebar-tabs > tabs > tab {
   1.433 +  background-image: linear-gradient(transparent, transparent), @smallSeparatorLight@;
   1.434 +}
   1.435 +
   1.436 +.theme-light .devtools-sidebar-tabs > tabs > tab:hover {
   1.437 +  background-image: linear-gradient(#ddd, #ddd), @smallSeparatorLight@;
   1.438 +}
   1.439 +
   1.440 +.theme-light .devtools-sidebar-tabs > tabs > tab:hover:active {
   1.441 +  background-image: linear-gradient(#ddd, #ddd), @smallSeparatorLight@;
   1.442 +}
   1.443 +
   1.444 +.theme-light .devtools-sidebar-tabs > tabs > tab[selected] + tab {
   1.445 +  background-image: linear-gradient(transparent, transparent), @solidSeparatorLight@;
   1.446 +}
   1.447 +
   1.448 +.theme-light .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover {
   1.449 +  background-image: linear-gradient(#ddd, #ddd), @solidSeparatorLight@;
   1.450 +}
   1.451 +
   1.452 +.theme-light .devtools-sidebar-tabs > tabs > tab[selected],
   1.453 +.theme-light .devtools-sidebar-tabs > tabs > tab[selected]:hover:active {
   1.454 +  color: #f5f7fa;
   1.455 +  background-image: linear-gradient(#4c9ed9, #4c9ed9), @solidSeparatorLight@;
   1.456 +}
   1.457 +
   1.458 +/* Toolbox - moved from toolbox.css.
   1.459 + * Rules that apply to the global toolbox like command buttons,
   1.460 + * devtools tabs, docking buttons, etc. */
   1.461 +
   1.462 +#toolbox-controls {
   1.463 +  margin: 0 4px;
   1.464 +}
   1.465 +
   1.466 +#toolbox-controls > toolbarbutton,
   1.467 +#toolbox-dock-buttons > toolbarbutton {
   1.468 +  -moz-appearance: none;
   1.469 +  border: none;
   1.470 +  margin: 0 4px;
   1.471 +  min-width: 16px;
   1.472 +  width: 16px;
   1.473 +}
   1.474 +
   1.475 +#toolbox-controls > toolbarbutton > .toolbarbutton-text,
   1.476 +#toolbox-dock-buttons > toolbarbutton > .toolbarbutton-text,
   1.477 +.command-button > .toolbarbutton-text {
   1.478 +  display: none;
   1.479 +}
   1.480 +
   1.481 +#toolbox-dock-buttons > toolbarbutton > image {
   1.482 +  -moz-appearance: none;
   1.483 +  width: 16px;
   1.484 +  height: 16px;
   1.485 +  background-size: 16px 16px;
   1.486 +  background-position: 0 center;
   1.487 +  background-repeat: no-repeat;
   1.488 +}
   1.489 +
   1.490 +#toolbox-dock-bottom > image {
   1.491 +  background-image: url("chrome://browser/skin/devtools/dock-bottom@2x.png");
   1.492 +}
   1.493 +
   1.494 +#toolbox-dock-side  > image {
   1.495 +  background-image: url("chrome://browser/skin/devtools/dock-side@2x.png");
   1.496 +}
   1.497 +
   1.498 +#toolbox-dock-window > image {
   1.499 +  background-image: url("chrome://browser/skin/devtools/undock@2x.png");
   1.500 +}
   1.501 +
   1.502 +#toolbox-dock-window,
   1.503 +#toolbox-dock-bottom,
   1.504 +#toolbox-dock-side {
   1.505 +  opacity: 0.6;
   1.506 +}
   1.507 +
   1.508 +#toolbox-dock-window:hover,
   1.509 +#toolbox-dock-bottom:hover,
   1.510 +#toolbox-dock-side:hover {
   1.511 +  opacity: 1;
   1.512 +}
   1.513 +
   1.514 +#toolbox-controls-separator {
   1.515 +  width: 3px;
   1.516 +  background-image: linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0)),
   1.517 +                    linear-gradient(hsla(206,37%,4%,0), hsla(206,37%,4%,.6), hsla(206,37%,4%,0)),
   1.518 +                    linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0));
   1.519 +  background-size: 1px 100%;
   1.520 +  background-repeat: no-repeat;
   1.521 +  background-position: 0, 1px, 2px;
   1.522 +  -moz-margin-start: 8px;
   1.523 +}
   1.524 +
   1.525 +/* Command buttons */
   1.526 +
   1.527 +.command-button {
   1.528 +  -moz-appearance: none;
   1.529 +  border: none;
   1.530 +  padding: 0 8px;
   1.531 +  margin: 0;
   1.532 +  width: 32px;
   1.533 +  position: relative;
   1.534 +}
   1.535 +
   1.536 +.command-button:hover {
   1.537 +  background-color: hsla(206,37%,4%,.2);
   1.538 +}
   1.539 +.command-button:hover:active, .command-button[checked=true]:not(:hover) {
   1.540 +  background-color: hsla(206,37%,4%,.4);
   1.541 +}
   1.542 +
   1.543 +.command-button > image {
   1.544 +  -moz-appearance: none;
   1.545 +  width: 16px;
   1.546 +  height: 16px;
   1.547 +  background-size: 64px 16px;
   1.548 +  background-position: 0 center;
   1.549 +  background-repeat: no-repeat;
   1.550 +}
   1.551 +.command-button:hover > image {
   1.552 +  background-position: -16px center;
   1.553 +}
   1.554 +.command-button:hover:active > image {
   1.555 +  background-position: -32px center;
   1.556 +}
   1.557 +.command-button[checked=true] > image {
   1.558 +  background-position: -48px center;
   1.559 +}
   1.560 +
   1.561 +#command-button-paintflashing > image {
   1.562 +  background-image: url("chrome://browser/skin/devtools/command-paintflashing.png");
   1.563 +}
   1.564 +
   1.565 +#command-button-responsive > image {
   1.566 +  background-image: url("chrome://browser/skin/devtools/command-responsivemode.png");
   1.567 +}
   1.568 +
   1.569 +#command-button-tilt > image {
   1.570 +  background-image: url("chrome://browser/skin/devtools/command-tilt.png");
   1.571 +}
   1.572 +
   1.573 +#command-button-scratchpad > image {
   1.574 +  background-image: url("chrome://browser/skin/devtools/command-scratchpad.png");
   1.575 +  background-size: 48px 16px;
   1.576 +}
   1.577 +
   1.578 +#command-button-pick > image {
   1.579 +  background-image: url("chrome://browser/skin/devtools/command-pick.png");
   1.580 +}
   1.581 +
   1.582 +#command-button-splitconsole > image {
   1.583 +  background-image: url("chrome://browser/skin/devtools/command-console.png");
   1.584 +}
   1.585 +
   1.586 +#command-button-eyedropper > image {
   1.587 +  background-image: url("chrome://browser/skin/devtools/command-eyedropper.png");
   1.588 +}
   1.589 +
   1.590 +@media (min-resolution: 2dppx) {
   1.591 +  #command-button-paintflashing > image {
   1.592 +    background-image: url("chrome://browser/skin/devtools/command-paintflashing@2x.png");
   1.593 +  }
   1.594 +
   1.595 +  #command-button-responsive > image {
   1.596 +    background-image: url("chrome://browser/skin/devtools/command-responsivemode@2x.png");
   1.597 +  }
   1.598 +
   1.599 +  #command-button-tilt > image {
   1.600 +    background-image: url("chrome://browser/skin/devtools/command-tilt@2x.png");
   1.601 +  }
   1.602 +
   1.603 +  #command-button-scratchpad > image {
   1.604 +    background-image: url("chrome://browser/skin/devtools/command-scratchpad@2x.png");
   1.605 +  }
   1.606 +
   1.607 +  #command-button-pick > image {
   1.608 +    background-image: url("chrome://browser/skin/devtools/command-pick@2x.png");
   1.609 +  }
   1.610 +
   1.611 +  #command-button-splitconsole > image {
   1.612 +    background-image: url("chrome://browser/skin/devtools/command-console@2x.png");
   1.613 +  }
   1.614 +
   1.615 +  #command-button-eyedropper > image {
   1.616 +    background-image: url("chrome://browser/skin/devtools/command-eyedropper@2x.png");
   1.617 +  }
   1.618 +}
   1.619 +
   1.620 +/* Tabs */
   1.621 +
   1.622 +.devtools-tabbar {
   1.623 +  -moz-appearance: none;
   1.624 +  min-height: 28px;
   1.625 +  border: 0px solid;
   1.626 +  border-bottom-width: 1px;
   1.627 +  padding: 0;
   1.628 +}
   1.629 +
   1.630 +.theme-light .devtools-tabbar {
   1.631 +  box-shadow: 0 -2px 0 rgba(170,170,170,.1) inset;
   1.632 +  background: #ebeced;
   1.633 +  border-bottom-color: #aaa;
   1.634 +}
   1.635 +
   1.636 +.theme-dark .devtools-tabbar {
   1.637 +  box-shadow: 0 -2px 0 rgba(0,0,0,.1) inset;
   1.638 +  background: #252c33;
   1.639 +  border-bottom-color: #000;
   1.640 +}
   1.641 +
   1.642 +#toolbox-tabs {
   1.643 +  margin: 0;
   1.644 +}
   1.645 +
   1.646 +.devtools-tab {
   1.647 +  -moz-appearance: none;
   1.648 +  -moz-binding: url("chrome://global/content/bindings/general.xml#control-item");
   1.649 +  -moz-box-align: center;
   1.650 +  min-width: 32px;
   1.651 +  min-height: 28px;
   1.652 +  max-width: 127px;
   1.653 +  margin: 0;
   1.654 +  padding: 0;
   1.655 +  -moz-border-start: 1px solid;
   1.656 +  -moz-box-align: center;
   1.657 +}
   1.658 +
   1.659 +.theme-dark .devtools-tab {
   1.660 +  color: #b6babf;
   1.661 +  border-color: #42484f;
   1.662 +}
   1.663 +
   1.664 +.theme-light .devtools-tab {
   1.665 +  color: #18191a;
   1.666 +  border-color: #aaa;
   1.667 +}
   1.668 +
   1.669 +.theme-dark .devtools-tab:hover {
   1.670 +  background-color: hsla(206,37%,4%,.2);
   1.671 +  color: #ced3d9;
   1.672 +}
   1.673 +
   1.674 +.theme-light .devtools-tab:hover {
   1.675 +  background-color: rgba(170,170,170,.2);
   1.676 +}
   1.677 +
   1.678 +.theme-dark .devtools-tab:hover:active {
   1.679 +  background-color: hsla(206,37%,4%,.4);
   1.680 +  color: #f5f7fa;
   1.681 +}
   1.682 +
   1.683 +.theme-light .devtools-tab:hover:active {
   1.684 +  background-color: rgba(170,170,170,.4);
   1.685 +}
   1.686 +
   1.687 +.theme-dark .devtools-tab:not([selected])[highlighted] {
   1.688 +  background-color: hsla(99,100%,14%,.2);
   1.689 +  box-shadow: 0 2px 0 #7bc107 inset;
   1.690 +}
   1.691 +
   1.692 +.theme-light .devtools-tab:not([selected])[highlighted] {
   1.693 +  background-color: rgba(44, 187, 15, .2);
   1.694 +}
   1.695 +
   1.696 +.devtools-tab:first-child {
   1.697 +  -moz-border-start-width: 0;
   1.698 +}
   1.699 +
   1.700 +.theme-light .devtools-tab:last-child {
   1.701 +  -moz-border-end: 1px solid #aaa;
   1.702 +}
   1.703 +
   1.704 +.theme-dark .devtools-tab:last-child {
   1.705 +  -moz-border-end: 1px solid #42484f;
   1.706 +}
   1.707 +
   1.708 +.devtools-tab > image {
   1.709 +  border: none;
   1.710 +  -moz-margin-end: 0;
   1.711 +  -moz-margin-start: 4px;
   1.712 +  opacity: 0.6;
   1.713 +  max-height: 16px;
   1.714 +  width: 16px; /* Prevents collapse during theme switching */
   1.715 +}
   1.716 +
   1.717 +#toolbox-tab-options > image {
   1.718 +  margin: 0 8px;
   1.719 +}
   1.720 +
   1.721 +.devtools-tab > label {
   1.722 +  white-space: nowrap;
   1.723 +}
   1.724 +
   1.725 +.devtools-tab:hover > image {
   1.726 +  opacity: 0.8;
   1.727 +}
   1.728 +
   1.729 +.devtools-tab:active > image,
   1.730 +.devtools-tab[selected] > image {
   1.731 +  opacity: 1;
   1.732 +}
   1.733 +
   1.734 +.theme-dark #toolbox-tabs .devtools-tab[selected] {
   1.735 +  color: #f5f7fa;
   1.736 +  background-color: #1a4666;
   1.737 +  box-shadow: 0 2px 0 #d7f1ff inset,
   1.738 +              0 8px 3px -5px #2b82bf inset,
   1.739 +              0 -2px 0 rgba(0,0,0,.2) inset;
   1.740 +}
   1.741 +
   1.742 +.theme-light #toolbox-tabs .devtools-tab[selected] {
   1.743 +  color: #f5f7fa;
   1.744 +  background-color: #4c9ed9;
   1.745 +  box-shadow: 0 2px 0 #d7f1ff inset,
   1.746 +              0 8px 3px -5px #2b82bf inset,
   1.747 +              0 -2px 0 rgba(0,0,0,.06) inset;
   1.748 +}
   1.749 +
   1.750 +.devtools-tab[selected]:not(:first-child),
   1.751 +.devtools-tab[highlighted]:not(:first-child) {
   1.752 +  border-width: 0;
   1.753 +  -moz-padding-start: 1px;
   1.754 +}
   1.755 +
   1.756 +.devtools-tab[selected]:last-child,
   1.757 +.devtools-tab[highlighted]:last-child {
   1.758 +  -moz-padding-end: 1px;
   1.759 +}
   1.760 +
   1.761 +.devtools-tab[selected] + .devtools-tab,
   1.762 +.devtools-tab[highlighted] + .devtools-tab {
   1.763 +  -moz-border-start-width: 0;
   1.764 +  -moz-padding-start: 1px;
   1.765 +}
   1.766 +
   1.767 +.devtools-tab:not([highlighted]) > .highlighted-icon,
   1.768 +.devtools-tab[selected] > .highlighted-icon,
   1.769 +.devtools-tab:not([selected])[highlighted] > .default-icon {
   1.770 +  visibility: collapse;
   1.771 +}
   1.772 +
   1.773 +/* Invert the colors of certain dark theme images for displaying
   1.774 + * inside of the light theme.
   1.775 + */
   1.776 +.theme-light .devtools-tab[icon-invertable] > image,
   1.777 +.theme-light #toolbox-dock-buttons > toolbarbutton > image,
   1.778 +.theme-light .command-button-invertable > image,
   1.779 +.theme-light .command-button-invertable:active > image,
   1.780 +.theme-light .devtools-closebutton > image,
   1.781 +.theme-light .devtools-toolbarbutton > image,
   1.782 +.theme-light .devtools-option-toolbarbutton > image,
   1.783 +.theme-light #breadcrumb-separator-normal,
   1.784 +.theme-light .scrollbutton-up > .toolbarbutton-icon,
   1.785 +.theme-light .scrollbutton-down > .toolbarbutton-icon,
   1.786 +.theme-light #black-boxed-message-button .button-icon,
   1.787 +.theme-light #canvas-debugging-empty-notice-button .button-icon,
   1.788 +.theme-light #requests-menu-perf-notice-button .button-icon,
   1.789 +.theme-light #requests-menu-network-summary-button .button-icon {
   1.790 +  filter: url(filters.svg#invert);
   1.791 +}
   1.792 +
   1.793 +/* Since selected backgrounds are blue, we want to use the normal
   1.794 + * (light) icons. */
   1.795 +.theme-light .command-button-invertable[checked=true]:not(:active) > image,
   1.796 +.theme-light .devtools-tab[icon-invertable][selected] > image,
   1.797 +.theme-light .devtools-tab[icon-invertable][highlighted] > image,
   1.798 +.theme-light #resume[checked] > image {
   1.799 +  filter: none !important;
   1.800 +}
   1.801 +
   1.802 +.theme-light .command-button:hover {
   1.803 +  background-color: inherit;
   1.804 +}
   1.805 +
   1.806 +.theme-light .command-button:hover:active,
   1.807 +.theme-light .command-button[checked=true]:not(:hover) {
   1.808 +  background-color: inherit;
   1.809 +}
   1.810 +
   1.811 +.hidden-labels-box:not(.visible) > label,
   1.812 +.hidden-labels-box.visible ~ .hidden-labels-box > label:last-child {
   1.813 +  display: none;
   1.814 +}
   1.815 +
   1.816 +.devtools-invisible-splitter {
   1.817 +  border-color: transparent;
   1.818 +}

mercurial