From f7976e8cc888a07a51e66e932e95f2caa712b798 Mon Sep 17 00:00:00 2001 From: Sam Foster Date: Tue, 8 Feb 2022 22:35:11 +0000 Subject: [PATCH] Bug 1747423 - Remove the @buttonState* preprocessor %defines; remove vars from (macos only) .panel-buttons r=amy Differential Revision: https://phabricator.services.mozilla.com/D137349 --- browser/themes/osx/customizableui/panelUI.css | 4 ++-- browser/themes/shared/customizableui/panelUI.inc.css | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/browser/themes/osx/customizableui/panelUI.css b/browser/themes/osx/customizableui/panelUI.css index 9dffeba6774c..e997bf43a5cf 100644 --- a/browser/themes/osx/customizableui/panelUI.css +++ b/browser/themes/osx/customizableui/panelUI.css @@ -80,11 +80,11 @@ menu.subviewbutton > .menu-right { padding: 2px 6px; } -.panel-button@buttonStateHover@ { +.panel-button:not([disabled]):hover { background-color: var(--panel-item-hover-bgcolor); } -.panel-button@buttonStateActive@ { +.panel-button:not([disabled]):hover:active { background-color: var(--panel-item-active-bgcolor); } diff --git a/browser/themes/shared/customizableui/panelUI.inc.css b/browser/themes/shared/customizableui/panelUI.inc.css index 10b9c38ae41b..31cea55f2fa0 100644 --- a/browser/themes/shared/customizableui/panelUI.inc.css +++ b/browser/themes/shared/customizableui/panelUI.inc.css @@ -4,9 +4,7 @@ %filter substitution -%define buttonStateHover :not([disabled],[open],:active):is(:hover) %define menuStateHover :not([disabled],:active)[_moz-menuactive] -%define buttonStateActive :not([disabled]):is([open],:hover:active) %define menuStateActive :not([disabled])[_moz-menuactive]:active %define menuStateMenuActive :not([disabled])[_moz-menuactive] %define inAnyPanel :is(:not([cui-areatype="toolbar"]), [overflowedItem=true])