2020-05-22 05:13:58 +00:00
/ * Source file https : / / github . com / MrOtherGuy / firefox-csshacks / tree / master / chrome / vertical_menubar . css made available under Mozilla Public License v . 2 . 0
See the above repository for updates as well as full license text . * /
2019-05-10 16:27:49 +00:00
/* Makes menubar appear vertically on the right side of the window */
/* The first element in the menubar is used to "toggle" the file-menu & friends */
/* So, if you want the menu items to be toggleable, just move one button to be before menubar items in the toolbar. If all buttons come after menubar items, then none of those will trigger menubar items. */
2020-08-08 13:24:59 +00:00
@ -moz-document url ( chrome : / / browser / content / browser . xhtml ) {
2021-11-21 06:03:05 +00:00
/* Dummy variable to support versions 94-96, can be removed when 96 lands */
: root { --lwt-frame : var ( - - lwt - accent - color ) }
2020-08-08 13:24:59 +00:00
: root : not ( [ customizing ] ) # titlebar {
position : fixed ;
display : block ;
-moz-appearance : none ! important ;
right : 0px ;
height : 100vh ;
width : 30px ;
}
: root : not ( [ customizing ] ) # navigator-toolbox { margin-top : var ( - - tab - min - height ) }
# TabsToolbar : not ( [ customizing ] ) {
position : fixed ;
display : block ;
top : 0px ;
left : 0px ;
width : 100vw ;
padding-left : 30px ! important ;
}
# TabsToolbar > . toolbar-items { max-width : calc ( 100 vw - 138 px ) }
# TabsToolbar > . titlebar-buttonbox-container {
display : block ! important ;
float : right ! important ;
}
# toolbar-menubar : not ( [ customizing ] ) {
margin-top : 40px ;
width : 30px ;
-moz-box-orient : vertical ;
-moz-box-flex : 1 ;
}
# toolbar-menubar > . titlebar-buttonbox-container , # toolbar-menubar > spacer { display : none !important ; }
# toolbar-menubar > # menubar-items { visibility : collapse }
# toolbar-menubar > . toolbarbutton-1 : first-child : hover + # menubar-items , # toolbar-menubar > # menubar-items : hover { visibility : visible }
# toolbar-menubar : not ( [ customizing ] ) # main-menubar {
-moz-box-orient : vertical ;
margin-left : -60px ;
2021-11-21 06:03:05 +00:00
background-color : var ( --lwt-frame )
2020-08-08 13:24:59 +00:00
}
: root : not ( [ inDOMFullscreen ] ) > # content-deck , : root : not ( [ inDOMFullscreen ] ) # browser { margin-right : 30 px }
}