From 043df1a6f8e5be833e3b9eda82665666782b6c2a Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 1 Sep 2019 17:25:56 +0300 Subject: [PATCH] Use id selector for tabs-newtab-button --- chrome/hide_tabs_with_one_tab.css | 3 +++ chrome/hide_tabs_with_one_tab_w_window_controls.css | 3 +++ 2 files changed, 6 insertions(+) diff --git a/chrome/hide_tabs_with_one_tab.css b/chrome/hide_tabs_with_one_tab.css index 88a8ecd..ad84154 100644 --- a/chrome/hide_tabs_with_one_tab.css +++ b/chrome/hide_tabs_with_one_tab.css @@ -10,6 +10,7 @@ #tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox{ min-height: 0 !important; } :root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button, +:root:not([customizing]) #tabs-newtab-button, :root:not([customizing]) #TabsToolbar .titlebar-button{ -moz-appearance: none !important; height: 0px; @@ -25,8 +26,10 @@ } /* Button re-styling */ +#tabs-newtab-button:hover, #tabbrowser-tabs .tabs-newtab-button:hover{ background-color: var(--toolbarbutton-hover-background) } +#tabs-newtab-button > .toolbarbutton-icon, #tabbrowser-tabs .tabs-newtab-button > .toolbarbutton-icon{ padding: 0 !important; transform: scale(0.6); 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 210ec36..2e01b15 100644 --- a/chrome/hide_tabs_with_one_tab_w_window_controls.css +++ b/chrome/hide_tabs_with_one_tab_w_window_controls.css @@ -16,6 +16,7 @@ Window controls will be all wrong without it #TabsToolbar > .titlebar-spacer[type="post-tabs"]{ width: 178px !important; } #toolbar-menubar > spacer{ pointer-events: none } +:root:not([customizing]) #tabs-newtab-button, :root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button{ -moz-appearance: none !important; height: 0px; @@ -30,8 +31,10 @@ Window controls will be all wrong without it } /* Button re-styling */ +#tabs-newtab-button:hover, #tabbrowser-tabs .tabs-newtab-button:hover{ background-color: var(--toolbarbutton-hover-background) } +#tabs-newtab-button > .toolbarbutton-icon, #tabbrowser-tabs .tabs-newtab-button > .toolbarbutton-icon{ padding: 0 !important; transform: scale(0.6);