fenix-fox/chrome/shrinking_pinned_tabs.css
sonofevil bbedf1e5c4
fix flicker glitch (#248)
* fix flicker glitch

* fix incorrect selector
2023-01-18 15:57:11 +02:00

28 lines
845 B
CSS

/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/shrinking_pinned_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Makes pinned tab width shrink dynamically, similar to unpinned tab width. */
#tabbrowser-arrowscrollbox:not([overflowing]) .tabbrowser-tab[pinned] {
flex-grow: 10;
-moz-box-flex: 10;
max-width: 40px;
}
:root[uidensity="compact"] #tabbrowser-arrowscrollbox:not([overflowing]) .tabbrowser-tab[pinned] {
max-width: 32px
}
#tabbrowser-arrowscrollbox:not([overflowing]) .tab-content[pinned] {
padding: 0px !important;
-moz-box-pack: center;
}
.tab-label-container[pinned] {
display: none;
}
/* Fixes flicker glitch. */
scrollbox[part][orient="horizontal"] {
padding-inline: unset !important;
}