diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /browser/base/content/tabbrowser.css | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | browser/base/content/tabbrowser.css | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/browser/base/content/tabbrowser.css b/browser/base/content/tabbrowser.css new file mode 100644 index 0000000000..a0feb36906 --- /dev/null +++ b/browser/base/content/tabbrowser.css @@ -0,0 +1,83 @@ +/* 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/. */ + +.tab-close-button[pinned], +#tabbrowser-tabs[closebuttons="activetab"] > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button:not([selected="true"]), +.tab-icon-pending:not([pendingicon]), +.tab-icon-pending[busy], +.tab-icon-pending[pinned], +.tab-icon-image:not([src], [pinned], [crashed], [pictureinpicture])[selected], +.tab-icon-image:not([src], [pinned], [crashed], [sharing], [pictureinpicture]), +.tab-icon-image[busy], +.tab-throbber:not([busy]), +.tab-icon-sound:not([soundplaying], [muted], [activemedia-blocked], [pictureinpicture]), +.tab-icon-sound[pinned], +.tab-sharing-icon-overlay, +.tab-icon-overlay { + display: none; +} + +.tab-sharing-icon-overlay[sharing]:not([selected]), +.tab-icon-overlay[soundplaying][pinned], +.tab-icon-overlay[muted][pinned], +.tab-icon-overlay[activemedia-blocked][pinned], +.tab-icon-overlay[pictureinpicture], +.tab-icon-overlay[crashed] { + display: -moz-box; +} + +.tab-label { + white-space: nowrap; +} + +.tab-label-container { + overflow: hidden; +} + +.tab-label-container[pinned] { + width: 0; +} + +.tab-label-container[textoverflow][labeldirection=ltr]:not([pinned]), +.tab-label-container[textoverflow]:not([labeldirection], [pinned]):-moz-locale-dir(ltr) { + direction: ltr; + mask-image: linear-gradient(to left, transparent, black 2em); +} + +.tab-label-container[textoverflow][labeldirection=rtl]:not([pinned]), +.tab-label-container[textoverflow]:not([labeldirection], [pinned]):-moz-locale-dir(rtl) { + direction: rtl; + mask-image: linear-gradient(to right, transparent, black 2em); +} + +tabpanels { + background-color: transparent; +} + +/* Apply crisp rendering for favicons at exactly 2dppx resolution */ +@media (resolution: 2dppx) { + .tab-icon-image { + image-rendering: -moz-crisp-edges; + } +} + +.closing-tabs-spacer { + pointer-events: none; +} + +#tabbrowser-arrowscrollbox:not(:hover) > .closing-tabs-spacer { + transition: width .15s ease-out; +} + +browser[blank], +browser[pendingpaint] { + opacity: 0; +} + +#tabbrowser-tabpanels[pendingpaint] { + background-image: url(chrome://browser/skin/tabbrowser/pendingpaint.png); + background-repeat: no-repeat; + background-position: center center; + background-size: 30px; +} |