From 23dfd1743d5b280fca083e2476ccc1a23ee083e5 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 14 Aug 2020 16:47:24 +0300 Subject: [PATCH] set tabs-navbar shadow size to 0px wherever tabs won't be atop of navbar --- chrome/navbar_tabs_oneliner.css | 5 ++++- chrome/navbar_tabs_oneliner_menu_buttons_on_right.css | 5 ++++- chrome/navbar_tabs_oneliner_tabs_on_left.css | 1 + chrome/navbar_tabs_responsive_oneliner.css | 5 ++++- chrome/tabs_below_content.css | 1 + chrome/tabs_on_bottom.css | 3 ++- 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/chrome/navbar_tabs_oneliner.css b/chrome/navbar_tabs_oneliner.css index a7df8b1..96e0ebd 100644 --- a/chrome/navbar_tabs_oneliner.css +++ b/chrome/navbar_tabs_oneliner.css @@ -32,7 +32,10 @@ urlbar_full_width.css is VERY MUCH recommended for Firefox 71+ because of new ur #urlbar-container{ min-width:unset !important } } -#TabsToolbar{ margin-left: var(--uc-navigationbar-width); } +#TabsToolbar{ + margin-left: var(--uc-navigationbar-width); + --tabs-navbar-shadow-size: 0px; +} #tabbrowser-tabs{ --tab-min-height: var(--uc-toolbar-height) !important; } /* This isn't useful when tabs start in the middle of the window */ diff --git a/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css b/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css index a4090b5..77a7bba 100644 --- a/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css +++ b/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css @@ -36,7 +36,10 @@ Window controls will be all wrong without it #urlbar-container{ min-width:unset !important } } -#TabsToolbar{ margin-left: var(--uc-navigationbar-width); } +#TabsToolbar{ + margin-left: var(--uc-navigationbar-width); + --tabs-navbar-shadow-size: 0px; +} #tabbrowser-tabs{ --tab-min-height: var(--uc-toolbar-height) !important; } /* This isn't useful when tabs start in the middle of the window */ .titlebar-placeholder[type="pre-tabs"],.titlebar-spacer[type="pre-tabs"]{ width:8px !important} diff --git a/chrome/navbar_tabs_oneliner_tabs_on_left.css b/chrome/navbar_tabs_oneliner_tabs_on_left.css index 844ef10..c9a0d5c 100644 --- a/chrome/navbar_tabs_oneliner_tabs_on_left.css +++ b/chrome/navbar_tabs_oneliner_tabs_on_left.css @@ -42,6 +42,7 @@ Window controls will be all wrong without it } #TabsToolbar{ margin-right: var(--uc-navigationbar-width); + --tabs-navbar-shadow-size: 0px; } #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container, #tabbrowser-tabs, diff --git a/chrome/navbar_tabs_responsive_oneliner.css b/chrome/navbar_tabs_responsive_oneliner.css index 7dc2f77..635095c 100644 --- a/chrome/navbar_tabs_responsive_oneliner.css +++ b/chrome/navbar_tabs_responsive_oneliner.css @@ -24,7 +24,10 @@ See the above repository for updates as well as full license text. */ :root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 32px; } :root[uidensity="touch"] #navigator-toolbox{ --uc-toolbar-height: 40px; } - #TabsToolbar{ margin-left: var(--uc-navigationbar-width); } + #TabsToolbar{ + margin-left: var(--uc-navigationbar-width); + --tabs-navbar-shadow-size: 0px; + } #tabbrowser-tabs{ --tab-min-height: var(--uc-toolbar-height) !important; } /* This isn't useful when tabs start in the middle of the window */ diff --git a/chrome/tabs_below_content.css b/chrome/tabs_below_content.css index 1daf736..14b1c59 100644 --- a/chrome/tabs_below_content.css +++ b/chrome/tabs_below_content.css @@ -46,6 +46,7 @@ linux_gtk_window_control_patch.css bottom: 0; width: 100vw; height: var(--tab-min-height); + --tabs-navbar-shadow-size: 0px; } #TabsToolbar:hover{ z-index: 1 } diff --git a/chrome/tabs_on_bottom.css b/chrome/tabs_on_bottom.css index e374c9d..cd289a2 100644 --- a/chrome/tabs_on_bottom.css +++ b/chrome/tabs_on_bottom.css @@ -46,8 +46,9 @@ linux_gtk_window_control_patch.css .titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; } #titlebar{ - -moz-box-ordinal-group: 2; + -moz-box-ordinal-group: 2; -moz-appearance: none !important; + --tabs-navbar-shadow-size: 0px; } .titlebar-placeholder,