From c9d94dc02275c98f02717f5e1e51b50e4a14c6bb Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 20 Mar 2019 16:19:13 +0200 Subject: [PATCH] new file --- chrome/autohide_menubar.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 chrome/autohide_menubar.css diff --git a/chrome/autohide_menubar.css b/chrome/autohide_menubar.css new file mode 100644 index 0000000..933f0a6 --- /dev/null +++ b/chrome/autohide_menubar.css @@ -0,0 +1,23 @@ +/* Makes menubar behave like on mac */ +/* Menubar will be shown when cursor touches top of the spacers on both side of tabs. Window controls will be in menubar, so they are automatically hidden */ +/* Make sure you have menubar enabled */ + +#TabsToolbar > .toolbar-items{ position: relative; z-index: 5; } +#toolbar-menubar > .titlebar-buttonbox-container{ float: right } +#TabsToolbar > .titlebar-spacer{ display: -moz-box !important; } + +#toolbar-menubar{ + --uc-menubar-height: 36px; + position: fixed; + width: 100vw; + height: var(--uc-menubar-height); + margin-top: calc(8px - var(--uc-menubar-height)); + transition: margin-top 150ms linear !important; + -moz-window-dragging: no-drag; + z-index:4; +} +#toolbar-menubar:hover{ + background-color: var(--toolbar-bgcolor) !important; + margin-top: 0px; + z-index: 6 +} \ No newline at end of file