diff --git a/chrome/hide_tabs_toolbar.css b/chrome/hide_tabs_toolbar.css index c343c57..06ca022 100644 --- a/chrome/hide_tabs_toolbar.css +++ b/chrome/hide_tabs_toolbar.css @@ -1,7 +1,8 @@ /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar.css made available under Mozilla Public License v. 2.0 See the above repository for updates as well as full license text. */ -/* Hide tabs toolbar Fx65+ */ +/* Hides tabs toolbar */ +/* For OSX use hide_tabs_toolbar_osx.css instead */ /* IMPORTANT */ /* diff --git a/chrome/hide_tabs_toolbar_osx.css b/chrome/hide_tabs_toolbar_osx.css new file mode 100644 index 0000000..33056f5 --- /dev/null +++ b/chrome/hide_tabs_toolbar_osx.css @@ -0,0 +1,25 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar_osx.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Hides tabs toolbar - OSX only */ + +/* IMPORTANT */ +/* +Get window_control_placeholder_support.css +Window controls will be all wrong without it +*/ + +:root{ --uc-toolbar-height: 32px; } + +:root:not([uidensity="compact"]){ --uc-toolbar-height: 38px } + +#TabsToolbar > *{ visibility: collapse !important } + +#TabsToolbar > .titlebar-buttonbox-container{ + visibility: visible !important; + height:var(--uc-toolbar-height) !important; +} + +:root:not([inFullscreen]) #nav-bar{ + margin-top: calc(0px - var(--uc-toolbar-height)); +} diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 5acdb26..133e10f 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -94,5 +94,6 @@ "vertical_context_navigation.css":["navigation","menu","popup"], "vertical_context_navigation_v2.css":["navigation","menu","popup"], "vertical_menubar.css":["menubar","hack"], -"window_control_placeholder_support.css":["window-control","patch"] +"window_control_placeholder_support.css":["window-control","patch"], +"hide_tabs_toolbar_osx.css":["tabs","toolbars","hiding","minimal"] } diff --git a/tags.csv b/tags.csv index 0631273..331f5d1 100644 --- a/tags.csv +++ b/tags.csv @@ -94,3 +94,4 @@ vertical_context_navigation.css,navigation,menu,popup vertical_context_navigation_v2.css,navigation,menu,popup vertical_menubar.css,menubar,hack window_control_placeholder_support.css,window-control,patch +hide_tabs_toolbar_osx.css,tabs,toolbars,hiding,minimal