autohide main toolbar: conditionally apply browser top margin

We have removed custom browser top margin in fullscreen mode, but it
actually needs to apply in fullscreen mode if toolbars are not
autohidden using built-in Firefox fullscreen mechanism.
This commit is contained in:
MrOtherGuy
2025-03-22 20:15:30 +02:00
parent 80d3a24829
commit e3f0e06f4b

View File

@@ -88,4 +88,12 @@ See the above repository for updates as well as full license text. */
#PersonalToolbar{ transition: transform var(--uc-autohide-toolbar-duration) ease var(--uc-autohide-toolbar-delay) !important; position: relative; z-index: 1 }
/* Move up the content view */
:root[sessionrestored]:not([inFullscreen],[chromehidden~="toolbar"]) > body > #browser{ margin-top: var(--uc-navbar-transform); }
:root[sessionrestored]:not([chromehidden~="toolbar"]) > body > #browser{
margin-top: var(--uc-navbar-transform);
}
@media -moz-pref("browser.fullscreen.autohide"),
(-moz-bool-pref: "browser.fullscreen.autohide"){
:root[sessionrestored][sizemode="fullscreen"] > body > #browser{
margin-top: revert;
}
}