From d7db6f8d78b495ceff867d10431c2ee197777521 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Tue, 25 Feb 2020 21:27:15 +0200 Subject: [PATCH] new file --- chrome/toggle_tabs_toolbar_with_alt.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 chrome/toggle_tabs_toolbar_with_alt.css diff --git a/chrome/toggle_tabs_toolbar_with_alt.css b/chrome/toggle_tabs_toolbar_with_alt.css new file mode 100644 index 0000000..f625c22 --- /dev/null +++ b/chrome/toggle_tabs_toolbar_with_alt.css @@ -0,0 +1,15 @@ +/* Show tabs toolbar with Alt-key. Menubar must be disabled for this to work */ + +#titlebar { -moz-appearance: none !important } +:root[tabsintitlebar][sizemode="maximized"]{ padding-top: 8px !important; } +#titlebar:not(:hover) > #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar { visibility: collapse } + +/* Behavior 1 - Alt-key toggles menubar as normal */ +#titlebar:hover > #toolbar-menubar[autohide="true"]{ height: calc(var(--tab-min-height) + var(--space-above-tabbar) - var(--tabs-navbar-shadow-size)) !important; } + +/* Behavior 2 - Alt-key only shows tabs toolbar */ +/* To show window controls, hit Alt again while cursor is over tabs toolbar */ +/* +#toolbar-menubar[autohide]:not([inactive]), +#toolbar-menubar[autohide="true"]:not([inactive]) + #TabsToolbar > .titlebar-buttonbox-container{ visibility: collapse !important } +*/ \ No newline at end of file