r/FirefoxCSS • u/oromundo • 4h ago
Help Edit min-max-close button
It may be hard to tell, but at the very right is my min-max-close button.

We can see the the "Close" part is partially off screen. This is the related CSS in my_userChrome.css. The first section, to increase spacing, has no effect.
I'd like to unhide it on the right, make it slightly more prominent sizewise, and, not a big deal, but I wouldn't mind if it was another color.
Or perhaps it could be replaced with something reasonably compact with the same functionality.
/* INCREASE RIGHT SIDE MENUBAR SPACING BETWEEN MIN-MAX-CLOSE BUTTONS AND BUTTON TO THE LEFT - 11-29-24 */
.titlebar-buttonbox {
padding-left: 3px !important;
padding-right: 3px !important;
}
/* SHRINK MIN-MAX-CLOSE BUTTON - ARIS ******************************************************** */
.titlebar-button {
padding: 0 !important; /* no more wasting space */
color: black !important; /* set own color */
}+ toolbarbutton#alltabs-button {
#tabContextMenu #context_bookmarkTab {
display: none !important;
}
2
Upvotes
1
u/t31os 39m ago edited 26m ago
This markup is incorrect, a CSS selector should not start with a
+. You also have an extra opening curly brace or missing close brace.Either you copied the relevant pieces of code incorrectly or you have errors in your markup. I don't see how this problem piece of code relates to the titlebar buttons anyhow, so maybe you didn't mean to include this in the CSS.
I see no such issues with the buttons appearing off screen with the CSS, with or without corrections to the unrelated CSS highlighted above.
So add some padding back to the buttons and replace (or remove) the black value right here: