Files
sousa-gecko/toolkit/themes/shared/splitter.css
T
Emilio Cobos Álvarez a71fc67673 Bug 2008041 - Make XUL disabled / checked attributes html-style boolean attributes. r=desktop-theme-reviewers,tabbrowser-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,layout-reviewers,sthompson,nsharpley,robwu,nchevobbe,jwatt,dimi,dao
Much like bug 1979014 did for other attributes (these ones were a bit
harder because there's also native code that looked at them).

Make disabled imply :disabled, and checked imply :checked, which
simplifies the theming code while at it.

Differential Revision: https://phabricator.services.mozilla.com/D277665
2026-01-06 22:02:03 +00:00

71 lines
2.1 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/. */
/* ===== splitter.css ===================================================
== Styles used by the XUL splitter element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: splitter (vertical) ::::: */
splitter {
align-items: center;
justify-content: center;
cursor: ew-resize;
@media (-moz-platform: macos) {
min-width: 9px;
min-height: 9px;
}
@media (-moz-platform: windows) or (-moz-platform: linux) {
border-width: 0 1px;
border-style: solid;
border-inline-start-color: ThreeDHighlight;
border-inline-end-color: ThreeDShadow;
min-width: 6px;
background-color: ThreeDFace;
}
}
splitter[state="collapsed"][collapse="before"],
splitter[state="collapsed"][substate="before"],
splitter[state="collapsed"][collapse="after"]:-moz-locale-dir(rtl),
splitter[state="collapsed"][substate="after"]:-moz-locale-dir(rtl) {
cursor: e-resize;
}
splitter[state="collapsed"][collapse="after"],
splitter[state="collapsed"][substate="after"],
splitter[state="collapsed"][collapse="before"]:-moz-locale-dir(rtl),
splitter[state="collapsed"][substate="before"]:-moz-locale-dir(rtl) {
cursor: w-resize;
}
/* ::::: splitter (horizontal) ::::: */
splitter[orient="vertical"] {
cursor: ns-resize;
@media (-moz-platform: windows) or (-moz-platform: linux) {
border-width: 1px 0;
border-top-color: ThreeDHighlight;
border-bottom-color: ThreeDShadow;
min-height: 6px;
}
}
splitter[orient="vertical"][state="collapsed"][collapse="before"],
splitter[orient="vertical"][state="collapsed"][substate="before"] {
cursor: s-resize;
}
splitter[orient="vertical"][state="collapsed"][collapse="after"],
splitter[orient="vertical"][state="collapsed"][substate="after"] {
cursor: n-resize;
}
splitter[disabled] {
cursor: default !important;
}