r/FirefoxCSS • u/homededro • 15h ago
Help Only show close button on tabs when hovering with the mouse
Before one of the recent updates I had:
.tabbrowser-tab:not([pinned]) .tab-close-button {display: none !important;}
.tabbrowser-tab:not([pinned]):hover .tab-close-button {display: flex !important;}
Now it doesn't seem to work. Now the close button will only show if I click on the tab for like a split second.
Thanks.
1
Upvotes
2
u/sifferedd FF/TB/Win11/SUMO contributor 14h ago
Your code works for me on a new FF v161.0 profile. Try it alone.
2
u/jas71 11h ago
.tabbrowser-tab:not([pinned]):not(:hover) .tab-close-button { display: none !important; }
this is what i use
1
u/bobo779256 11h ago
Second line add inline- before flex, work in my css
display: inline-flex !important
1
u/Jay33721 10h ago
I have this in my CSS:
1
u/SnillyWead 9h ago
I have this:
/* 4. Smart Close Button Logic (Show only on active tab or hover) */
.tabbrowser-tab:not([selected]):not([pinned]) .tab-close-button {
visibility: hidden !important;
}
.tabbrowser-tab:not([selected]):not([pinned]):hover .tab-close-button {
visibility: visible !important;
display: inline-flex !important;
}
.tabbrowser-tab[selected]:not([pinned]) .tab-close-button {
visibility: visible !important;
display: inline-flex !important;
}
1
u/ResurgamS13 8h ago
Also try MrOtherGuy's userstyle 'tab_close_button_always_on_hover.css'.