From 7367a9e80c29428a3711f73d0e681272708b24cf Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Tue, 22 Oct 2024 22:04:06 +0300 Subject: [PATCH] autohide sidebar: always apply larger z-index Patch from bug 1921811 changes things such that the browser-area-z-index-sidebar is only used when revamped sidebar is used. So lets shuffle things around a bit and use that always. Fixes #431 --- chrome/autohide_sidebar.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chrome/autohide_sidebar.css b/chrome/autohide_sidebar.css index 28f05e5..4418a3e 100644 --- a/chrome/autohide_sidebar.css +++ b/chrome/autohide_sidebar.css @@ -10,14 +10,12 @@ See the above repository for updates as well as full license text. */ --uc-autohide-sidebar-delay: 600ms; /* Wait 0.6s before hiding sidebar */ --uc-autohide-transition-duration: 115ms; --uc-autohide-transition-type: linear; + --browser-area-z-index-sidebar: 3; position: relative; min-width: var(--uc-sidebar-width) !important; width: var(--uc-sidebar-width) !important; max-width: var(--uc-sidebar-width) !important; - z-index:1; -} -#sidebar-box{ - --browser-area-z-index-sidebar: 3; + z-index: var(--browser-area-z-index-sidebar,3); } #sidebar-box[positionend]{ direction: rtl } #sidebar-box[positionend] > *{ direction: ltr }