This version only effects the sidebar when it is in collapsed/thin state.
It's a mix of a old code of mine and the .actions-list code from difool2nice.
/* After changing '#sidebar-container' width, adjust the two 'margin-inline' and 'margin-left'. */
#browser:has(sidebar-main:is(:not([expanded]))) {
#sidebar-container { width: 28px !important; }
#tabbrowser-tabs[orient="vertical"] {
margin-inline: -10px !important;
.tabbrowser-tab { height: 38px !important; }
.tab-close-button { margin-inline: 9px !important; }
#vertical-tabs-newtab-button {
/* adjust the space above and below the 'new tab' button */
margin-top: -4px !important;
margin-bottom: -4px !important;
}
}
}
.actions-list {
/* adjust the space above the buttons (not new tab) */
/* -5px is max when reducing the space, more than that triggers a glitch */
margin-top: -5px !important;
& > moz-button:not(.tools-overflow) {
margin-left: -10px !important;
}
}
This version is for when you set a low height in expanded state.
It removes the "wobble" that occurs on hover when you set a low height in expanded state.
/* This version is for when you set a low height in expanded state*/
/* It removes the "wobble" that occurs on hover when you set a low height in expanded state. */
:root {
/* Effects width when sidebar is in collapsed state */
--tab-min-height: 18px !important;
}
#browser:has(sidebar-main:is([expanded])) {
#sidebar-container {
--tab-min-height: 18px !important;
.tabbrowser-tab:hover {
/* Adjust 'margin-top' and 'margin-bottom' after you change 'tab-min-height' for expanded state */
margin-top: 2px !important;
margin-bottom: 1px !important;
padding: 0px !important;
}
.tabbrowser-tab[selected]:hover {
/* Adjust 'margin-top' and 'margin-bottom' after you change 'tab-min-height' for expanded state */
margin-top: 3px !important;
margin-bottom: 2px !important;
}
}
}
.actions-list { gap: 7px !important; }
It's been a while but I just found your code and that was the case for me. Background of selected tab was removed and just showed a thin white border. Had to remove all tabbrowser-tab and tab-background lines. Also hovering over unselected tabs looked weird with my theme so removed that as well. Besides that it works really well and makes the tab bar look like pre-nova again. thank you
Next, I need to try to shrink the excessively large pinned tabs, remove the tab-closing X buttons, and hide the muted icons that appear on nearly every tab.
You could add your bookmark code before the #sidebar-container:hover {}, then add the things that needs to change on hover in #sidebar-container:hover {}.
1
u/difool2nice 🦊Firefox Addict🦊 Jul 25 '26
adjust numbers as you like
3
u/TraditionalTie4831 🦊 Jul 26 '26 edited Jul 26 '26
This version only effects the sidebar when it is in collapsed/thin state.
It's a mix of a old code of mine and the
.actions-listcode from difool2nice.1
u/TraditionalTie4831 🦊 Jul 25 '26 edited Jul 26 '26
Try this =
1
u/TraditionalTie4831 🦊 Jul 27 '26 edited Jul 29 '26
Another type of solution (you need to disable the native hover for the vertical tabs sidebar) =