autohide toolbars: remove weird --uc-urlbar-top hack

Beta 133 b4 seems to work okay without it and it breaks positioning on
nightly
This commit is contained in:
MrOtherGuy
2024-11-04 19:52:21 +02:00
parent ec1aede46c
commit 9eef8cd4bf
3 changed files with 0 additions and 15 deletions

View File

@@ -52,16 +52,11 @@ See the above repository for updates as well as full license text. */
transition-delay: 0s !important;
}
:root[sessionrestored] #urlbar[popover]{
--uc-urlbar-top: calc(var(--tab-min-height) + (var(--tab-block-margin) * 2) + ((var(--urlbar-container-height) - var(--urlbar-height)) / 2));
top: var(--uc-urlbar-top) !important;
opacity: 0;
pointer-events: none;
transition: transform var(--uc-autohide-toolbar-duration) ease var(--uc-autohide-toolbar-delay), opacity var(--uc-autohide-toolbar-duration) ease var(--uc-autohide-toolbar-delay);
transform: translateY(var(--uc-navbar-transform));
}
#toolbar-menubar:not([inactive]) ~ #nav-bar #urlbar[popover]{
top: calc(28px + var(--uc-urlbar-top)) !important;
}
#mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox #urlbar[popover],
.browser-titlebar:is(:hover,:focus-within) ~ #nav-bar #urlbar[popover],
#nav-bar:is(:hover,:focus-within) #urlbar[popover],