2020-05-22 07:13:58 +02: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 15:19:13 +01: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 */
# TabsToolbar > . toolbar-items { position : relative ; z-index : 5 ; }
2019-12-07 13:16:42 +01:00
# toolbar-menubar > . titlebar-buttonbox-container { float : right ; display : block }
2019-03-20 15:19:13 +01:00
# TabsToolbar > . titlebar-spacer { display : -moz- box !important ; }
# toolbar-menubar {
2020-05-22 08:07:26 +02:00
--uc-menubar-height : 36px ;
position : fixed ;
display : block ;
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 15:19:13 +01:00
}
2020-01-08 22:48:47 +01:00
# menubar-items { display : block ; float : left ; }
2019-03-20 15:19:13 +01:00
# toolbar-menubar : hover {
2020-05-22 08:07:26 +02:00
background-color : var ( --toolbar-bgcolor ) ! important ;
margin-top : 0px ;
z-index : 6
2019-03-20 15:19:13 +01:00
}