From ec1aede46c2640d4daff491539c2637e27b07bdc Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 1 Nov 2024 05:36:58 +0200 Subject: [PATCH] show autohidden toolbar when a panel is open --- chrome/autohide_bookmarks_and_main_toolbars.css | 4 ++-- chrome/autohide_main_toolbar.css | 4 ++-- chrome/autohide_toolbox.css | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chrome/autohide_bookmarks_and_main_toolbars.css b/chrome/autohide_bookmarks_and_main_toolbars.css index 37f3b3d..b6a2157 100644 --- a/chrome/autohide_bookmarks_and_main_toolbars.css +++ b/chrome/autohide_bookmarks_and_main_toolbars.css @@ -71,7 +71,7 @@ See the above repository for updates as well as full license text. */ #toolbar-menubar:not([inactive]) ~ #nav-bar #urlbar[popover]{ top: calc(28px + var(--uc-urlbar-top)) !important; } -#mainPopupSet:has(> #appMenu-popup:hover) ~ toolbox #urlbar[popover], +#mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], #urlbar-container > #urlbar[popover]:is([focused],[open]){ opacity: 1; @@ -105,7 +105,7 @@ See the above repository for updates as well as full license text. */ .tabbrowser-tab[selected]{ z-index: 3 !important; } /* Show when cursor is over main menu popup - this requires :has selector support */ -#mainPopupSet:has(> #appMenu-popup:hover) ~ toolbox > .browser-toolbar{ +#mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox > .browser-toolbar{ transition-delay: 100ms !important; transform: rotateX(0); } diff --git a/chrome/autohide_main_toolbar.css b/chrome/autohide_main_toolbar.css index ca228b8..e9cf806 100644 --- a/chrome/autohide_main_toolbar.css +++ b/chrome/autohide_main_toolbar.css @@ -62,7 +62,7 @@ See the above repository for updates as well as full license text. */ #toolbar-menubar:not([inactive]) ~ #nav-bar #urlbar[popover]{ top: calc(28px + var(--uc-urlbar-top)) !important; } -#mainPopupSet:has(> #appMenu-popup:hover) ~ toolbox #urlbar[popover], +#mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox #urlbar[popover], .browser-titlebar:is(:hover,:focus-within) ~ #nav-bar #urlbar[popover], #nav-bar:is(:hover,:focus-within) #urlbar[popover], #urlbar-container > #urlbar[popover]:is([focused],[open]){ @@ -75,7 +75,7 @@ See the above repository for updates as well as full license text. */ transition-duration: 100ms; /* Faster when focused */ } /* This ruleset is separate, because not having :has support breaks other selectors as well */ -#mainPopupSet:has(> #appMenu-popup:hover) ~ #navigator-toolbox > .browser-toolbar{ +#mainPopupSet:has(> [role="group"][panelopen]) ~ #navigator-toolbox > .browser-toolbar{ transition-delay: 33ms !important; transform: translateY(0); opacity: 1; diff --git a/chrome/autohide_toolbox.css b/chrome/autohide_toolbox.css index 9668383..9e977aa 100644 --- a/chrome/autohide_toolbox.css +++ b/chrome/autohide_toolbox.css @@ -47,7 +47,7 @@ See the above repository for updates as well as full license text. */ #toolbar-menubar:not([inactive]) ~ #nav-bar #urlbar[popover]{ top: calc(28px + var(--uc-urlbar-top)) !important; } -#mainPopupSet:has(> #appMenu-popup:hover) ~ toolbox #urlbar[popover], +#mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], #urlbar-container > #urlbar[popover]:is([focused],[open]){ pointer-events: auto; @@ -55,7 +55,7 @@ See the above repository for updates as well as full license text. */ transition-delay: 33ms; transform: rotateX(0deg); } -#mainPopupSet:has(> #appMenu-popup:hover) ~ toolbox, +#mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox, #navigator-toolbox:has(#urlbar:is([open],[focus-within])), #navigator-toolbox:hover, #navigator-toolbox:focus-within{