Skip to content

Commit

Permalink
Fix: URLBar - Prevent overlay at navbar autohide #1028
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Nov 29, 2024
1 parent d66bd0f commit 83f4603
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 7 deletions.
43 changes: 41 additions & 2 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions src/autohide/_navbar.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
@include OneLinerNavbar {
#nav-bar:not([customizing]) {
margin-bottom: var(--uc-navbar-hide-height);
opacity: 0;
will-change: margin-bottom, opacity;

// Why use #urlbar? - Prevent URLbar overlay #1028
&, #urlbar {
opacity: 0;
will-change: margin-bottom, opacity;
}
}
#navigator-toolbox:is(:hover, :focus-within) #nav-bar:not([customizing]) {
margin-bottom: 0;
opacity: 1;

&, #urlbar {
opacity: 1;
}
}
}

Expand All @@ -22,8 +29,14 @@
opacity var(--uc-autohide-toolbar-speed) var(--animation-easing-function) var(--uc-autohide-toolbar-delay),
var(--ext-theme-background-transition) !important;
}

#urlbar {
transition: opacity var(--uc-autohide-toolbar-speed) var(--animation-easing-function) var(--uc-autohide-toolbar-delay) !important;
}
}
#navigator-toolbox:is(:hover, :focus-within) #nav-bar:not([customizing]) {
transition-delay: 0s !important;
&, #urlbar {
transition-delay: 0s !important;
}
}
}

0 comments on commit 83f4603

Please sign in to comment.