Menubar alignment, close icon size
-
Does the issue occur without any files inside /chrome/ folder? No
-
Issue description, userChrome.css/userContent.css 'settings' the issue occurs with and steps to reproduce the issue: After an FF update some time ago, there is space between the menu bar and the tabs. I see the vertical distance is determined by the window minimize/fullsize/close icons, so either some function that reduces those icons' size or padding was lost, or the vertical alignment of the menu items changed from middle to top. I have appbutton hidden & all appbutton settings disabled, menubar enabled, default vertical tab placement.
-
Does the issue occur with the most recent version of CustomCSSforFx (release/test/dev build)? Current version: 4.6.2 v2; unfortunately can't remember from which version the issue appeared
-
Screenshots showing the issue (drag & drop images into this post):
-
System information
- Windows 10
- DPI 100%
- Firefox version: 133.0
- Firefox theme: default
You can increase the padding between menubar items an top window corner using this:
#main-menubar {
padding-top 2px !important;
}
You can increase the padding between menubar items an top window corner using this:
#main-menubar { padding-top 2px !important; }
Thank you! In which file should I add this? It doesn't seem to do anything if I put it in my_userChrome.css or general_variables.css.
Alternatively, is there a way to resize the window minimize/fullscreen/close icons? I found settings/.css for the tab close icons, but not the window top right icons. (If this would be a new feature rather than something I missed I'll move this to Discussions.)
EDIT: I dug around and in the end, I found my solution:
.titlebar-buttonbox-container {margin-top: -3px !important; margin-bottom:-3px !important;}
.titlebar-min {width: 40px !important;}
.titlebar-max {width: 40px !important;}
.titlebar-close {width: 40px !important;}
Now it looks more or less like I remember it from several FF updates ago.
where did you find this?
where did you find this?
If you mean which file in the CustomCSSforFx package, none: this is new code added into a custom-created file named my_userChrome.css (which is enabled at the bottom of userChrome.css).
If you mean where I found the code - I'm no pro at coding. I just ran several Google searches, and finally found multiple threads in other forums where changing the titlebar min/max/close buttonbox for various reasons was discussed. From there on it was trial & error.
Custom / additional code is meant to be added to the bottom of userChrome.css or my_userChrome.css.
Custom / additional code is meant to be added to the bottom of
userChrome.cssormy_userChrome.css.
Well, the padding-top code did not work in my_userChrome.css. But I just figured out the error in your code: there should have been a colon between parameter name and value. I now use this:
#main-menubar {
padding-top:1px !important;
padding-bottom:1px !important;
}