From 8dc4e1c7952a81a429ab5f1b9875f261283d3b30 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 17 Jun 2022 05:21:54 +0300 Subject: [PATCH] Apply 2px rounding only to buttons in tabs customization target This allows dropping extra id selector from tabs-newtab-button --- chrome/non_floating_sharp_tabs.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/non_floating_sharp_tabs.css b/chrome/non_floating_sharp_tabs.css index 0c4c412..fd1467f 100644 --- a/chrome/non_floating_sharp_tabs.css +++ b/chrome/non_floating_sharp_tabs.css @@ -36,18 +36,18 @@ See the above repository for updates as well as full license text. */ .tab-background[selected]:not(:-moz-lwtheme){ background: var(--toolbar-bgcolor) !important; } -#TabsToolbar .toolbarbutton-1 > .toolbarbutton-badge-stack, -#TabsToolbar .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important; } +#TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-badge-stack, +#TabsToolbar-customization-target > .toolbarbutton-1 > .toolbarbutton-icon{ border-radius: 2px !important; } /* tabs newtab button needs some special styling... */ #tabs-newtab-button{ padding-inline: 0 !important; } -#tabbrowser-arrowscrollbox > #tabs-newtab-button > .toolbarbutton-icon{ +#tabs-newtab-button > .toolbarbutton-icon{ border-radius: 0 !important; width: initial !important; height: initial !important; padding: 9px !important; } -:root[uidensity="compact"] #tabbrowser-arrowscrollbox > #tabs-newtab-button > .toolbarbutton-icon{ +:root[uidensity="compact"] #tabs-newtab-button > .toolbarbutton-icon{ padding: 7px !important; }