Skip to content

Instantly share code, notes, and snippets.

@TinyRaindrop
Last active March 13, 2019 20:22
Show Gist options
  • Save TinyRaindrop/9a11f4ced087d4f2ef93c1d73a5a0745 to your computer and use it in GitHub Desktop.
Save TinyRaindrop/9a11f4ced087d4f2ef93c1d73a5a0745 to your computer and use it in GitHub Desktop.
Firefox userChrome.css style: show menubar when hovering the top pixel of toolbar.
/* Show menubar on toolbar hover */
#toolbar-menubar {
-moz-window-dragging: no-drag !important;
}
/* [autohide="false] means that MenuBar is enabled in UI setting */
#toolbar-menubar[autohide="false"]:not(:hover) {
min-height: 1px !important;
}
#toolbar-menubar:not(:hover) #menubar-items,
#toolbar-menubar[autohide="false"]:not(:hover) > .titlebar-buttonbox-container{
display: none !important;
}
#toolbar-menubar[autohide="false"]:hover + #TabsToolbar > .titlebar-buttonbox-container {
visibility: hidden;
}
#toolbar-menubar[autohide="false"] + #TabsToolbar > .titlebar-buttonbox-container {
display: -moz-box !important;
margin-top: -1px;
}
#toolbar-menubar[autohide="false"] + #TabsToolbar .titlebar-spacer[type="post-tabs"] {
display: -moz-box !important;
}
/* Reduce extra padding in tabs toolbar */
.titlebar-spacer[type="post-tabs"] {
width: 10px !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment