summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/shared/splitter.css
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /toolkit/themes/shared/splitter.css
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/themes/shared/splitter.css')
-rw-r--r--toolkit/themes/shared/splitter.css75
1 files changed, 75 insertions, 0 deletions
diff --git a/toolkit/themes/shared/splitter.css b/toolkit/themes/shared/splitter.css
new file mode 100644
index 0000000000..7167c759bd
--- /dev/null
+++ b/toolkit/themes/shared/splitter.css
@@ -0,0 +1,75 @@
+/* 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: linux) {
+ appearance: auto;
+ -moz-default-appearance: splitter;
+ }
+ @media (-moz-platform: macos) {
+ min-width: 9px;
+ min-height: 9px;
+ }
+ @media (-moz-platform: windows) {
+ 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) {
+ 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="true"] {
+ cursor: default !important;
+}