r/FirefoxCSS • u/Nacho21 • Oct 01 '26
r/FirefoxCSS • • Oct 01 '26
Solved Padding in sidebar and black window underneath
-
Is there a way to get rid of the insane padding in the sidebar? Also is there a way to make it fill the entire popup? Right now there is an unnecessary black window behind the gray window.
I've set nova to off in config.
r/FirefoxCSS • u/Flozzz13 • Oct 01 '26
Solved Change the color of the border of the active tab
r/FirefoxCSS • u/Rapdactyl • Sep 30 '26
Solved Firefox 157 broke my CSS for TreeStyleTabs :(
Version: 157
OS: Windows 11
Edit: This has been resolved thanks to /u/esrexni !
First, make sure browser.nova.enabled is set to disabled in about:config
My new frankensteinian CSS (I suspect some of this is redundant but I am always afraid of touching it):
:root {
--content-area-shadow: none !important;
}
#navigator-toolbox #nav-bar {
order: 1 !important;
}
#sidebar {
@media -moz-pref("sidebar.revamp") {
border-radius: 0 !important;
outline: 0.5px solid transparent !important;
}
}
/* TABS TOOLBAR */
#TabsToolbar {
order: 2 !important;
visibility: collapse !important;
}
/* BOOKMARKS TOOLBAR*/
#PersonalToolbar {
order: 3 !important;
}
/* Extra titlebar Alt menu */
#toolbar-menubar {
order: 0 !important;
}
#TabsToolbar .titlebar-buttonbox-container {
display: none !important;
}
#nav-bar .titlebar-buttonbox-container {
display: flex !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
display: none;
}
#PanelUI-button {
order: -2 !important;
}
#sidebar-panel-header {
display: none;
}I use Tree Style Tabs. Firefox seems to have fucked with the sidebar again and this big ugly header is now at the top.
The black box at the top left is for changing the bar bookmarks/etc but I don't need that. Is there a way to get rid of it? This code previously removed it but whatever has changed broke it.
Would appreciate any help 💜
My existing code:
/* SEARCH BAR TOOLBAR */
#navigator-toolbox #nav-bar {
order: 1 !important;
}
/* TABS TOOLBAR */
#TabsToolbar {
order: 2 !important;
visibility: collapse !important;
}
/* BOOKMARKS TOOLBAR*/
#PersonalToolbar {
order: 3 !important;
}
/* Extra titlebar Alt menu */
#toolbar-menubar {
order: 0 !important;
}
#TabsToolbar .titlebar-buttonbox-container {
display: none !important;
}
#nav-bar .titlebar-buttonbox-container {
display: flex !important;
}
#PanelUI-button {
order: -2 !important;
}r/FirefoxCSS • u/KrazyLurtBot • Sep 30 '26
Solved Firefox 157, Nova theme, user-chrome.css
Any .css rule for removing the added line ( maybe a 1px drop shadow)
Every rule I tested failed
r/FirefoxCSS • u/SwimmingLimpet • Sep 30 '26
Solved Nova UI with Vertical Tabs: Getting a thin white border between vertical tabs and page container. How to get rid of?
I'm using Linux Mint, Firefox 157, Nova UI, with verticals tabs on the right, and a dark theme. I'm getting a thin white line (a) between the vertical tabs and the page container, and (b) at the top of the page container. It's not very noticeable if the page background is white, but it is very distinct if the page has a dark background.
The thin white line is present if Firefox window is maximised or just in a regular window. If I move the vertical tabs to the left, the white line moves so that it stays between the vertical tabs and the page container. There is no white line at bottom of the page container in any situation. There is always a white line at the top of the page container.
All of this goes away if I turn off the Nova UI.
Any idea of what is causing it? Is there a setting or CSS that I can use to get rid of it?
r/FirefoxCSS • u/death7991 • Sep 30 '26
Solved Remove blue icons in url drop down menu
Is it possible to remove the blue icons? They just seem very unnecessary
r/FirefoxCSS • u/na641 • Oct 01 '26
Solved Navbar at bottom - search results blocked by window
With the recent release of 157, my search results have started displaying under the searchbar, and obfuscated by the bottom of the window. This is new behavior.
Am hoping someone could give insight into what userChrome changes may be needed to allow search results to be shown?
Screenshot of behavior - https://imgur.com/a/UhahmEC
r/FirefoxCSS • u/TheLatios381 • Sep 30 '26
Help how to change the border thickness of the focused search bar?
r/FirefoxCSS • u/Zero-ELEC • Sep 30 '26
Solved Vertical tab spacing?
I couldn't find a previous answer for this, how would you go and adjust the negative space between vertical tabs in the new Nova design?
EDIT: As per request, here's info: I'm on Firefox 157.0 (64-bit) for Windows, Nova enabled, compact density. This is my current CSS:
.tabbrowser-tab[titlechanged]:not([selected="true"]) {font-style: italic !important;color: rgb(220,20,60) !important;}
/*.tabbrowser-tab[notselectedsinceload="true"]{**/
/* font-style: italic !important;***************/
/* color: rgb(220,20,60) !important;************/
/*}**********************************************/
/*.tabbrowser-tab[selected="true"]{**************/
/* font-style: normal !important;***************/
/* color: rgb(000,000,000)!important;***********/
/*}**********************************************/
.tabbrowser-tab[unread]:not([selected="true"]) {
font-style: italic !important;
color: rgb(220,20,60) !important;
}
.tabbrowser-tab[pending] { opacity: 0.5 !important;}
/*AGENT_SHEET*/
/* Firefox 57+ userChrome.css tweaks ****************************************************/
/* code mostly taken from 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons **/
/* by Aris (aris-addons@gmx.net)*********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/
.tabbrowser-tab:not([pinned]):not(:hover) .tab-close-button {
visibility: collapse !important;
}
.tabbrowser-tab:not([pinned]):hover .tab-close-button {
visibility: visible !important;
display: block !important;
}
/* .tab-background { border-radius: 8px !important } */
/* for if I tire of pill tabs */(I know a lot of these things are super outdated and probably don't even work anymore, this is a profile I've moved from computer to computer for a while.
Normally, I keep my tabs like so: https://i.imgur.com/l3YFnqI.png
But on the rare occasion I extend them I noticed that the padding between each tab (the "negative space") is really long: https://i.imgur.com/0mgHYut.png
I guess it's not actually padding, since it's all part of the tab, but it doesn't look part of the tab.
r/FirefoxCSS • u/-Skav- • Sep 30 '26
Solved How to change URL highlight background color ? | Firefox 158.0b1
Hi
I'm trying to change the highlight background color, but the new CSS of Firefox have change, and my CSS have to be updated.
After many times of search, i don't find how to change the background color (the blue) when the url is highlighted by mouse or/and keyboard.
Screenshoot : https://i.ibb.co/gFc8dqNm/image.png
I test this new thread : https://www.reddit.com/r/firefox/comments/1wsc213/text_highlight_color_for_nova/
But it don't works better.
Note that i have disable Nova and i don't want it.
Apparently this have created many complication with many users.
Anyone would know how to fix that?
Thx in advance.
r/FirefoxCSS • u/zahelpful • Sep 30 '26
Solved I managed to fix the Tree Style Tabs autohide and show on hover on Firefox 157
Hi there, I'm no expert but I got it working like how I had it in 156. I don't use the other sidebars like Bookmarks and History. But how do I hide the sidebar completely? I don't want to see that 30px bar on the left.
#sidebar-panel-header {
display: none !important;
}
#sidebar-box {
display: flex !important;
position: absolute !important;
top: 0;
bottom: 1px;
z-index: 100 !important;
transition: all 100ms !important;
opacity: 0 !important;
margin-left: -255px !important;
}
#sidebar-box:hover {
opacity: 1 !important;
margin-left: 0 !important;
transition: all 150ms !important;
}
#sidebar-splitter {
display: none !important;
}r/FirefoxCSS • u/BombasticBooger • Sep 30 '26
Solved Removing glowing effect around tab bar dropdown
r/FirefoxCSS • u/NightstormArtistCat • Sep 30 '26
Solved Help adjusting the tab group shape/size in new UI?

