Skip to content

Instantly share code, notes, and snippets.

@waimus
Last active May 2, 2024 22:50
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waimus/3209ce6fbd468fe548698000c2281d49 to your computer and use it in GitHub Desktop.
Save waimus/3209ce6fbd468fe548698000c2281d49 to your computer and use it in GitHub Desktop.
Firefox CSS tabs toolbar auto hide.
/* tab bar auto hide */
@-moz-document url(chrome://browser/content/browser.xul),
url(chrome://browser/content/browser.xhtml) {
/* show tabs toolbar when navigator-toolbox gets hovered */
#main-window:not([customizing]) #navigator-toolbox:hover #TabsToolbar {
visibility: visible !important;
opacity: 1 !important;
margin-bottom: 0px;
transition: visibility 0.1s linear, opacity 0.1s linear, margin-bottom 0.1s linear;
}
/* hide tabs toolbar when unfocused */
#main-window:not([customizing]) #TabsToolbar:not(:hover) {
visibility: collapse !important;
opacity: 0 !important;
margin-bottom: -40px;
transition: visibility 0.1s linear, opacity 0.1s linear, margin-bottom 0.1s linear;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment