From aff13a5984c53aca5a3282a34dacb64e5014c0c7 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Fri, 4 Nov 2022 02:55:46 +0900 Subject: [PATCH] Fix: AutoHide - Adjust interaction area #501 --- css/leptonChrome.css | 11 ++++++----- src/autohide/_common.scss | 14 ++++++++------ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index df39d842..3e5bbd6f 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -7841,10 +7841,15 @@ or -moz-bool-pref("userChrome.autohide.infobar") { #navigator-toolbox { position: relative; + } + #navigator-toolbox:is(:hover, :focus-within) { z-index: 2; } + #navigator-toolbox:is(:hover, :focus-within) #PersonalToolbar { + z-index: -1; + } - #navigator-toolbox:not(:hover) { + #navigator-toolbox:not(:hover):not(:focus-within) { animation: 1s keepfront; } @@ -7856,10 +7861,6 @@ z-index: 3; } } - #PersonalToolbar { - z-index: -1; - } - #sidebar-box:is(:hover, :focus-within) { position: relative; z-index: 2 !important; diff --git a/src/autohide/_common.scss b/src/autohide/_common.scss index 185d6c9e..1fde6d68 100644 --- a/src/autohide/_common.scss +++ b/src/autohide/_common.scss @@ -31,9 +31,15 @@ @include Option("userChrome.autohide.tabbar", "userChrome.autohide.navbar", "userChrome.autohide.bookmarkbar", "userChrome.autohide.infobar") { #navigator-toolbox { position: relative; - z-index: 2; + &:is(:hover, :focus-within) { + z-index: 2; + + #PersonalToolbar { + z-index: -1; + } + } } - #navigator-toolbox:not(:hover) { + #navigator-toolbox:not(:hover):not(:focus-within) { animation: 1s keepfront; } @keyframes keepfront { @@ -45,10 +51,6 @@ } } - #PersonalToolbar { - z-index: -1; - } - #sidebar-box:is(:hover, :focus-within) { position: relative; z-index: 2 !important;