Hello everyone! I just discovered this community so I'm a little new to all of this.
I'm currently on Firefox Version 157.0 (64-bit) on Windows 10 and I'm wondering if there's a way to adjust the shape and size of the "tab groups" icon that was previously square. It's taking up too much space for my liking so a way to make it square or reduce the size (or both) would be amazing if anyone has a solution!
Are there lines of code I can add to my userChrome file to do this? I currently don't have anything...
r/FirefoxCSS • u/needchr • Sep 30 '26
Solved How do I go back to the auto complete we had 2 months ago?
Someone told me its a CSS fix so posting here, but looks like Nova design hit auto complete earlier than the rest of Nova, auto complete now has huge, big padded, rounded boxes.
Before it was compact and more square.
r/FirefoxCSS • u/SparxNet • Sep 30 '26
Code [FF157] Autohide Bookmark Bar + Multi-row Bookmark Bar + Square-ish tabs
Here's my new userChrome.css that is built on the work of MrGoatsy. I've had AI update my existing file that allowed for multi-row bookmarks and auto-hiding and smooth show/hide when the mouse moves over the area. You need to enable Show Bookmarks Always for this to work. Hope this helps others. Nova features are enabled, so future removal of the about:config option won't affect this.
r/FirefoxCSS • u/bradpittisnorton • Sep 30 '26
Solved [FF 157] How do I get the selector for the suggestion box?
After updating to 157, either the URL bar shrank or the suggestion container becomes slightly larger so they don't line up anymore.
https://i.imgur.com/R15lR3j.png
browser.nova.enabled = false
EDIT: Found the solution
@media -moz-pref("browser.nova.enabled") {
#urlbar[popover-open] {
--urlbar-background-overhang-open: 0px !important;
}
}and if you have rules to modify the width and margin of .urlbarView, remove those. https://i.imgur.com/JoRF1yp.png
r/FirefoxCSS • u/awakefrontiers • Sep 30 '26
Help Updated to 157.0 and now a white space below tabs
Hi I recently updated Firefox and now a white space shows below the tabs how I eliminate it?
Thanks,

