From 8073a95ab301c36fb441540330ee94ef321bbe6d Mon Sep 17 00:00:00 2001 From: Cameron Redmore Date: Tue, 17 Dec 2024 08:46:27 +0000 Subject: [PATCH] Make hover work on non-maximised Firefox by increasing margin there. --- toolbox-hover-reveal.css | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/toolbox-hover-reveal.css b/toolbox-hover-reveal.css index b0c7f2e..3a845ac 100644 --- a/toolbox-hover-reveal.css +++ b/toolbox-hover-reveal.css @@ -1,6 +1,14 @@ +#main-window { + --toolbox-offset: 30px; +} + +#main-window[sizemode="maximized"] { + --toolbox-offset: 38px; +} + #navigator-toolbox { opacity: 0; - margin-top: -38px; + margin-top: calc(-1 * var(--toolbox-offset)); z-index: 6 !important; @@ -17,7 +25,7 @@ #navigator-toolbox:hover, #navigator-toolbox:active, #navigator-toolbox:focus, #navigator-toolbox:focus-within { opacity: 1; - top: 38px; + top: var(--toolbox-offset); box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);