mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
33560e05dd
Bug 827031 - [toolbox] Background color in checked state of toolbox command buttons should be similar to active state, r=paul
210 lines
5.7 KiB
CSS
210 lines
5.7 KiB
CSS
/* 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/. */
|
|
|
|
#toolbox-controls {
|
|
margin: 0 4px;
|
|
}
|
|
|
|
#toolbox-controls > toolbarbutton,
|
|
#toolbox-dock-buttons > toolbarbutton {
|
|
-moz-appearance: none;
|
|
margin: 0 4px;
|
|
min-width: 16px;
|
|
width: 16px;
|
|
}
|
|
|
|
#toolbox-dock-bottom {
|
|
list-style-image: url("chrome://browser/skin/devtools/dock-bottom.png");
|
|
}
|
|
|
|
#toolbox-dock-side {
|
|
list-style-image: url("chrome://browser/skin/devtools/dock-side.png");
|
|
}
|
|
|
|
#toolbox-dock-window {
|
|
list-style-image: url("chrome://browser/skin/devtools/undock.png");
|
|
}
|
|
|
|
#toolbox-close {
|
|
list-style-image: url("chrome://browser/skin/devtools/close.png");
|
|
}
|
|
|
|
#toolbox-dock-window,
|
|
#toolbox-dock-bottom,
|
|
#toolbox-dock-side,
|
|
#toolbox-close {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
#toolbox-dock-window:hover,
|
|
#toolbox-dock-bottom:hover,
|
|
#toolbox-dock-side:hover,
|
|
#toolbox-close:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
#toolbox-controls-separator {
|
|
width: 3px;
|
|
background-image: linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0)),
|
|
linear-gradient(hsla(206,37%,4%,0), hsla(206,37%,4%,.6), hsla(206,37%,4%,0)),
|
|
linear-gradient(hsla(204,45%,98%,0), hsla(204,45%,98%,.1), hsla(204,45%,98%,0));
|
|
background-size: 1px 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: 0, 1px, 2px;
|
|
-moz-margin-start: 8px;
|
|
}
|
|
|
|
/* Command buttons */
|
|
|
|
.command-button {
|
|
-moz-appearance: none;
|
|
padding: 0 8px;
|
|
margin: 0;
|
|
width: 16px;
|
|
}
|
|
|
|
.command-button:hover {
|
|
background-color: hsla(206,37%,4%,.2);
|
|
}
|
|
.command-button:hover:active, .command-button[checked=true]:not(:hover) {
|
|
background-color: hsla(206,37%,4%,.4);
|
|
}
|
|
|
|
#command-button-responsive {
|
|
list-style-image: url("chrome://browser/skin/devtools/command-responsivemode.png");
|
|
-moz-image-region: rect(0px, 16px, 16px, 0px);
|
|
}
|
|
#command-button-responsive:hover {
|
|
-moz-image-region: rect(0px, 32px, 16px, 16px);
|
|
}
|
|
#command-button-responsive:hover:active {
|
|
-moz-image-region: rect(0px, 48px, 16px, 32px);
|
|
}
|
|
#command-button-responsive[checked=true] {
|
|
-moz-image-region: rect(0px, 64px, 16px, 48px);
|
|
}
|
|
|
|
#command-button-tilt {
|
|
list-style-image: url("chrome://browser/skin/devtools/command-tilt.png");
|
|
-moz-image-region: rect(0px, 16px, 16px, 0px);
|
|
}
|
|
#command-button-tilt:hover {
|
|
-moz-image-region: rect(0px, 32px, 16px, 16px);
|
|
}
|
|
|
|
#command-button-tilt:hover:active {
|
|
-moz-image-region: rect(0px, 48px, 16px, 32px);
|
|
}
|
|
|
|
#command-button-tilt[checked=true] {
|
|
-moz-image-region: rect(0px, 64px, 16px, 48px);
|
|
}
|
|
|
|
#command-button-scratchpad {
|
|
list-style-image: url("chrome://browser/skin/devtools/command-scratchpad.png");
|
|
-moz-image-region: rect(0px, 16px, 16px, 0px);
|
|
}
|
|
|
|
#command-button-scratchpad:hover {
|
|
-moz-image-region: rect(0px, 32px, 16px, 16px);
|
|
}
|
|
|
|
#command-button-scratchpad:hover:active {
|
|
-moz-image-region: rect(0px, 48px, 16px, 32px);
|
|
}
|
|
|
|
|
|
/* Tabs */
|
|
|
|
.devtools-tabbar {
|
|
-moz-appearance: none;
|
|
background-image: url("background-noise-toolbar.png"),
|
|
linear-gradient(#303840, #2d3640);
|
|
border-top: 1px solid #060a0d;
|
|
box-shadow: 0 1px 0 hsla(204,45%,98%,.05) inset,
|
|
0 -1px 0 hsla(206,37%,4%,.1) inset;
|
|
min-height: 32px;
|
|
padding: 0;
|
|
}
|
|
|
|
#toolbox-tabs {
|
|
margin: 0;
|
|
}
|
|
|
|
.devtools-tab {
|
|
-moz-appearance: none;
|
|
min-width: 88px;
|
|
min-height: 32px;
|
|
color: #b6babf;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-image: linear-gradient(hsla(204,45%,98%,.05), hsla(204,45%,98%,.1)),
|
|
linear-gradient(hsla(204,45%,98%,.05), hsla(204,45%,98%,.1));
|
|
background-size: 1px 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: left, right;
|
|
border-right: 1px solid hsla(206,37%,4%,.45);
|
|
}
|
|
|
|
.devtools-tab > .radio-label-center-box > .radio-label-box {
|
|
-moz-appearance: none;
|
|
border: none;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.devtools-tab > .radio-label-center-box >.radio-label-box > .radio-icon {
|
|
-moz-margin-end: 6px;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.devtools-tab:hover > .radio-label-center-box > .radio-label-box >
|
|
.radio-icon {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.devtools-tab:active > .radio-label-center-box > .radio-label-box > .radio-icon,
|
|
.devtools-tab[selected=true] > .radio-label-center-box > .radio-label-box >
|
|
.radio-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.devtools-tab:hover {
|
|
background-image: linear-gradient(hsla(204,45%,98%,.05), hsla(204,45%,98%,.1)),
|
|
linear-gradient(hsla(204,45%,98%,.05), hsla(204,45%,98%,.1)),
|
|
linear-gradient(hsla(206,37%,4%,.1), hsla(206,37%,4%,.2));
|
|
background-size: 1px 100%,
|
|
1px 100%,
|
|
100%;
|
|
background-repeat: no-repeat,
|
|
no-repeat,
|
|
repeat-x;
|
|
background-position: left, right;
|
|
color: #ced3d9;
|
|
}
|
|
.devtools-tab:hover:active {
|
|
background-color: hsla(206,37%,4%,.2);
|
|
color: #f5f7fa;
|
|
}
|
|
|
|
.devtools-tab[selected=true] {
|
|
color: #f5f7fa;
|
|
background-image: radial-gradient(farthest-corner at center top, #9fdfff, hsla(200,100%,70%,.3)),
|
|
radial-gradient(farthest-side at center top, hsla(200,100%,70%,.4), hsla(200,100%,70%,0)),
|
|
linear-gradient(hsla(204,45%,98%,.05), hsla(204,45%,98%,.1)),
|
|
linear-gradient(hsla(204,45%,98%,.02), hsla(204,45%,98%,.04)),
|
|
linear-gradient(hsla(206,37%,4%,.2), hsla(206,37%,4%,.3));
|
|
background-size: 100% 1px,
|
|
100% 5px,
|
|
1px 100%,
|
|
1px 100%,
|
|
100%;
|
|
background-repeat: no-repeat,
|
|
no-repeat,
|
|
no-repeat,
|
|
no-repeat,
|
|
repeat-x;
|
|
background-position: top right, top left, left, right;
|
|
box-shadow: 1px -1px 0 hsla(206,37%,4%,.2) inset;
|
|
}
|