Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

Change hover color on menus

  • 5 réponses
  • 1 a ce problème
  • 113 vues
  • Dernière réponse par Paul

more options

Hi,

I would like to change the light grey hover color on menus (e.g. yellow), see attachments, probably using userchrome.css.

Does anyone know the correct code to do this please?

Thanks in advance.

Hi, I would like to change the light grey hover color on menus (e.g. yellow), see attachments, probably using userchrome.css. Does anyone know the correct code to do this please? Thanks in advance.
Captures d’écran jointes

Solution choisie

Generally speaking, for a given selector:

some-selector:hover { background-color: yellow !important; }

If cor-el's CSS worked for the color, then:

menupopup > :is(menuitem, menu):hover {
  background-color: yellow !important;
}
Lire cette réponse dans son contexte 👍 1

Toutes les réponses (5)

more options

Try this code in userChrome.css:

menupopup > :is(menuitem, menu) {
/* color of the text */
color: yellow !important;
}

more options

Hi,

Thanks for your suggestion, but it is not the text color I want to change it is the hover colour (shown in grey in the attachments) that I want to change.

more options

Solution choisie

Generally speaking, for a given selector:

some-selector:hover { background-color: yellow !important; }

If cor-el's CSS worked for the color, then:

menupopup > :is(menuitem, menu):hover {
  background-color: yellow !important;
}
more options

Probably you already looked up the userChrome.css part?

Disclaimer: it's community-supported rather than officially supported.

If not, I have a site to get you started: https://www.userchrome.org/

more options

jscher2000,

Thank you, that was it.

Yellow was too bright, gone instead for lightskyblue, which goes well with my red theme.

Thanks again.

Modifié le par Paul