2020-05-31 04:21:37 +00:00
/ * Source file https : / / github . com / MrOtherGuy / firefox-csshacks / tree / master / chrome / normal_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 tabs behave like normal tabs, making their title and close buttons visible and making them "non-positioned" when tab strip is overflowing */
# tabbrowser-tabs { padding-inline-start : 0 px !important }
. tabbrowser-tab {
2023-03-11 10:26:07 +00:00
flex-grow : 100 ;
-moz-box-flex : 100 ; /* Fx <112 compatibility */
2020-05-31 04:21:37 +00:00
max-width : 225px ;
min-width : var ( --tab-min-width ) ;
width : 0 ;
transition : min-width 100ms ease-out , max-width 100ms ease-out ;
margin-inline-start : 0px ! important ;
position : initial ! important ;
2023-03-11 10:26:07 +00:00
display : flex ! important
2020-05-31 04:21:37 +00:00
}
2023-03-11 10:26:07 +00:00
. tab-stack { flex-grow : 1 } /* Fx <112 compatibility */
2020-05-31 04:21:37 +00:00
. tabbrowser-tab [ pinned ] > . tab-stack { border : none !important ; }
. tabbrowser-tab [ pinned ] :: after { position : static !important ; margin-block : 0 px 1 px !important ; }
. tabbrowser-tab [ selected ] { position : relative !important ; }
. tab-label-container { width : unset !important ; }
. tab-label-container [ pinned ] { margin-inline-start : 8 px }
2020-12-18 15:45:23 +00:00
. tab-icon-sound : is ( [ soundplaying ] , [ muted ] , [ activemedia-blocked ] , [ pictureinpicture ] ) ,
2021-11-29 09:39:24 +00:00
2020-05-31 04:21:37 +00:00
. tab-icon-overlay { display : none !important ; }
2021-11-29 09:39:24 +00:00
# tabbrowser-tabs [ closebuttons = "activetab" ] > # tabbrowser-arrowscrollbox > . tabbrowser-tab > . tab-stack > . tab-content > . tab-close-button : not ( [ selected = "true" ] ) { display : none !important ; }
/* Comment out or remove this if you want pinned tabs to never have close-button */
2023-03-11 10:26:07 +00:00
. tab-close-button { display : flex !important ; }