Skip to content

Commit

Permalink
Fix: AutoHide - Adjust interaction area #501
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Nov 3, 2022
1 parent b4b9e29 commit aff13a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
11 changes: 6 additions & 5 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -7856,10 +7861,6 @@
z-index: 3;
}
}
#PersonalToolbar {
z-index: -1;
}

#sidebar-box:is(:hover, :focus-within) {
position: relative;
z-index: 2 !important;
Expand Down
14 changes: 8 additions & 6 deletions src/autohide/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -45,10 +51,6 @@
}
}

#PersonalToolbar {
z-index: -1;
}

#sidebar-box:is(:hover, :focus-within) {
position: relative;
z-index: 2 !important;
Expand Down

0 comments on commit aff13a5

Please sign in to comment.