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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 %if 0
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5 %endif
michael@0 6 %filter substitution
michael@0 7 %define smallSeparatorDark linear-gradient(transparent 15%, #5a6169 15%, #5a6169 85%, transparent 85%)
michael@0 8 %define smallSeparatorLight linear-gradient(transparent 15%, #aaa 15%, #aaa 85%, transparent 85%)
michael@0 9 %define solidSeparatorDark linear-gradient(#2d5b7d, #2d5b7d)
michael@0 10 %define solidSeparatorLight linear-gradient(#aaa, #aaa)
michael@0 11
michael@0 12
michael@0 13 .devtools-toolbar {
michael@0 14 -moz-appearance: none;
michael@0 15 padding: 4px 3px;
michael@0 16 border-bottom-width: 1px;
michael@0 17 border-bottom-style: solid;
michael@0 18 }
michael@0 19
michael@0 20 .devtools-menulist,
michael@0 21 .devtools-toolbarbutton {
michael@0 22 -moz-appearance: none;
michael@0 23 -moz-box-align: center;
michael@0 24 min-width: 78px;
michael@0 25 min-height: 22px;
michael@0 26 text-shadow: none;
michael@0 27 border: 1px solid hsla(210,8%,5%,.45);
michael@0 28 border-radius: 3px;
michael@0 29 margin: 0 3px;
michael@0 30 }
michael@0 31
michael@0 32 .devtools-menulist:-moz-focusring,
michael@0 33 .devtools-toolbarbutton:-moz-focusring {
michael@0 34 outline: 1px dotted hsla(210,30%,85%,0.7);
michael@0 35 outline-offset: -4px;
michael@0 36 }
michael@0 37
michael@0 38 .devtools-toolbarbutton > .toolbarbutton-icon {
michael@0 39 margin: 0;
michael@0 40 }
michael@0 41
michael@0 42 .devtools-toolbarbutton:not([label]) {
michael@0 43 min-width: 32px;
michael@0 44 }
michael@0 45
michael@0 46 .devtools-toolbarbutton:not([label]) > .toolbarbutton-text {
michael@0 47 display: none;
michael@0 48 }
michael@0 49
michael@0 50 .devtools-toolbarbutton > .toolbarbutton-menubutton-button {
michael@0 51 -moz-box-orient: horizontal;
michael@0 52 }
michael@0 53
michael@0 54 .theme-dark .devtools-menulist,
michael@0 55 .theme-dark .devtools-toolbarbutton {
michael@0 56 background: linear-gradient(hsla(212,7%,57%,.35), hsla(212,7%,57%,.1)) padding-box;
michael@0 57 color: inherit;
michael@0 58 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 59 }
michael@0 60
michael@0 61 .theme-light .devtools-menulist,
michael@0 62 .theme-light .devtools-toolbarbutton {
michael@0 63 background: #f7f7f7;
michael@0 64 color: #18191a;
michael@0 65 border-color: #bbb;
michael@0 66 }
michael@0 67
michael@0 68 .theme-light .devtools-menulist[open=true],
michael@0 69 .theme-light .devtools-toolbarbutton[open=true],
michael@0 70 .theme-light .devtools-toolbarbutton[open=true]:hover,
michael@0 71 .theme-light .devtools-toolbarbutton[open=true]:hover:active,
michael@0 72 .theme-light .devtools-toolbarbutton[checked=true],
michael@0 73 .theme-light .devtools-toolbarbutton[checked=true]:hover {
michael@0 74 background: #ddd;
michael@0 75 }
michael@0 76
michael@0 77 .theme-light .devtools-toolbarbutton:hover {
michael@0 78 background: #eee;
michael@0 79 }
michael@0 80
michael@0 81 .theme-light .devtools-toolbarbutton:hover:active,
michael@0 82 .theme-light .devtools-toolbarbutton[checked=true]:hover:active {
michael@0 83 background: #e8e8e8;
michael@0 84 }
michael@0 85
michael@0 86 .theme-light .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
michael@0 87 color: #667380;
michael@0 88 }
michael@0 89
michael@0 90 .theme-light .devtools-toolbarbutton[type=menu-button][checked=true] > .toolbarbutton-menubutton-button {
michael@0 91 color: #18191a;
michael@0 92 }
michael@0 93
michael@0 94 .theme-dark .devtools-toolbarbutton:not([checked]):hover:active {
michael@0 95 border-color: hsla(210,8%,5%,.6);
michael@0 96 background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3));
michael@0 97 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 98 }
michael@0 99
michael@0 100 .theme-dark .devtools-menulist[open=true],
michael@0 101 .theme-dark .devtools-toolbarbutton[open=true],
michael@0 102 .theme-dark .devtools-toolbarbutton[checked=true] {
michael@0 103 border-color: hsla(210,8%,5%,.6) !important;
michael@0 104 background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4));
michael@0 105 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 106 }
michael@0 107
michael@0 108 .theme-dark .devtools-toolbarbutton[checked=true] {
michael@0 109 color: hsl(208,100%,60%);
michael@0 110 }
michael@0 111
michael@0 112 .theme-dark .devtools-toolbarbutton[checked=true]:hover {
michael@0 113 background-color: transparent !important;
michael@0 114 }
michael@0 115
michael@0 116 .theme-dark .devtools-toolbarbutton[checked=true]:hover:active {
michael@0 117 background-color: hsla(210,8%,5%,.2) !important;
michael@0 118 }
michael@0 119
michael@0 120 .devtools-option-toolbarbutton {
michael@0 121 -moz-appearance: none;
michael@0 122 list-style-image: url("chrome://browser/skin/devtools/tool-options.svg");
michael@0 123 background: none;
michael@0 124 opacity: .8;
michael@0 125 border: none;
michael@0 126 }
michael@0 127
michael@0 128 .devtools-option-toolbarbutton[open=true] {
michael@0 129 opacity: 1;
michael@0 130 }
michael@0 131
michael@0 132 .devtools-menulist > .menulist-label-box {
michael@0 133 text-align: center;
michael@0 134 }
michael@0 135
michael@0 136 .devtools-menulist > .menulist-dropmarker {
michael@0 137 -moz-appearance: none;
michael@0 138 display: -moz-box;
michael@0 139 list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
michael@0 140 -moz-box-align: center;
michael@0 141 min-width: 16px;
michael@0 142 }
michael@0 143
michael@0 144 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
michael@0 145 -moz-appearance: none;
michael@0 146 color: inherit;
michael@0 147 border-width: 0;
michael@0 148 }
michael@0 149
michael@0 150 .theme-dark .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
michael@0 151 -moz-border-end: 1px solid hsla(210,8%,5%,.45);
michael@0 152 box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15);
michael@0 153 }
michael@0 154
michael@0 155 .theme-dark .devtools-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button {
michael@0 156 box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15);
michael@0 157 }
michael@0 158
michael@0 159 .theme-light .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
michael@0 160 -moz-border-end: 1px solid #bbb;
michael@0 161 }
michael@0 162
michael@0 163 .devtools-toolbarbutton[type=menu-button] {
michael@0 164 padding: 0 1px;
michael@0 165 -moz-box-align: stretch;
michael@0 166 }
michael@0 167
michael@0 168 .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
michael@0 169 .devtools-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
michael@0 170 -moz-appearance: none !important;
michael@0 171 list-style-image: url("chrome://browser/skin/devtools/dropmarker.png");
michael@0 172 -moz-box-align: center;
michael@0 173 padding: 0 3px;
michael@0 174 }
michael@0 175
michael@0 176 /* Toolbar button groups */
michael@0 177 .theme-light .devtools-toolbarbutton-group > .devtools-toolbarbutton,
michael@0 178 .theme-dark .devtools-toolbarbutton-group > .devtools-toolbarbutton {
michael@0 179 margin: 0;
michael@0 180 box-shadow: none;
michael@0 181 border-radius: 0;
michael@0 182 border-width: 0;
michael@0 183 -moz-border-end-width: 1px;
michael@0 184 outline-offset: -3px;
michael@0 185 }
michael@0 186
michael@0 187 .devtools-toolbarbutton-group > .devtools-toolbarbutton:last-of-type {
michael@0 188 -moz-border-end-width: 0;
michael@0 189 }
michael@0 190
michael@0 191 .devtools-toolbarbutton-group {
michael@0 192 border-radius: 3px;
michael@0 193 margin: 0 3px;
michael@0 194 }
michael@0 195
michael@0 196 .theme-dark .devtools-toolbarbutton-group {
michael@0 197 box-shadow: 0 1px 0 hsla(210,16%,76%,.15) inset,
michael@0 198 0 0 0 1px hsla(210,16%,76%,.15) inset,
michael@0 199 0 1px 0 hsla(210,16%,76%,.15);
michael@0 200 border: 1px solid hsla(210,8%,5%,.45);
michael@0 201 }
michael@0 202
michael@0 203 .theme-light .devtools-toolbarbutton-group {
michael@0 204 border: 1px solid #bbb;
michael@0 205 }
michael@0 206
michael@0 207 /* Text input */
michael@0 208
michael@0 209 .devtools-textinput,
michael@0 210 .devtools-searchinput {
michael@0 211 -moz-appearance: none;
michael@0 212 margin: 0 3px;
michael@0 213 border: 1px solid;
michael@0 214 %ifdef XP_MACOSX
michael@0 215 border-radius: 20px;
michael@0 216 %else
michael@0 217 border-radius: 2px;
michael@0 218 %endif
michael@0 219 padding: 4px 6px;
michael@0 220 }
michael@0 221
michael@0 222 .theme-dark .devtools-textinput,
michael@0 223 .theme-dark .devtools-searchinput {
michael@0 224 border-color: rgb(88, 94, 101);
michael@0 225 }
michael@0 226
michael@0 227 .theme-light .devtools-textinput,
michael@0 228 .theme-light .devtools-searchinput {
michael@0 229 border-color: #aaa; /* Match the splitter color */
michael@0 230 }
michael@0 231
michael@0 232 .devtools-searchinput {
michael@0 233 padding-top: 3px;
michael@0 234 padding-bottom: 3px;
michael@0 235 -moz-padding-start: 22px;
michael@0 236 -moz-padding-end: 12px;
michael@0 237 background-position: 8px center;
michael@0 238 background-size: 11px 11px;
michael@0 239 background-repeat: no-repeat;
michael@0 240 font-size: inherit;
michael@0 241 }
michael@0 242
michael@0 243 .theme-dark .devtools-searchinput {
michael@0 244 background-image: url(magnifying-glass.png);
michael@0 245 }
michael@0 246
michael@0 247 .theme-light .devtools-searchinput {
michael@0 248 background-image: url(magnifying-glass-light.png);
michael@0 249 }
michael@0 250
michael@0 251 @media (min-resolution: 2dppx) {
michael@0 252 .theme-dark .devtools-searchinput {
michael@0 253 background-image: url(magnifying-glass@2x.png);
michael@0 254 }
michael@0 255
michael@0 256 .theme-light .devtools-searchinput {
michael@0 257 background-image: url(magnifying-glass-light@2x.png);
michael@0 258 }
michael@0 259 }
michael@0 260
michael@0 261 .devtools-searchinput:-moz-locale-dir(rtl) {
michael@0 262 background-position: calc(100% - 8px) center;
michael@0 263 }
michael@0 264
michael@0 265 .devtools-searchinput > .textbox-input-box > .textbox-search-icons {
michael@0 266 display: none;
michael@0 267 }
michael@0 268
michael@0 269 .devtools-no-search-result {
michael@0 270 border-color: #eb5368 !important;
michael@0 271 }
michael@0 272
michael@0 273 /* Close button */
michael@0 274
michael@0 275 .devtools-closebutton {
michael@0 276 -moz-appearance: none;
michael@0 277 border: none;
michael@0 278 margin: 0 4px;
michael@0 279 min-width: 16px;
michael@0 280 width: 16px;
michael@0 281 opacity: 0.6;
michael@0 282 }
michael@0 283
michael@0 284 .devtools-closebutton > image {
michael@0 285 width: 16px;
michael@0 286 height: 16px;
michael@0 287 -moz-appearance: none;
michael@0 288 background-size: 16px 16px;
michael@0 289 background-image: url("chrome://browser/skin/devtools/close@2x.png");
michael@0 290 background-position: center center;
michael@0 291 background-repeat: no-repeat;
michael@0 292 }
michael@0 293
michael@0 294 .devtools-closebutton > .toolbarbutton-icon {
michael@0 295 /* XXX Buttons have padding in widget/ that we don't want here but can't override with good CSS, so we must
michael@0 296 use evil CSS to give the impression of smaller content */
michael@0 297 margin: -4px;
michael@0 298 }
michael@0 299
michael@0 300 .devtools-closebutton > .toolbarbutton-text {
michael@0 301 display: none;
michael@0 302 }
michael@0 303
michael@0 304 .devtools-closebutton:hover {
michael@0 305 opacity: 0.8;
michael@0 306 }
michael@0 307
michael@0 308 .devtools-closebutton:hover:active {
michael@0 309 opacity: 1;
michael@0 310 }
michael@0 311
michael@0 312 /* In-tools sidebar */
michael@0 313
michael@0 314 .devtools-sidebar-tabs {
michael@0 315 -moz-appearance: none;
michael@0 316 margin: 0;
michael@0 317 }
michael@0 318
michael@0 319 .devtools-sidebar-tabs > tabpanels {
michael@0 320 -moz-appearance: none;
michael@0 321 background: transparent;
michael@0 322 padding: 0;
michael@0 323 border: 0;
michael@0 324 }
michael@0 325
michael@0 326 .theme-light .devtools-sidebar-tabs > tabpanels {
michael@0 327 background: #f7f7f7;
michael@0 328 color: #18191a;
michael@0 329 }
michael@0 330
michael@0 331 .devtools-sidebar-tabs > tabs {
michael@0 332 -moz-appearance: none;
michael@0 333 position: static;
michael@0 334 font: inherit;
michael@0 335 margin-bottom: 0;
michael@0 336 padding: 0;
michael@0 337 border-width: 0 0 1px 0;
michael@0 338 border-style: solid;
michael@0 339 overflow: hidden;
michael@0 340 }
michael@0 341
michael@0 342 .devtools-sidebar-tabs > tabs > .tabs-right,
michael@0 343 .devtools-sidebar-tabs > tabs > .tabs-left {
michael@0 344 display: none;
michael@0 345 }
michael@0 346
michael@0 347 .devtools-sidebar-tabs > tabs > tab {
michael@0 348 -moz-appearance: none;
michael@0 349 /* We want to match the height of a toolbar with a toolbarbutton
michael@0 350 * First, we need to replicated the padding of toolbar (4px),
michael@0 351 * then we need to take the border of the buttons into account (1px).
michael@0 352 */
michael@0 353 padding: 5px 3px;
michael@0 354 -moz-padding-start: 6px;
michael@0 355 margin: 0;
michael@0 356 min-width: 78px;
michael@0 357 /* toolbar's min-height is button min-height (25px) + padding (2 * 4px): 33px.
michael@0 358 * -1px because the parent element (<tabs>) comes with a 1px bottom border.
michael@0 359 */
michael@0 360 min-height: 32px;
michael@0 361 text-align: center;
michael@0 362 color: inherit;
michael@0 363 -moz-box-flex: 1;
michael@0 364 border-width: 0;
michael@0 365 position: static;
michael@0 366 -moz-margin-start: -1px;
michael@0 367 text-shadow: none;
michael@0 368 }
michael@0 369
michael@0 370 .devtools-sidebar-tabs > tabs > tab:first-of-type {
michael@0 371 -moz-margin-start: -3px;
michael@0 372 }
michael@0 373
michael@0 374 .devtools-sidebar-tabs > tabs > tab {
michael@0 375 background-size: calc(100% - 1px) 100%, 1px 100%;
michael@0 376 background-repeat: no-repeat;
michael@0 377 background-position: 1px, 0;
michael@0 378 }
michael@0 379
michael@0 380 .devtools-sidebar-tabs > tabs > tab:not(:last-of-type) {
michael@0 381 background-size: calc(100% - 2px) 100%, 1px 100%;
michael@0 382 }
michael@0 383
michael@0 384 .devtools-sidebar-tabs:-moz-locale-dir(rtl) > tabs > tab {
michael@0 385 background-position: calc(100% - 1px), 100%;
michael@0 386 }
michael@0 387
michael@0 388 .devtools-sidebar-tabs > tabs > tab {
michael@0 389 background-color: transparent;
michael@0 390 }
michael@0 391
michael@0 392 .theme-dark .devtools-sidebar-tabs > tabs > tab {
michael@0 393 background-image: linear-gradient(transparent, transparent), @smallSeparatorDark@;
michael@0 394 }
michael@0 395
michael@0 396 .theme-dark .devtools-sidebar-tabs > tabs > tab:hover {
michael@0 397 background-image: linear-gradient(hsla(206,37%,4%,.2), hsla(206,37%,4%,.2)), @smallSeparatorDark@;
michael@0 398 }
michael@0 399
michael@0 400 .theme-dark .devtools-sidebar-tabs > tabs > tab:hover:active {
michael@0 401 background-image: linear-gradient(hsla(206,37%,4%,.4), hsla(206,37%,4%,.4)), @smallSeparatorDark@;
michael@0 402 }
michael@0 403
michael@0 404 .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab {
michael@0 405 background-image: linear-gradient(transparent, transparent), @solidSeparatorDark@;
michael@0 406 }
michael@0 407
michael@0 408 .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover {
michael@0 409 background-image: linear-gradient(hsla(206,37%,4%,.2), hsla(206,37%,4%,.2)), @solidSeparatorDark@;
michael@0 410 }
michael@0 411
michael@0 412 .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover:active {
michael@0 413 background-image: linear-gradient(hsla(206,37%,4%,.4), hsla(206,37%,4%,.4)), @solidSeparatorDark@;
michael@0 414 }
michael@0 415
michael@0 416 .theme-dark .devtools-sidebar-tabs > tabs > tab[selected] {
michael@0 417 color: #f5f7fa;
michael@0 418 background-image: linear-gradient(#1d4f73, #1d4f73), @solidSeparatorDark@;
michael@0 419 }
michael@0 420
michael@0 421 .theme-dark .devtools-sidebar-tabs > tabs > tab[selected]:hover {
michael@0 422 background-image: linear-gradient(#274f64, #274f64), @solidSeparatorDark@;
michael@0 423 }
michael@0 424
michael@0 425 .theme-dark .devtools-sidebar-tabs > tabs > tab[selected]:hover:active {
michael@0 426 background-image: linear-gradient(#1f3e4f, #1f3e4f), @solidSeparatorDark@;
michael@0 427 }
michael@0 428
michael@0 429 .theme-light .devtools-sidebar-tabs > tabs > tab {
michael@0 430 background-image: linear-gradient(transparent, transparent), @smallSeparatorLight@;
michael@0 431 }
michael@0 432
michael@0 433 .theme-light .devtools-sidebar-tabs > tabs > tab:hover {
michael@0 434 background-image: linear-gradient(#ddd, #ddd), @smallSeparatorLight@;
michael@0 435 }
michael@0 436
michael@0 437 .theme-light .devtools-sidebar-tabs > tabs > tab:hover:active {
michael@0 438 background-image: linear-gradient(#ddd, #ddd), @smallSeparatorLight@;
michael@0 439 }
michael@0 440
michael@0 441 .theme-light .devtools-sidebar-tabs > tabs > tab[selected] + tab {
michael@0 442 background-image: linear-gradient(transparent, transparent), @solidSeparatorLight@;
michael@0 443 }
michael@0 444
michael@0 445 .theme-light .devtools-sidebar-tabs > tabs > tab[selected] + tab:hover {
michael@0 446 background-image: linear-gradient(#ddd, #ddd), @solidSeparatorLight@;
michael@0 447 }
michael@0 448
michael@0 449 .theme-light .devtools-sidebar-tabs > tabs > tab[selected],
michael@0 450 .theme-light .devtools-sidebar-tabs > tabs > tab[selected]:hover:active {
michael@0 451 color: #f5f7fa;
michael@0 452 background-image: linear-gradient(#4c9ed9, #4c9ed9), @solidSeparatorLight@;
michael@0 453 }
michael@0 454
michael@0 455 /* Toolbox - moved from toolbox.css.
michael@0 456 * Rules that apply to the global toolbox like command buttons,
michael@0 457 * devtools tabs, docking buttons, etc. */
michael@0 458
michael@0 459 #toolbox-controls {
michael@0 460 margin: 0 4px;
michael@0 461 }
michael@0 462
michael@0 463 #toolbox-controls > toolbarbutton,
michael@0 464 #toolbox-dock-buttons > toolbarbutton {
michael@0 465 -moz-appearance: none;
michael@0 466 border: none;
michael@0 467 margin: 0 4px;
michael@0 468 min-width: 16px;
michael@0 469 width: 16px;
michael@0 470 }
michael@0 471
michael@0 472 #toolbox-controls > toolbarbutton > .toolbarbutton-text,
michael@0 473 #toolbox-dock-buttons > toolbarbutton > .toolbarbutton-text,
michael@0 474 .command-button > .toolbarbutton-text {
michael@0 475 display: none;
michael@0 476 }
michael@0 477
michael@0 478 #toolbox-dock-buttons > toolbarbutton > image {
michael@0 479 -moz-appearance: none;
michael@0 480 width: 16px;
michael@0 481 height: 16px;
michael@0 482 background-size: 16px 16px;
michael@0 483 background-position: 0 center;
michael@0 484 background-repeat: no-repeat;
michael@0 485 }
michael@0 486
michael@0 487 #toolbox-dock-bottom > image {
michael@0 488 background-image: url("chrome://browser/skin/devtools/dock-bottom@2x.png");
michael@0 489 }
michael@0 490
michael@0 491 #toolbox-dock-side > image {
michael@0 492 background-image: url("chrome://browser/skin/devtools/dock-side@2x.png");
michael@0 493 }
michael@0 494
michael@0 495 #toolbox-dock-window > image {
michael@0 496 background-image: url("chrome://browser/skin/devtools/undock@2x.png");
michael@0 497 }
michael@0 498
michael@0 499 #toolbox-dock-window,
michael@0 500 #toolbox-dock-bottom,
michael@0 501 #toolbox-dock-side {
michael@0 502 opacity: 0.6;
michael@0 503 }
michael@0 504
michael@0 505 #toolbox-dock-window:hover,
michael@0 506 #toolbox-dock-bottom:hover,
michael@0 507 #toolbox-dock-side:hover {
michael@0 508 opacity: 1;
michael@0 509 }
michael@0 510
michael@0 511 #toolbox-controls-separator {
michael@0 512 width: 3px;
michael@0 513 background-image: linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0)),
michael@0 514 linear-gradient(hsla(206,37%,4%,0), hsla(206,37%,4%,.6), hsla(206,37%,4%,0)),
michael@0 515 linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0));
michael@0 516 background-size: 1px 100%;
michael@0 517 background-repeat: no-repeat;
michael@0 518 background-position: 0, 1px, 2px;
michael@0 519 -moz-margin-start: 8px;
michael@0 520 }
michael@0 521
michael@0 522 /* Command buttons */
michael@0 523
michael@0 524 .command-button {
michael@0 525 -moz-appearance: none;
michael@0 526 border: none;
michael@0 527 padding: 0 8px;
michael@0 528 margin: 0;
michael@0 529 width: 32px;
michael@0 530 position: relative;
michael@0 531 }
michael@0 532
michael@0 533 .command-button:hover {
michael@0 534 background-color: hsla(206,37%,4%,.2);
michael@0 535 }
michael@0 536 .command-button:hover:active, .command-button[checked=true]:not(:hover) {
michael@0 537 background-color: hsla(206,37%,4%,.4);
michael@0 538 }
michael@0 539
michael@0 540 .command-button > image {
michael@0 541 -moz-appearance: none;
michael@0 542 width: 16px;
michael@0 543 height: 16px;
michael@0 544 background-size: 64px 16px;
michael@0 545 background-position: 0 center;
michael@0 546 background-repeat: no-repeat;
michael@0 547 }
michael@0 548 .command-button:hover > image {
michael@0 549 background-position: -16px center;
michael@0 550 }
michael@0 551 .command-button:hover:active > image {
michael@0 552 background-position: -32px center;
michael@0 553 }
michael@0 554 .command-button[checked=true] > image {
michael@0 555 background-position: -48px center;
michael@0 556 }
michael@0 557
michael@0 558 #command-button-paintflashing > image {
michael@0 559 background-image: url("chrome://browser/skin/devtools/command-paintflashing.png");
michael@0 560 }
michael@0 561
michael@0 562 #command-button-responsive > image {
michael@0 563 background-image: url("chrome://browser/skin/devtools/command-responsivemode.png");
michael@0 564 }
michael@0 565
michael@0 566 #command-button-tilt > image {
michael@0 567 background-image: url("chrome://browser/skin/devtools/command-tilt.png");
michael@0 568 }
michael@0 569
michael@0 570 #command-button-scratchpad > image {
michael@0 571 background-image: url("chrome://browser/skin/devtools/command-scratchpad.png");
michael@0 572 background-size: 48px 16px;
michael@0 573 }
michael@0 574
michael@0 575 #command-button-pick > image {
michael@0 576 background-image: url("chrome://browser/skin/devtools/command-pick.png");
michael@0 577 }
michael@0 578
michael@0 579 #command-button-splitconsole > image {
michael@0 580 background-image: url("chrome://browser/skin/devtools/command-console.png");
michael@0 581 }
michael@0 582
michael@0 583 #command-button-eyedropper > image {
michael@0 584 background-image: url("chrome://browser/skin/devtools/command-eyedropper.png");
michael@0 585 }
michael@0 586
michael@0 587 @media (min-resolution: 2dppx) {
michael@0 588 #command-button-paintflashing > image {
michael@0 589 background-image: url("chrome://browser/skin/devtools/command-paintflashing@2x.png");
michael@0 590 }
michael@0 591
michael@0 592 #command-button-responsive > image {
michael@0 593 background-image: url("chrome://browser/skin/devtools/command-responsivemode@2x.png");
michael@0 594 }
michael@0 595
michael@0 596 #command-button-tilt > image {
michael@0 597 background-image: url("chrome://browser/skin/devtools/command-tilt@2x.png");
michael@0 598 }
michael@0 599
michael@0 600 #command-button-scratchpad > image {
michael@0 601 background-image: url("chrome://browser/skin/devtools/command-scratchpad@2x.png");
michael@0 602 }
michael@0 603
michael@0 604 #command-button-pick > image {
michael@0 605 background-image: url("chrome://browser/skin/devtools/command-pick@2x.png");
michael@0 606 }
michael@0 607
michael@0 608 #command-button-splitconsole > image {
michael@0 609 background-image: url("chrome://browser/skin/devtools/command-console@2x.png");
michael@0 610 }
michael@0 611
michael@0 612 #command-button-eyedropper > image {
michael@0 613 background-image: url("chrome://browser/skin/devtools/command-eyedropper@2x.png");
michael@0 614 }
michael@0 615 }
michael@0 616
michael@0 617 /* Tabs */
michael@0 618
michael@0 619 .devtools-tabbar {
michael@0 620 -moz-appearance: none;
michael@0 621 min-height: 28px;
michael@0 622 border: 0px solid;
michael@0 623 border-bottom-width: 1px;
michael@0 624 padding: 0;
michael@0 625 }
michael@0 626
michael@0 627 .theme-light .devtools-tabbar {
michael@0 628 box-shadow: 0 -2px 0 rgba(170,170,170,.1) inset;
michael@0 629 background: #ebeced;
michael@0 630 border-bottom-color: #aaa;
michael@0 631 }
michael@0 632
michael@0 633 .theme-dark .devtools-tabbar {
michael@0 634 box-shadow: 0 -2px 0 rgba(0,0,0,.1) inset;
michael@0 635 background: #252c33;
michael@0 636 border-bottom-color: #000;
michael@0 637 }
michael@0 638
michael@0 639 #toolbox-tabs {
michael@0 640 margin: 0;
michael@0 641 }
michael@0 642
michael@0 643 .devtools-tab {
michael@0 644 -moz-appearance: none;
michael@0 645 -moz-binding: url("chrome://global/content/bindings/general.xml#control-item");
michael@0 646 -moz-box-align: center;
michael@0 647 min-width: 32px;
michael@0 648 min-height: 28px;
michael@0 649 max-width: 127px;
michael@0 650 margin: 0;
michael@0 651 padding: 0;
michael@0 652 -moz-border-start: 1px solid;
michael@0 653 -moz-box-align: center;
michael@0 654 }
michael@0 655
michael@0 656 .theme-dark .devtools-tab {
michael@0 657 color: #b6babf;
michael@0 658 border-color: #42484f;
michael@0 659 }
michael@0 660
michael@0 661 .theme-light .devtools-tab {
michael@0 662 color: #18191a;
michael@0 663 border-color: #aaa;
michael@0 664 }
michael@0 665
michael@0 666 .theme-dark .devtools-tab:hover {
michael@0 667 background-color: hsla(206,37%,4%,.2);
michael@0 668 color: #ced3d9;
michael@0 669 }
michael@0 670
michael@0 671 .theme-light .devtools-tab:hover {
michael@0 672 background-color: rgba(170,170,170,.2);
michael@0 673 }
michael@0 674
michael@0 675 .theme-dark .devtools-tab:hover:active {
michael@0 676 background-color: hsla(206,37%,4%,.4);
michael@0 677 color: #f5f7fa;
michael@0 678 }
michael@0 679
michael@0 680 .theme-light .devtools-tab:hover:active {
michael@0 681 background-color: rgba(170,170,170,.4);
michael@0 682 }
michael@0 683
michael@0 684 .theme-dark .devtools-tab:not([selected])[highlighted] {
michael@0 685 background-color: hsla(99,100%,14%,.2);
michael@0 686 box-shadow: 0 2px 0 #7bc107 inset;
michael@0 687 }
michael@0 688
michael@0 689 .theme-light .devtools-tab:not([selected])[highlighted] {
michael@0 690 background-color: rgba(44, 187, 15, .2);
michael@0 691 }
michael@0 692
michael@0 693 .devtools-tab:first-child {
michael@0 694 -moz-border-start-width: 0;
michael@0 695 }
michael@0 696
michael@0 697 .theme-light .devtools-tab:last-child {
michael@0 698 -moz-border-end: 1px solid #aaa;
michael@0 699 }
michael@0 700
michael@0 701 .theme-dark .devtools-tab:last-child {
michael@0 702 -moz-border-end: 1px solid #42484f;
michael@0 703 }
michael@0 704
michael@0 705 .devtools-tab > image {
michael@0 706 border: none;
michael@0 707 -moz-margin-end: 0;
michael@0 708 -moz-margin-start: 4px;
michael@0 709 opacity: 0.6;
michael@0 710 max-height: 16px;
michael@0 711 width: 16px; /* Prevents collapse during theme switching */
michael@0 712 }
michael@0 713
michael@0 714 #toolbox-tab-options > image {
michael@0 715 margin: 0 8px;
michael@0 716 }
michael@0 717
michael@0 718 .devtools-tab > label {
michael@0 719 white-space: nowrap;
michael@0 720 }
michael@0 721
michael@0 722 .devtools-tab:hover > image {
michael@0 723 opacity: 0.8;
michael@0 724 }
michael@0 725
michael@0 726 .devtools-tab:active > image,
michael@0 727 .devtools-tab[selected] > image {
michael@0 728 opacity: 1;
michael@0 729 }
michael@0 730
michael@0 731 .theme-dark #toolbox-tabs .devtools-tab[selected] {
michael@0 732 color: #f5f7fa;
michael@0 733 background-color: #1a4666;
michael@0 734 box-shadow: 0 2px 0 #d7f1ff inset,
michael@0 735 0 8px 3px -5px #2b82bf inset,
michael@0 736 0 -2px 0 rgba(0,0,0,.2) inset;
michael@0 737 }
michael@0 738
michael@0 739 .theme-light #toolbox-tabs .devtools-tab[selected] {
michael@0 740 color: #f5f7fa;
michael@0 741 background-color: #4c9ed9;
michael@0 742 box-shadow: 0 2px 0 #d7f1ff inset,
michael@0 743 0 8px 3px -5px #2b82bf inset,
michael@0 744 0 -2px 0 rgba(0,0,0,.06) inset;
michael@0 745 }
michael@0 746
michael@0 747 .devtools-tab[selected]:not(:first-child),
michael@0 748 .devtools-tab[highlighted]:not(:first-child) {
michael@0 749 border-width: 0;
michael@0 750 -moz-padding-start: 1px;
michael@0 751 }
michael@0 752
michael@0 753 .devtools-tab[selected]:last-child,
michael@0 754 .devtools-tab[highlighted]:last-child {
michael@0 755 -moz-padding-end: 1px;
michael@0 756 }
michael@0 757
michael@0 758 .devtools-tab[selected] + .devtools-tab,
michael@0 759 .devtools-tab[highlighted] + .devtools-tab {
michael@0 760 -moz-border-start-width: 0;
michael@0 761 -moz-padding-start: 1px;
michael@0 762 }
michael@0 763
michael@0 764 .devtools-tab:not([highlighted]) > .highlighted-icon,
michael@0 765 .devtools-tab[selected] > .highlighted-icon,
michael@0 766 .devtools-tab:not([selected])[highlighted] > .default-icon {
michael@0 767 visibility: collapse;
michael@0 768 }
michael@0 769
michael@0 770 /* Invert the colors of certain dark theme images for displaying
michael@0 771 * inside of the light theme.
michael@0 772 */
michael@0 773 .theme-light .devtools-tab[icon-invertable] > image,
michael@0 774 .theme-light #toolbox-dock-buttons > toolbarbutton > image,
michael@0 775 .theme-light .command-button-invertable > image,
michael@0 776 .theme-light .command-button-invertable:active > image,
michael@0 777 .theme-light .devtools-closebutton > image,
michael@0 778 .theme-light .devtools-toolbarbutton > image,
michael@0 779 .theme-light .devtools-option-toolbarbutton > image,
michael@0 780 .theme-light #breadcrumb-separator-normal,
michael@0 781 .theme-light .scrollbutton-up > .toolbarbutton-icon,
michael@0 782 .theme-light .scrollbutton-down > .toolbarbutton-icon,
michael@0 783 .theme-light #black-boxed-message-button .button-icon,
michael@0 784 .theme-light #canvas-debugging-empty-notice-button .button-icon,
michael@0 785 .theme-light #requests-menu-perf-notice-button .button-icon,
michael@0 786 .theme-light #requests-menu-network-summary-button .button-icon {
michael@0 787 filter: url(filters.svg#invert);
michael@0 788 }
michael@0 789
michael@0 790 /* Since selected backgrounds are blue, we want to use the normal
michael@0 791 * (light) icons. */
michael@0 792 .theme-light .command-button-invertable[checked=true]:not(:active) > image,
michael@0 793 .theme-light .devtools-tab[icon-invertable][selected] > image,
michael@0 794 .theme-light .devtools-tab[icon-invertable][highlighted] > image,
michael@0 795 .theme-light #resume[checked] > image {
michael@0 796 filter: none !important;
michael@0 797 }
michael@0 798
michael@0 799 .theme-light .command-button:hover {
michael@0 800 background-color: inherit;
michael@0 801 }
michael@0 802
michael@0 803 .theme-light .command-button:hover:active,
michael@0 804 .theme-light .command-button[checked=true]:not(:hover) {
michael@0 805 background-color: inherit;
michael@0 806 }
michael@0 807
michael@0 808 .hidden-labels-box:not(.visible) > label,
michael@0 809 .hidden-labels-box.visible ~ .hidden-labels-box > label:last-child {
michael@0 810 display: none;
michael@0 811 }
michael@0 812
michael@0 813 .devtools-invisible-splitter {
michael@0 814 border-color: transparent;
michael@0 815 }

mercurial