diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /comm/suite/themes/modern/global/scrollbars.css | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'comm/suite/themes/modern/global/scrollbars.css')
-rw-r--r-- | comm/suite/themes/modern/global/scrollbars.css | 192 |
1 files changed, 192 insertions, 0 deletions
diff --git a/comm/suite/themes/modern/global/scrollbars.css b/comm/suite/themes/modern/global/scrollbars.css new file mode 100644 index 0000000000..64ce6a4f63 --- /dev/null +++ b/comm/suite/themes/modern/global/scrollbars.css @@ -0,0 +1,192 @@ +/* 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/. */ + +/* ===== scrollbars.css ================================================= + == Styles used by XUL scrollbar-related elements. + ======================================================================= */ + +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); +@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */ + +/* ::::: scrollbar ::::: */ + +scrollbar { + -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar"); + cursor: default; +} + +/* ::::: slider ::::: */ + +slider { + min-width: 15px; + min-height: 15px; + background: url("chrome://global/skin/scrollbar/slider-hrz.png") repeat-x; +} + +slider[orient="vertical"] { + background: url("chrome://global/skin/scrollbar/slider-vrt.png") repeat-y; +} + +/* ::::: borders for thumb and buttons ::::: */ + +thumb, +scrollbarbutton { + border: 1px solid; + border-color: #000000; + background: #B1BBC5 50% 50% no-repeat; +} + +thumb:active { + background-color: #C2CCD6; + border-color: #111111; +} + +%ifdef MOZ_WIDGET_GTK +scrollbarbutton[sbattr="scrollbar-up-bottom"], +scrollbarbutton[sbattr="scrollbar-down-top"] { + display: none; +} + +scrollbarbutton[sbattr="scrollbar-up-top"], +scrollbarbutton[sbattr="scrollbar-down-bottom"] { + display: -moz-box !important; +} +%endif + +/* ::::: thumb (horizontal) ::::: */ + +thumb { + min-height: 18px; + background-image: url("chrome://global/skin/scrollbar/thumb-vrt-grip.png"); +} + +thumb[orient="horizontal"] { + min-width: 18px; + background-image: url("chrome://global/skin/scrollbar/thumb-hrz-grip.png"); +} + +/* ::::: scrollbar button ::::: */ + +scrollbarbutton { + width: 15px; + height: 15px; + max-width: 15px; + max-height: 15px; + -moz-box-flex: 1; +} + +scrollbarbutton[disabled="true"], +scrollbarbutton[active="true"], +scrollbarbutton:hover:active { + border-color: #000000; + background-color: #9CA8B4; +} + +/* ::::: square at the corner of two scrollbars ::::: */ + +scrollcorner { + -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base"); + width: 15px; + cursor: default; + background-color: #B1BBC5; +} + +/* ..... increment .... */ + +scrollbarbutton[type="increment"] { + background-image: url("chrome://global/skin/scrollbar/btn-rit.png") +} + +scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] { + background-image: url("chrome://global/skin/scrollbar/btn-dn.png") +} + +/* ..... decrement .... */ + +scrollbarbutton[type="decrement"] { + background-image: url("chrome://global/skin/scrollbar/btn-lft.png") +} + +scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { + background-image: url("chrome://global/skin/scrollbar/btn-up.png") +} + +/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */ +/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */ +/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */ +@media print { + + /* ::::: slider ::::: */ + + html|div slider { + height: 15px; + background: url("chrome://global/skin/scrollbar/slider-hrz.png") repeat-x; + } + + html|div slider[orient="vertical"] { + width: 15px; + background: url("chrome://global/skin/scrollbar/slider-vrt.png") repeat-y; + } + + /* ::::: borders for thumb and buttons ::::: */ + + html|div thumb, + html|div scrollbarbutton { + border: 1px solid; + border-color: #000000; + background: #B1BBC5 50% 50% no-repeat; + } + + html|div thumb:active { + background-color: #C2CCD6; + border-color: #111111; + } + + /* ::::: thumb (horizontal) ::::: */ + + html|div thumb { + min-height: 18px; + background-image: url("chrome://global/skin/scrollbar/thumb-vrt-grip.png"); + } + + html|div thumb[orient="horizontal"] { + min-width: 18px; + background-image: url("chrome://global/skin/scrollbar/thumb-hrz-grip.png"); + } + + /* ::::: scrollbar button ::::: */ + + html|div scrollbarbutton { + width: 15px; + height: 15px; + } + + html|div scrollbarbutton[disabled="true"], + html|div scrollbarbutton[active="true"], + html|div scrollbarbutton:hover:active { + border-color: #000000; + background-color: #9CA8B4; + } + + /* ..... increment .... */ + + html|div scrollbarbutton[type="increment"] { + background-image: url("chrome://global/skin/scrollbar/btn-rit.png") + } + + html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] { + background-image: url("chrome://global/skin/scrollbar/btn-dn.png") + } + + /* ..... decrement .... */ + + html|div scrollbarbutton[type="decrement"] { + background-image: url("chrome://global/skin/scrollbar/btn-lft.png") + } + + html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] { + background-image: url("chrome://global/skin/scrollbar/btn-up.png") + } + +} |