From f13cf6b317d0174ec97481216839d5072e41fb5c Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 6 Nov 2019 13:55:39 +0200 Subject: [PATCH] limit button styles to role=menuitem --- content/addon_manage_buttons_without_popup.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/content/addon_manage_buttons_without_popup.css b/content/addon_manage_buttons_without_popup.css index 308d58e..a29174c 100644 --- a/content/addon_manage_buttons_without_popup.css +++ b/content/addon_manage_buttons_without_popup.css @@ -20,21 +20,22 @@ backdrop-filter: none !important; /* Having a backdrop-filter leads to some unexpected layering issues */ } + button[role="menuitem"]{ padding-inline-start: 30px !important; background-position-x: 8px !important; } + .arrow, - .more-options-button, + .more-options-menu>.more-options-button, panel-item[action="expand"]{ display: none !important } div.list{ display: flex !important; flex-direction: row !important; } - button[role="menuitem"]{ padding-inline-start: 30px !important; background-position-x: 8px !important; } panel-item[action="toggle-disabled"]{ --icon: url("chrome://browser/skin/quit.svg") } panel-item[action="preferences"]{ --icon: url("chrome://browser/skin/settings.svg") } /* Uncomment these if you want to hide button label - such as with compact_addons_manager */ /* - button > slot{ display: none !important; } - link+button{ + button[role="menuitem"] > slot{ display: none !important; } + link+button[role="menuitem"]{ padding: 4px !important; position: static !important; width: 30px !important; @@ -44,4 +45,4 @@ button[role="menuitem"] > label, link+button::after{ display: none !important; } */ -} \ No newline at end of file +}