From 31cb27a5d8e11a4f35499ea9d75cc9939399d915 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 16 May 2024 05:23:04 +0300 Subject: [PATCH] Don't depend on [inFullscreen] attribute for navigator-toolbox Just use :root[sizemode="fullscreen"] instead --- chrome/autohide_toolbox.css | 2 +- chrome/overlay_fullscreen_toolbars.css | 10 +++++----- chrome/toolbars_below_content.css | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/chrome/autohide_toolbox.css b/chrome/autohide_toolbox.css index eefcf0e..6b65f4a 100644 --- a/chrome/autohide_toolbox.css +++ b/chrome/autohide_toolbox.css @@ -20,7 +20,7 @@ See the above repository for updates as well as full license text. */ } :root[sizemode="fullscreen"], -#navigator-toolbox[inFullscreen]{ margin-top: 0 !important; } +:root[sizemode="fullscreen"] #navigator-toolbox{ margin-top: 0 !important; } #navigator-toolbox{ position: fixed !important; diff --git a/chrome/overlay_fullscreen_toolbars.css b/chrome/overlay_fullscreen_toolbars.css index defb461..ff73ca2 100644 --- a/chrome/overlay_fullscreen_toolbars.css +++ b/chrome/overlay_fullscreen_toolbars.css @@ -4,16 +4,16 @@ See the above repository for updates as well as full license text. */ /* Makes toolbars appear as overlay instead of pushing down the website in fullscreen mode */ @media (-moz-bool-pref: "browser.fullscreen.autohide"){ - #navigator-toolbox[inFullscreen]{ + :root[sizemode="fullscreen"] #navigator-toolbox{ position: fixed !important; width: 100vw; z-index: 1; transition: margin-top 100ms ease-in-out 600ms; } - #navigator-toolbox[inFullscreen][style=""], - #navigator-toolbox[inFullscreen]:hover, - #navigator-toolbox[inFullscreen]:focus-within, - #mainPopupSet:has(> #appMenu-popup[panelopen="true"]) ~ #navigator-toolbox[inFullscreen]{ + :root[sizemode="fullscreen"] #navigator-toolbox[style=""], + :root[sizemode="fullscreen"] #navigator-toolbox:hover, + :root[sizemode="fullscreen"] #navigator-toolbox:focus-within, + #mainPopupSet:has(> #appMenu-popup[panelopen="true"]) ~ #navigator-toolbox{ transition-delay: 0ms; margin-top: 0 !important; } diff --git a/chrome/toolbars_below_content.css b/chrome/toolbars_below_content.css index 27c2eff..6f30060 100644 --- a/chrome/toolbars_below_content.css +++ b/chrome/toolbars_below_content.css @@ -52,8 +52,8 @@ See the above repository for updates as well as full license text. */ .panel-viewstack{ max-height: unset !important; } /* Fullscreen mode support */ - #navigator-toolbox[inFullscreen]{ margin-top: 0 !important } - #navigator-toolbox[inFullscreen][style*="margin-top"]{ visibility: collapse } + :root[sizemode="fullscreen"] #navigator-toolbox{ margin-top: 0 !important } + :root[sizemode="fullscreen"] #navigator-toolbox[style*="margin-top"]{ visibility: collapse } #fullscr-toggler{ bottom: 0; top: unset !important; } /* These three rules exist for compatibility with autohide_toolbox.css */