From 3f6f6d376ff1fa888e47985649105fc4743f5438 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 25 Jan 2024 22:00:44 +0200 Subject: [PATCH] create overlay_fullscreen_toolbars.css --- chrome/overlay_fullscreen_toolbars.css | 18 ++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 chrome/overlay_fullscreen_toolbars.css diff --git a/chrome/overlay_fullscreen_toolbars.css b/chrome/overlay_fullscreen_toolbars.css new file mode 100644 index 0000000..a09f1af --- /dev/null +++ b/chrome/overlay_fullscreen_toolbars.css @@ -0,0 +1,18 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/overlay_fullscreen_toolbars.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +@media (-moz-bool-pref: "browser.fullscreen.autohide"){ + #navigator-toolbox[inFullscreen]{ + 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]{ + transition-delay: 0ms; + margin-top: 0 !important; + } +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 6066abb..b426c23 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -166,5 +166,6 @@ "window_control_force_linux_system_style.css":["window-control","buttons","icon"], "window_control_placeholder_support.css":["window-control","patch"], "vertical_tabs.css":["tabs","hack"], -"bookmarks_below_content.css":["bookmarks","toolbars"] +"bookmarks_below_content.css":["bookmarks","toolbars"], +"overlay_fullscreen_toolbars.css":["toolbars","fullscreen"] } diff --git a/tags.csv b/tags.csv index 1010437..9dbf9ad 100644 --- a/tags.csv +++ b/tags.csv @@ -166,3 +166,4 @@ window_control_force_linux_system_style.css,window-control,buttons,icon window_control_placeholder_support.css,window-control,patch vertical_tabs.css,tabs,hack bookmarks_below_content.css,bookmarks,toolbars +overlay_fullscreen_toolbars.css,toolbars,fullscreen