mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1914087 - Use nesting in arrowscrollbox.css. r=emilio,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219704
This commit is contained in:
parent
568c4b44b9
commit
f181da604b
@ -8,6 +8,11 @@
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
scrollbox {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
slot {
|
||||
display: flex;
|
||||
flex: 1 0 0;
|
||||
@ -23,14 +28,24 @@ toolbarbutton {
|
||||
fill: currentColor;
|
||||
fill-opacity: 1;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
toolbarbutton[disabled] {
|
||||
fill-opacity: var(--toolbarbutton-disabled-opacity);
|
||||
}
|
||||
&[disabled] {
|
||||
fill-opacity: var(--toolbarbutton-disabled-opacity);
|
||||
}
|
||||
|
||||
:host([orient="horizontal"]) > toolbarbutton {
|
||||
list-style-image: url("chrome://global/skin/icons/arrow-left.svg");
|
||||
:host([orient="horizontal"]) > & {
|
||||
list-style-image: url("chrome://global/skin/icons/arrow-left.svg");
|
||||
}
|
||||
|
||||
@media not (-moz-platform: macos) {
|
||||
:host(:not([clicktoscroll])) > & {
|
||||
appearance: none;
|
||||
}
|
||||
}
|
||||
|
||||
> .toolbarbutton-text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#scrollbutton-up > .toolbarbutton-icon {
|
||||
@ -41,18 +56,3 @@ toolbarbutton[disabled] {
|
||||
:host([orient="horizontal"]) > #scrollbutton-up:-moz-locale-dir(rtl) > .toolbarbutton-icon {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
toolbarbutton > .toolbarbutton-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media not (-moz-platform: macos) {
|
||||
:host(:not([clicktoscroll])) > toolbarbutton {
|
||||
appearance: none;
|
||||
}
|
||||
}
|
||||
|
||||
scrollbox {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user