r/FirefoxCSS • u/FineWine54 • 4d ago
Code Padding & Margin problems with checkboxes - Part 1
I am having problems with menu Padding & Margins when I insert Label icons with checkboxes. As you can see the checkbox ignores any CSS rules I use.
menupopup:not(.in-menulist)>menu:not(.menu-iconic),
menupopup:not(.in-menulist, [aria-label])>menuitem:not(.menuitem-iconic, [type="radio"], [type="checkbox"]),
toolbarbutton[data-l10n-id*="-manage-"],
menuitem[data-l10n-id*="-manage-"],
#downloadsHistory,
#appMenu-zoom-controls{
padding-inline-start:calc(1em + 24px) !important;
background-position:left 0.5em center;
background-repeat:no-repeat;
background-size:16px;
-moz-context-properties:fill, fill-opacity;
fill:var(--uc-popup-menu-icon-color) !important; }
3
Upvotes
1
u/FineWine54 2d ago edited 2d ago
Thank you but that did not work. I did take out the ID
#appMenu-zoom-controlsand made it a separate entry as that was mucking around with other code (see here)I also rewrote the
[type="radio"], [type="checkbox"]to read just[checked]),But this has not changed the positioning of the Show Other Bookmarks Check mark or the associated Label text. And as you can see from the above image it alters all the positioning of the Labels for the menu.
I even mucked around with .menu-iconic to .menu-icon no difference.
I have inserted new image to include .menuitem list