fenix-fox/chrome/autohide_menubar.css

38 lines
1.3 KiB
CSS
Raw Normal View History

2020-05-22 05:13:58 +00:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_menubar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
2019-03-20 14:19:13 +00:00
/* 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 */
#nav-bar-customization-target,
#PanelUI-button,
#nav-bar-overflow-button,
2019-03-20 14:19:13 +00:00
#TabsToolbar > .toolbar-items{ position: relative; z-index: 5; }
2020-05-22 06:20:40 +00:00
#toolbar-menubar > spacer{ flex-grow: 1 }
#toolbar-menubar > spacer,
#toolbar-menubar > .titlebar-buttonbox-container{ order: 1000 }
2019-03-20 14:19:13 +00:00
#TabsToolbar > .titlebar-spacer{ display: -moz-box !important; }
2020-05-22 06:20:40 +00:00
#toolbar-menubar:not([customizing]){
--uc-menubar-height: 34px;
position: fixed;
2020-05-22 06:20:40 +00:00
display: flex;
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;
2019-03-20 14:19:13 +00:00
}
2020-01-08 21:48:47 +00:00
2019-03-20 14:19:13 +00:00
#toolbar-menubar:hover{
background-color: var(--toolbar-bgcolor) !important;
margin-top: 0px;
z-index: 6
}
/* This exists only for compatibility reasons with some other styles */
#navigator-toolbox{ --uc-hide-window-control-space: 0 }