Skip to content

Instantly share code, notes, and snippets.

@josh64x2
Last active December 13, 2022 03:05
Show Gist options
  • Save josh64x2/9f3881285df62e4be542807fa8e4d2e2 to your computer and use it in GitHub Desktop.
Save josh64x2/9f3881285df62e4be542807fa8e4d2e2 to your computer and use it in GitHub Desktop.
Firefox userChrome.css for showing close button on tabs on hover and left hand side
//@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
//@-moz-document url(chrome://browser/content/browser.xul){
#TabsToolbar #tabbrowser-tabs .tabbrowser-tab:not([pinned]) .tab-close-button {
-moz-box-ordinal-group: 0 !important;
-moz-margin-start:-4px !important;
-moz-margin-end:4px !important;
}
.tabbrowser-tab:not(:hover) .tab-close-button{ display:none; }
.tabbrowser-tab:not([pinned]):hover .tab-close-button{ display:block !important; }
//}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment