@@ -6659,54 +6659,68 @@ button
66596659}
66606660
66616661/* Hide tab bar with 1 tab - Needs polishing - Best without mica */
6662- @media -moz-pref("uc.winui.hide-with-1-tab " ) {
6663- : root [ sizemode = "normal" ] # nav-bar { --uc-window-drag-space-width : 20 px }
6662+ @media not -moz-pref("sidebar.verticalTabs " ) {
6663+ @media -moz-pref( "uc.winui.hide-with-1-tab" ) {
66646664
6665- # titlebar { -moz-appearance : none !important ; }
6666- # TabsToolbar { min-height : 0 !important ; margin-top : -1px !important ; }
6665+ .accessibility-indicator {
6666+ height : unset !important ;
6667+ }
6668+ .accessibility-indicator > hbox { padding-block : 0 !important }
66676669
6668- # tabbrowser-tabs ,
6669- # tabbrowser-arrowscrollbox { min-height : 0 !important ; }
6670+ .tabbrowser-tab : only-of-type : not ([pinned = "true" ]),
6671+ .tabbrowser-tab [first-visible-tab = "true" ][last-visible-tab = "true" ]{
6672+ visibility : collapse !important ;
6673+ min-height : 0 !important ;
6674+ height : 0 ;
6675+ }
66706676
6671- .accessibility-indicator ,
6672- .private-browsing-indicator {
6673- height : unset !important ;
6674- }
6675- .accessibility-indicator > hbox { padding-block : 0 !important }
6677+ : root : has (.tabbrowser-tab : only-of-type : not ([pinned = "true" ]),
6678+ .tabbrowser-tab [first-visible-tab = "true" ][last-visible-tab = "true" ]) {
6679+ /*#tabbrowser-arrowscrollbox-periphery,*/
6680+ # private-browsing-indicator-with-label ,
6681+ # TabsToolbar > .titlebar-buttonbox-container {
6682+ contain : strict;
6683+ }
66766684
6677- .tabbrowser-tab : only-of-type ,
6678- .tabbrowser-tab [first-visible-tab = "true" ][last-visible-tab = "true" ]{
6679- visibility : collapse !important ;
6680- min-height : 0 !important ;
6681- height : 0 ;
6682- }
6683- /* Fix window controls not being clickable */
6684- : root [tabsintitlebar ] # toolbar-menubar [autohide = "true" ][inactive ]{
6685- transition : height 0ms steps (1 ) 80ms ;
6686- }
6687- : where (# nav-bar ){
6688- border-inline : var (--uc-window-drag-space-width , 0 ) solid var (--toolbar-bgcolor );
6689- }
6685+ # TabsToolbar # tabs-newtab-button {
6686+ display : none !important ;
6687+ }
66906688
6691- # tabbrowser-arrowscrollbox-periphery ,
6692- # private-browsing-indicator-with-label ,
6693- # TabsToolbar > .titlebar-buttonbox-container {
6694- contain : strict;
6695- contain-intrinsic-height : 0 ;
6696- }
6697- # tabbrowser-arrowscrollbox-periphery {
6698- contain-intrinsic-width : 36px ;
6699- padding-inline-end : 4px ;
6700- }
6701- # private-browsing-indicator-with-label {
6702- contain-intrinsic-width : 116px ;
6703- }
6704- # TabsToolbar > .titlebar-buttonbox-container {
6705- contain-intrinsic-width : var (--uc-window-control-width , 138px );
6706- margin-bottom : 0 !important ;
6689+ /* Push immovable panel button to make space for window controls */
6690+ # PanelUI-button {
6691+ margin-right : 140px !important ;
6692+ }
6693+
6694+ /* Push titlebar buttons into the navbar */
6695+ # tabbrowser-arrowscrollbox-periphery * {
6696+ z-index : 99 !important ;
6697+ }
6698+ .titlebar-buttonbox-container {
6699+ z-index : 1 !important ;
6700+ margin-bottom : -48px !important ;
6701+ pointer-events : all !important ;
6702+
6703+ }
6704+ /* Make titlebar buttons clickable */
6705+ # nav-bar {
6706+ z-index : -1 !important ;
6707+ }
6708+
6709+ /* Spacer for window dragging */
6710+ .titlebar-spacer [type = "post-tabs" ],
6711+ : root [privatebrowsingmode = "temporary" ]: not ([chromehidden ~= "toolbar" ]) # nav-bar .titlebar-spacer [type = "post-tabs" ] {
6712+ display : block !important ;
6713+ }
6714+ }
6715+
6716+ /* Match regular titlebar button box width */
6717+ # TabsToolbar > .titlebar-buttonbox-container {
6718+ contain-intrinsic-width : 140px ;
6719+ }
67076720 }
67086721}
67096722
6723+
67106724/* Fix Sidebar revamp causing a weird line to appear below the nav bar */
67116725@media -moz-pref("sidebar.revamp" ) {
67126726 # tabbrowser-tabbox {
@@ -8202,12 +8216,17 @@ button
82028216 padding-bottom : -1px !important ;
82038217 }
82048218
8205- # vertical- pinned-tabs-container {
8219+ # pinned-tabs-container [ orient = "vertical" ] {
82068220 min-height : 50px !important ;
8221+
8222+ & .tab-background : not (: hover , [selected ]) {
8223+ clip-path : inset (1px round 4px ) !important ;
8224+ }
82078225 }
82088226
8209- # vertical-pinned-tabs- splitter {
8227+ splitter [ orient = "vertical" ] {
82108228 border-top : 1px solid var (--dropdownSeparator ) !important ;
8229+ border-bottom : none !important ;
82118230 margin-inline : 0 !important ;
82128231
82138232 & : hover {
0 commit comments