From 91efcba213560eeaa67812672c60b9137e222676 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 11 Oct 2024 05:14:38 +0300 Subject: [PATCH] create hide_tabs_toolbar_v2.css --- chrome/hide_tabs_toolbar_v2.css | 51 +++++++++++++++++++++++++++++++++ html_resources/tagmap.json | 1 + tags.csv | 1 + 3 files changed, 53 insertions(+) create mode 100644 chrome/hide_tabs_toolbar_v2.css diff --git a/chrome/hide_tabs_toolbar_v2.css b/chrome/hide_tabs_toolbar_v2.css new file mode 100644 index 0000000..b2c5c18 --- /dev/null +++ b/chrome/hide_tabs_toolbar_v2.css @@ -0,0 +1,51 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar_v2.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* This requires Firefox 133+ to work */ + +@media (-moz-bool-pref: "sidebar.verticalTabs"){ + #sidebar-main{ + visibility: collapse; + } +} +@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){ + #nav-bar > .titlebar-buttonbox-container{ + order: -1 !important; + > .titlebar-buttonbox{ + flex-direction: row-reverse; + } + } +} +@media not (-moz-bool-pref: "sidebar.verticalTabs"){ + #TabsToolbar{ + visibility: collapse; + } + :root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{ + display: flex !important; + } + :root[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{ + > .titlebar-buttonbox-container{ + display: flex !important; + } + :root[sizemode="normal"] & { + > .titlebar-spacer{ + display: flex !important; + } + } + :root[sizemode="maximized"] & { + > .titlebar-spacer[type="post-tabs"]{ + display: flex !important; + } + @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"), + (-moz-gtk-csd-reversed-placement), + (-moz-platform: macos){ + > .titlebar-spacer[type="post-tabs"]{ + display: none !important; + } + > .titlebar-spacer[type="pre-tabs"]{ + display: flex !important; + } + } + } + } +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 6320a31..696978c 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -53,6 +53,7 @@ "hide_statuspanel_when_fullscreen.css":["status","fullscreen","hiding"], "hide_tabs_scrollbuttons.css":["tabs","hiding","buttons","minimal"], "hide_tabs_toolbar.css":["hiding","tabs","toolbars"], +"hide_tabs_toolbar_v2.css":["hiding","tabs","toolbars"], "hide_tabs_toolbar_osx.css":["tabs","toolbars","hiding","minimal"], "hide_tabs_toolbar_w_alltabs_button.css":["tabs","hiding","toolbars"], "hide_tabs_with_one_tab.css":["hiding","tabs","toolbars"], diff --git a/tags.csv b/tags.csv index 59e1bfc..a2a4ca5 100644 --- a/tags.csv +++ b/tags.csv @@ -52,6 +52,7 @@ grid_overflow_menu.css,popup,menu hide_statuspanel_when_fullscreen.css,status,fullscreen,hiding hide_tabs_scrollbuttons.css,tabs,hiding,buttons,minimal hide_tabs_toolbar.css,hiding,tabs,toolbars +hide_tabs_toolbar_v2.css,hiding,tabs,toolbars hide_tabs_toolbar_osx.css,tabs,toolbars,hiding,minimal hide_tabs_toolbar_w_alltabs_button.css,tabs,hiding,toolbars hide_tabs_with_one_tab.css,hiding,tabs,toolbars