Skip to content

Instantly share code, notes, and snippets.

@kastaneda
Created September 1, 2021 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kastaneda/0456c7bf5fe59e87abbe086ab8e3ed66 to your computer and use it in GitHub Desktop.
Save kastaneda/0456c7bf5fe59e87abbe086ab8e3ed66 to your computer and use it in GitHub Desktop.
Firefox 91 goddamned "floating tabs" fix
/*
* Based on https://www.askvg.com/tip-new-working-method-to-restore-classic-theme-and-ui-in-firefox-91-and-later-versions/
* Modified a little for my own preferences
*/
.tab-background {
/* I'm fine with rounded top corners */
border-radius: 4px 4px 0px 0px !important;
margin-bottom: 0px !important;
}
.tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background {
background-color: color-mix(in srgb, currentColor 5%, transparent);
}
menupopup > menu, menupopup > menuitem {
padding-block: 2px !important;
}
:root {
--arrowpanel-menuitem-padding: 2px !important;
}
.titlebar-color {
color: -moz-accent-color-foreground;
background-color: -moz-accent-color;
}
#tabs-newtab-button {
/* Height is not the same as tab height */
/* Margin cannot be overriden, so I use transparent border */
border-top: 4px solid #0000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment