Skip to content

Commit

Permalink
create hide_tabs_toolbar_v2.css
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOtherGuy committed Oct 11, 2024
1 parent 1d7530e commit 91efcba
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
51 changes: 51 additions & 0 deletions chrome/hide_tabs_toolbar_v2.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
}
}
1 change: 1 addition & 0 deletions html_resources/tagmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
1 change: 1 addition & 0 deletions tags.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91efcba

Please sign in to comment.