2020-05-22 05:13:58 +00:00
/ * Source file https : / / github . com / MrOtherGuy / firefox-csshacks / tree / master / chrome / hide_tabs_with_one_tab . css made available under Mozilla Public License v . 2 . 0
See the above repository for updates as well as full license text . * /
2023-01-29 18:49:11 +00:00
/ * Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs . Optionally use privatemode_indicator_as_menu_button . css to replace main menu icon with private browsing indicator while tabs are hidden .
This will NOT work correctly if you have hidden tabs such as with tab groups extensions
* /
2022-06-07 17:17:17 +00:00
/* This style causes CSD window controls to disappear on linux, but you can kind of work around that by using window_control_fallback_for_custom_windows_theme.css */
2019-02-09 10:45:52 +00:00
2019-02-08 22:03:13 +00:00
: root [ sizemode = "normal" ] # nav-bar { --uc-window-drag-space-width : 20 px }
2018-12-02 03:30:59 +00:00
2018-12-02 03:07:43 +00:00
# titlebar { -moz- appearance : none !important ; }
2020-06-13 18:20:33 +00:00
# TabsToolbar { min-height : 0 px !important }
2019-02-08 22:03:13 +00:00
2022-04-17 12:44:57 +00:00
# tabbrowser-tabs ,
# tabbrowser-arrowscrollbox { min-height : 0 !important ; }
2019-02-08 22:03:13 +00:00
2021-02-20 20:23:52 +00:00
. accessibility-indicator ,
. private-browsing-indicator {
height : unset ! important ;
}
. accessibility-indicator > hbox { padding-block : 0 !important }
2022-04-17 12:26:22 +00:00
. tabbrowser-tab {
height : calc ( var ( --tab-min-height ) + 2 * var ( --tab-block-margin , 0px ) ) ;
}
2019-02-08 22:03:13 +00:00
2023-01-29 18:49:11 +00:00
. tabbrowser-tab : only-of-type ,
2022-04-17 12:26:22 +00:00
. tabbrowser-tab [ first-visible-tab = "true" ] [ last-visible-tab = "true" ] {
2018-12-02 03:07:43 +00:00
visibility : collapse ! important ;
2022-04-17 12:44:57 +00:00
min-height : 0 ! important ;
height : 0 ;
2018-12-02 03:07:43 +00:00
}
/* Fix window controls not being clickable */
2019-10-12 20:52:39 +00:00
: root [ tabsintitlebar ] # toolbar-menubar [ autohide = "true" ] [ inactive ] {
transition : height 0ms steps ( 1 ) 80ms ;
2018-12-02 03:30:59 +00:00
}
2021-05-15 09:13:32 +00:00
: where ( # nav-bar ) {
2021-09-19 17:15:26 +00:00
border-inline : var ( --uc-window-drag-space-width , 0 ) solid var ( --toolbar-bgcolor ) ;
2022-04-17 12:26:22 +00:00
}
2022-06-07 17:17:17 +00:00
@ media ( -moz-platform : linux ) {
# TabsToolbar . titlebar-buttonbox {
-moz-box-align : stretch ! important ;
}
# TabsToolbar > . titlebar-buttonbox-container > . titlebar-buttonbox > . titlebar-button {
transform : scale ( 0 . 8 ) ;
margin-inline : -3px ! important ;
}
# TabsToolbar . titlebar-button > . toolbarbutton-icon { padding : 0 13 px !important }
}
2022-12-18 11:49:56 +00:00
# tabbrowser-tabs : not ( [ overflowing = "true" ] ) ~ # alltabs-button {
display : none ;
}
# tabbrowser-arrowscrollbox-periphery ,
# private-browsing-indicator-with-label ,
# TabsToolbar > . titlebar-buttonbox-container {
contain : strict ;
contain-intrinsic-height : 0px ;
}
# tabbrowser-arrowscrollbox-periphery {
contain-intrinsic-width : 36px ;
padding-inline-end : 3px ;
}
# private-browsing-indicator-with-label {
contain-intrinsic-width : 116px ;
}
# TabsToolbar > . titlebar-buttonbox-container {
contain-intrinsic-width : var ( --uc-window-control-width , 138px ) ;
margin-bottom : 0 ! important ;
}
@ media ( -moz-platform : linux ) {
# TabsToolbar > . titlebar-buttonbox-container {
contain-intrinsic-width : var ( --uc-window-control-width , 105px ) ;
}
}
@ media ( -moz-platform : macos ) {
# TabsToolbar > . titlebar-buttonbox-container {
contain-intrinsic-width : var ( --uc-window-control-width , 72px ) ;
}
}