From c5eb21c3dd1e6c8888830b888e4f44e3e7a44ebf Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 17 Apr 2022 15:26:22 +0300 Subject: [PATCH] reduce selector specificity when setting tab height --- chrome/hide_tabs_with_one_tab.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chrome/hide_tabs_with_one_tab.css b/chrome/hide_tabs_with_one_tab.css index 56a2d55..1b1a30b 100644 --- a/chrome/hide_tabs_with_one_tab.css +++ b/chrome/hide_tabs_with_one_tab.css @@ -29,9 +29,11 @@ See the above repository for updates as well as full license text. */ } .accessibility-indicator > hbox{ padding-block: 0 !important } -#tabbrowser-tabs .tabbrowser-tab{ height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin,0px)) } +.tabbrowser-tab{ + height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin,0px)); +} -#tabbrowser-tabs .tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{ +.tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{ visibility: collapse !important; } @@ -61,4 +63,4 @@ See the above repository for updates as well as full license text. */ } :where(#nav-bar){ border-inline: var(--uc-window-drag-space-width,0) solid var(--toolbar-bgcolor); -} \ No newline at end of file +}