Skip to content

Instantly share code, notes, and snippets.

@willthames
Last active June 27, 2018 01:13
Show Gist options
  • Save willthames/3816e7fb7a6ce1580e83c0df0067d5d1 to your computer and use it in GitHub Desktop.
Save willthames/3816e7fb7a6ce1580e83c0df0067d5d1 to your computer and use it in GitHub Desktop.
userChrome.css
/**
https://www.reddit.com/r/firefox/comments/726p8u/multirow_tabs_firefox_ignores_mozboxflex/dngb8qf/
*/
.tabbrowser-tab:not([pinned]) {
flex-grow:1;
min-width:150px;
}
.tabbrowser-tab,.tab-background {
height:var(--tab-min-height);
}
.tab-stack {
width: 100%;
}
#tabbrowser-tabs .scrollbox-innerbox {
display: flex;
flex-wrap: wrap;
}
#tabbrowser-tabs .arrowscrollbox-scrollbox {
overflow: visible;
display: block;
}
#titlebar,#titlebar-buttonbox{
height:var(--tab-min-height) !important;
}
#titlebar{
margin-bottom:calc(var(--tab-min-height)*-1) !important;
}
#main-window[sizemode="maximized"] #titlebar{
margin-bottom:calc(6px + var(--tab-min-height)*-1) !important;
}
#main-window[sizemode="maximized"] #TabsToolbar{
margin-left:var(--tab-min-height);
}
#titlebar:active{
margin-bottom:0 !important;
}
#titlebar:active #titlebar-content{
margin-bottom:var(--tab-min-height) !important;
}
#tabbrowser-tabs .scrollbutton-up,#tabbrowser-tabs .scrollbutton-down,#alltabs-button{
display: none;
}
/**
https://www.reddit.com/r/firefox/comments/731vz1/userchromecss_hack_for_showing_close_button_on/dnn16rx/
*/
.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