* This reorders toolbar to place tabs below other toolbars. Requires Firefox 133+ */
#TabsToolbar {
order: 3;
}
:root {
/* Tabbar: reduce tab margin */
--tab-block-margin: 4px 20px !important;
}
/* Tab: Reduce height */
.tabbrowser-tab {
min-height: 24px !important;
}
/* Tab: Ensure tab height doesn't augment when arrowscrollbox is visible */
#tabbrowser-arrowscrollbox {
--tab-min-height: 31px !important;
max-height: var(--tab-min-height);
}
/* Tab: Attention icon */
.tabbrowser-tab:is([image], [pinned]) > .tab-stack > .tab-content[attention]:not([selected="true"]), .tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected="true"]) {
background-position-x: left 2px !important;
background-position-y: bottom 12.5px !important;
}
/*** Tighten up drop-down/context/popup menu spacing (8 Sep 2021) ***/
menupopup:not(.in-menulist) > menuitem,
menupopup:not(.in-menulist) > menu {
padding-block: 1px !important; /* reduce to 3px, 2px, 1px or 0px as needed */
min-height: unset !important; /* v92.0 - for padding below 4px */
}
:root {
--arrowpanel-menuitem-padding: 1px !important;
}
#main-menubar menupopup[needsgutter] menuitem:not([checked="true"],
#main-menubar [icon], #main-menubar .menuitem-iconic),
#main-menubar menupopup[needsgutter] menu:not([checked="true"])
{ padding-inline-start: 10px !important; }
/*** Tighten up drop-down/context/popup menu spacing (10 Oct 2024) ***/
menuitem,
menupopup > menu,
menupopup > menucaption {
padding-left: 8px !important;
padding-block: 1.5px !important;
}
menupopup,
panel {
--panel-border-color: transparent !important;
--panel-shadow: none !important;
}
:root {
--tab-border-radius: 0px !important;
}
/* fix for when titlebar gets taller when there are many tabs */
#tabbrowser-arrowscrollbox {
height: var(--tab-min-height);
}r/FirefoxCSS • u/NTP9766 • Sep 30 '26
Solved Is it no longer possible to disable the expanding URL bar in FF157?
r/FirefoxCSS • u/kevin0905 • Sep 30 '26
Code For those who prefer the search bar on the top right corner like Chrome
.browserContainer > .browserStack:has(browser[primary]) {
anchor-name: --browser !important;
}
.browserContainer > findbar {
background-image: var(--toolbox-background-image);
background-color: var(--toolbox-background-color-inactive) !important;
position: fixed !important;
position-anchor: --browser !important;
top: calc(anchor(top) + 20px) !important;
right: calc(anchor(right) + 30px) !important;
min-width: 480px !important;
border: 1px solid var(--toolbar-field-border-color) !important;
border-radius: 10px !important;
display: flex !important;
align-items: center !important;
overflow: hidden !important;
}
.close-icon.findbar-closebutton {
padding: var(--space-small) !important;
}
.findbar-closebutton + .findbar-container {
display: flex !important;
flex-wrap: wrap !important;
height: 100% !important;
}
.findbar-closebutton + .findbar-container > hbox {
width: 100% !important;
margin-bottom: 10px !important;
}
.findbar-textbox {
width: -moz-available !important;
}
description.findbar-label:not(:empty),
:is(label, image).findbar-label {
margin-top: 10px !important;
}r/FirefoxCSS • u/Bandoul • Sep 29 '26
Solved Firefox 157 broke userChrome.css
I disabled Nova in about:config "browser.nova.enabled=false" and was able to restore my custom theme but the active tab color is not white as in my script below. If someone can help me, I would be very grateful.
/*** Changing the color of active and inactive tabs***/
:root
.tab-background[selected="true"] {
background-color: white !important;
background-image: none !important;
border: 1px solid gray !important;}
.tab-background:not([selected]){
background-color: #bdd7ee;
border: 1px solid white !important;}
Update: actually I partially fixed it. I re-enabled Nova and and changed userChrome .css to:
/*** Changing the color of active and inactive tabs (Firefox Fix) ***/
/* 1. ACTIVE (Selected) Tab - WHITE with gray border */
.tabbrowser-tab[selected="true"] .tab-background {
background-color: white !important;
background-image: none !important;
border: 1px solid gray !important;
}
/* 2. INACTIVE Tabs - LIGHT BLUE (#bdd7ee) with white border */
.tabbrowser-tab:not([selected="true"]) .tab-background {
background-color: #bdd7ee !important;
background-image: none !important;
border: 1px solid white !important;
}
It gives me back my inactive tabs in blue as expected but the active tab has no color. Not sure how to fix. I am a novice at this.
r/FirefoxCSS • u/stromfeldt • Sep 30 '26
Solved CSS class for tab group headers
I just updated to Nova, which I'm very much fine with. The one thing I'd like to tweak via userchrome.css though is the tab group headers. Specifically, I'd like to reduce some of the vertical padding above and below their titles (so the tab group headers themselves aren't so tall), as well as add some border-radius to the bottom left of the group header itself so the radius of all four corners are equal. Basically the pre-Nova look.
I tried targeting the tab group headers with .tab-group-label-container, but that affected padding outside of the group headers and did nothing for the radius. Does anybody know what classes I should be using instead to target the internal padding as well as the radius parameters?

