From 175df68da4ecf5c0178cbe08c3813092f4561e8a Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 27 Jul 2024 10:23:16 +0300 Subject: [PATCH] remove rules for #window-controls This extra set of window control buttons hasn't existed in a while --- chrome/hide_tabs_toolbar.css | 2 +- chrome/hide_tabs_toolbar_osx.css | 1 - chrome/hide_tabs_with_one_tab_w_window_controls.css | 1 - chrome/window_control_placeholder_support.css | 11 ++++------- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/chrome/hide_tabs_toolbar.css b/chrome/hide_tabs_toolbar.css index 782a4fb..dfd0b12 100644 --- a/chrome/hide_tabs_toolbar.css +++ b/chrome/hide_tabs_toolbar.css @@ -23,7 +23,7 @@ Window controls will be all wrong without it } #TabsToolbar{ visibility: collapse !important } -:root[sizemode="fullscreen"] #TabsToolbar > :is(#window-controls,.titlebar-buttonbox-container){ +:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container{ visibility: visible !important; z-index: 2; } diff --git a/chrome/hide_tabs_toolbar_osx.css b/chrome/hide_tabs_toolbar_osx.css index 7607710..57e6749 100644 --- a/chrome/hide_tabs_toolbar_osx.css +++ b/chrome/hide_tabs_toolbar_osx.css @@ -13,7 +13,6 @@ Window controls will be all wrong without it :root:not([uidensity="compact"]){ --uc-toolbar-height: 34px } #TabsToolbar > *{ visibility: collapse !important } -:root[sizemode="fullscreen"] #TabsToolbar > #window-controls{ visibility: visible !important; z-index: 2 } #TabsToolbar > .titlebar-buttonbox-container{ visibility: visible !important; height:var(--uc-toolbar-height) !important; diff --git a/chrome/hide_tabs_with_one_tab_w_window_controls.css b/chrome/hide_tabs_with_one_tab_w_window_controls.css index 9d218ab..41f6d25 100644 --- a/chrome/hide_tabs_with_one_tab_w_window_controls.css +++ b/chrome/hide_tabs_with_one_tab_w_window_controls.css @@ -75,5 +75,4 @@ Window controls will be all wrong without it :root:not([customizing]) #toolbar-menubar[autohide][inactive] > #menubar-items{ pointer-events: none; opacity: 0 } -:root[sizemode="fullscreen"] #TabsToolbar > #window-controls{ z-index: 2; } .titlebar-buttonbox{ color: inherit } diff --git a/chrome/window_control_placeholder_support.css b/chrome/window_control_placeholder_support.css index b4a4efc..e70e424 100644 --- a/chrome/window_control_placeholder_support.css +++ b/chrome/window_control_placeholder_support.css @@ -42,12 +42,11 @@ See the above repository for updates as well as full license text. */ } } -.titlebar-buttonbox, #window-controls{ color: var(--toolbar-color) } +.titlebar-buttonbox{ color: var(--toolbar-color) } :root[sizemode="fullscreen"] .titlebar-buttonbox-container{ display: none } :root[sizemode="fullscreen"] #navigator-toolbox { position: relative; } -:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container:last-child, -:root[sizemode="fullscreen"] #window-controls{ +:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container:last-child{ position: absolute; display: flex; top: 0; @@ -55,8 +54,7 @@ See the above repository for updates as well as full license text. */ height: 40px; } -:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container:last-child, -:root[uidensity="compact"][sizemode="fullscreen"] #window-controls{ height: 32px } +:root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container:last-child{ height: 32px } #nav-bar{ border-inline: var(--uc-window-drag-space-pre,0px) solid transparent; @@ -72,8 +70,7 @@ See the above repository for updates as well as full license text. */ :root[tabsintitlebar="true"] #nav-bar{ border-inline-width: calc(var(--uc-window-control-width,0px) + var(--uc-window-drag-space-post,0px)) var(--uc-window-drag-space-pre,0px) } - :root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container:last-child, - :root[sizemode="fullscreen"] #window-controls{ right: unset } + :root[sizemode="fullscreen"] #TabsToolbar > .titlebar-buttonbox-container:last-child{ right: unset } } @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){ .titlebar-buttonbox-container{