From 9eef8cd4bf0450cec4745e41bf662af57d821682 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Mon, 4 Nov 2024 19:52:21 +0200 Subject: [PATCH] autohide toolbars: remove weird --uc-urlbar-top hack Beta 133 b4 seems to work okay without it and it breaks positioning on nightly --- chrome/autohide_bookmarks_and_main_toolbars.css | 5 ----- chrome/autohide_main_toolbar.css | 5 ----- chrome/autohide_toolbox.css | 5 ----- 3 files changed, 15 deletions(-) diff --git a/chrome/autohide_bookmarks_and_main_toolbars.css b/chrome/autohide_bookmarks_and_main_toolbars.css index b6a2157..0da1db9 100644 --- a/chrome/autohide_bookmarks_and_main_toolbars.css +++ b/chrome/autohide_bookmarks_and_main_toolbars.css @@ -60,17 +60,12 @@ See the above repository for updates as well as full license text. */ position: relative; } :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 135ms linear var(--uc-autohide-toolbar-delay), opacity 0ms calc(var(--uc-autohide-toolbar-delay) + 135ms); transform-origin: 0px calc((var(--urlbar-container-height) - var(--urlbar-height)) / 2); transform: rotateX(89.5deg); } -#toolbar-menubar:not([inactive]) ~ #nav-bar #urlbar[popover]{ - top: calc(28px + var(--uc-urlbar-top)) !important; -} #mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], #urlbar-container > #urlbar[popover]:is([focused],[open]){ diff --git a/chrome/autohide_main_toolbar.css b/chrome/autohide_main_toolbar.css index e9cf806..9503bfc 100644 --- a/chrome/autohide_main_toolbar.css +++ b/chrome/autohide_main_toolbar.css @@ -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], diff --git a/chrome/autohide_toolbox.css b/chrome/autohide_toolbox.css index 9e977aa..169846a 100644 --- a/chrome/autohide_toolbox.css +++ b/chrome/autohide_toolbox.css @@ -36,17 +36,12 @@ See the above repository for updates as well as full license text. */ pointer-events: none; } :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; pointer-events: none; opacity: 0; transition: transform 82ms linear var(--uc-autohide-toolbox-delay), opacity 0ms calc(var(--uc-autohide-toolbox-delay) + 82ms); transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2); transform: rotateX(89.9deg); } -#toolbar-menubar:not([inactive]) ~ #nav-bar #urlbar[popover]{ - top: calc(28px + var(--uc-urlbar-top)) !important; -} #mainPopupSet:has(> [role="group"][panelopen]) ~ toolbox #urlbar[popover], #navigator-toolbox:is(:hover,:focus-within) #urlbar[popover], #urlbar-container > #urlbar[popover]:is([focused],[open]){