@media (-moz-bool-pref: "zen.tabs.vertical") { /* COLOR POP of pinned tabs (when toggled) */ @media (-moz-bool-pref: "uc.pins.bg-color.pop") and (not (-moz-bool-pref: "uc.pins.disable-bg-color")) { /* background color of pinned tabs in a normal state (not hovered/selected) */ .tabbrowser-tab[pinned] .tab-stack .tab-background { background-color: light-dark(hsl(from var(--zen-primary-color) h 70% 92%), hsl(from var(--zen-primary-color) h 25% 15%)) !important; } /* background color when hovering */ .tabbrowser-tab[pinned]:hover .tab-stack .tab-background{ background-color: light-dark(hsl(from var(--zen-primary-color) h 70% 90%), hsl(from var(--zen-primary-color) h 25% 17%)) !important; } /* background color when selected */ .tabbrowser-tab[pinned][selected="true"] .tab-stack .tab-background, .tabbrowser-tab[pinned][multiselected="true"] .tab-stack .tab-background { background-color: light-dark(hsl(from var(--zen-primary-color) h 70% 85%), hsl(from var(--zen-primary-color) h 25% 28%)) !important; } /* background color when hovering and selected */ .tabbrowser-tab[pinned][selected="true"]:hover .tab-stack .tab-background, .tabbrowser-tab[pinned][multiselected="true"]:hover .tab-stack .tab-background{ background-color: light-dark(hsl(from var(--zen-primary-color) h 70% 83%), hsl(from var(--zen-primary-color) h 25% 30%)) !important; } } /* Makes pinned tabs transparent (when toggled) */ @media (-moz-bool-pref: "uc.pins.disable-bg-color") { .tabbrowser-tab[pinned]:not(:hover):not([selected="true"]) .tab-stack .tab-background { background-color: transparent !important; } } /* Make pinned tabs taller (when toggled) */ @media (-moz-bool-pref: "uc.pins.tall") and (-moz-bool-pref: "zen.view.sidebar-expanded") and (not (-moz-bool-pref: "zen.view.sidebar-expanded.on-hover")) { .tabbrowser-tab[pinned] { min-height: 43px !important; } } /* Set margin between pinned tabs (when toggled) */ @media (-moz-bool-pref: "uc.pins.margins.compact") { :root { --pins-gap: 1px; } } @media (not (-moz-bool-pref: "uc.pins.margins.compact")) { :root { --pins-gap: 6px; } } /* Increase width of pinned tabs */ @media (-moz-bool-pref: "zen.view.sidebar-expanded") and (not (-moz-bool-pref: "uc.pins.wide.disabled")) { #navigator-toolbox:is( #navigator-toolbox[zen-user-hover="true"]:hover, #navigator-toolbox[zen-user-hover="true"]:focus-within, #mainPopupSet[zen-user-hover="true"]:has(> #appMenu-popup:hover) ~ toolbox, #navigator-toolbox[zen-user-hover="true"]:has(*[open="true"]:not(tab):not(#zen-sidepanel-button)), :not([zen-user-hover="true"])) { #vertical-pinned-tabs-container { grid-template-columns: repeat(auto-fit, minmax(60px, auto)) !important; gap: var(--pins-gap) calc(var(--pins-gap) + 4px) !important; } @media (-moz-bool-pref: "uc.pins.tall") { .tabbrowser-tab[pinned] { min-height: 43px !important; } } } #vertical-pinned-tabs-container { margin-bottom: var(--pins-gap) !important; } } /* Make pinned tabs look more box like */ @media (-moz-bool-pref: "uc.pins.box-like-corners") { .tabbrowser-tab[pinned] .tab-stack .tab-background{ border-radius: 5px !important; } } /* Hides unloaded tabs when tab bar is collapsed (when toggled)*/ @media (not (-moz-bool-pref: "zen.view.sidebar-expanded")) { :root:has(#theme-SuperPins[uc-pins-only-show-active="Normal"]) { .tabbrowser-tab[pinned][pending="true"] { position: absolute !important; /* Using position: absolute and visibility: hidden instead of display:none stops the icons of unloaded tabs from loading when sidebar expands */ visibility: hidden !important; } } /* Shows all pins when user is hovering over them when tab bar is collapsed */ :root:has(#theme-SuperPins[uc-pins-only-show-active="OnHover"]) { .tabbrowser-tab[pinned][pending="true"] { position: absolute !important; /* Using position: absolute and visibility: hidden instead of display:none stops the icons of unloaded tabs from loading when sidebar expands */ visibility: hidden !important; } #vertical-pinned-tabs-container:hover .tabbrowser-tab[pinned][pending="true"] { position: relative !important; visibility: visible !important; } #vertical-pinned-tabs-container { position: relative; } #vertical-pinned-tabs-container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 10px; background-color: transparent; } #vertical-pinned-tabs-container::before:hover .tabbrowser-tab[pinned][pending="true"] { position: relative !important; visibility: visible !important; } } } /* Hides unloaded tabs when tab bar is collapsed when in "Expand on hove" mode (when toggled)*/ @media (-moz-bool-pref: "uc.pins.only-show-active"){ #navigator-toolbox:not( :is( #navigator-toolbox[zen-user-hover="true"]:hover, #navigator-toolbox[zen-user-hover="true"]:focus-within, #mainPopupSet[zen-user-hover="true"]:has(> #appMenu-popup:hover) ~ toolbox, #navigator-toolbox[zen-user-hover="true"]:has(*[open="true"]:not(tab):not(#zen-sidepanel-button)), :not([zen-user-hover="true"]))) { .tabbrowser-tab[pinned][pending="true"] { position: absolute !important; /* Using position: absolute and visibility: hidden instead of display:none stops the icons of unloaded tabs from loading when sidebar expands */ visibility: hidden !important; } } } }