Firefox about:addons menupopup
I am trying to change background color in Firefox's Addons page, the menu with Check for updates etc.
I got this css selector #utils-menu , but I am not able to change background color for that menupopup.
How can I do this?
I got this css selector #utils-menu , but I am not able to change background color for that menupopup.
How can I do this?
Comments
#utils-menu .popup-internal-box {background-color: [ ? ]; margin: -2px}
But still gives me default theme color. :(
In my test it worked correctly.
@-moz-document url("about:addons") { #utils-menu .popup-internal-box {background-color: [your color]; margin: -2px} }
@-moz-document url("about:addons") {
#utils-menu .popup-internal-box { background-color: #E7E8EB ; margin: -2px }
}
But still no good.
Can always try:
background-color: #E7E8EB!important;
You need use
userContent.css
Something else to try:
Thanks calico, but still doesn't work.
Really strange how this works for you but not for me.
We may need some devtools screenshots, but try adding
-moz-appearance: none;
first, like so:Still no good.
Is this what you need (screenshot below) ?
Let me know if you need something else.
Does the right side of the inspector match this screenshot?


If so, edit
menupopup, panel
and change the background and the color. Then change-moz-appearance
to none. Does your menupopup change?Also, is other style code working as expected in your userContent.css file? Observationally, the popup background in your screenshot seems darker than normal defaults.
If anyone reading has any suggestions please feel free to chime in as well, this one has me baffled.
Unfortunately, I don't have a Windows 7 computer to test, but I think your suggestions might work.
And you may not need "margin: -2px", which I used on Windows 10.
By the way, I couldn't change the color of separators on Windows 10, except using the "filter" property.
This is screenshot of what I have.
I have some code but in userChrome.css, all I have added there, worked fine.
As I am into css, would you send code for menupopup and panel so I can try?
Thanks.
edit: Ok, looked at screenshots + checked that page myself, now even more not sure because popup looks the same.
edit2: for me popup changed only when i set -moz-appearance to none so you can try something like
menupopup[style], menupopup {
-moz-appearance: none !important;
background: red !important
}
Screenshot:
A code syntax error is the only other thing I can think of. Can we see your entire userContent.css style code? If it's short you can post it here, if long use Pastebin or another similar site to link it.
Ok, so this was the cause of issue (not sure why). I had some code left from my pre-ff57 installation:
/* Flash Block */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("youtube.com"){
#theater-background { display:none !important;}
}
So if I put something after this, it doesn't work.
I added this (suggestion #1 from Joao) in front of old code:
#utils-menu .popup-internal-box {
background-color: #E7E8EB !important;
}
And now it works.
I guess all those suggestions work, just needed to put it before this old code.
I commented old code.
Thanks guys, you are awesome. :)
Just delete the namespace line
@namespace url(http://www.w3.org/1999/xhtml);
and both styles should work.Teamwork gets the job done. :)
For reference:
https://stackoverflow.com/questions/44807995/what-namespace-should-be-defined-in-firefoxs-usercontent-css