Skip to content

Changement (inversion) des couleurs dans un menu #586

Answered by Raphwit
Guillaume31a asked this question in Q&A
Discussion options

You must be logged in to vote

Mes excuses, je n'ai pas été assez précis pour le code CSS, il faut remplacer le code à l'intérieur de l'acteur par celui-ci :

<style>

 .synapps-ui .actor button.myClass:hover {
   background-color: blue !important;
   color: white !important;
 }
</style>

Cela devrait fonctionner !

Voila un acteur HTML qui permet de changer le background et la couleur de texte au survol :

SYNAPPS-STUDIO-ACTOR|{"type":"display/html","key":"html1","properties":{"content":"<style>\n\n  .synapps-ui .actor button.{{myClass}}:hover {\n    background-color: {{bg_color}} !important;\n    color: {{text_color}} !important;\n  }\n</style>","cursor":"pointer"},"additionalDefs":{"myClass":{"type":"text"},"bg_color":…

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@Guillaume31a
Comment options

@Raphwit
Comment options

Raphwit Apr 26, 2023
Collaborator

@Guillaume31a
Comment options

@Raphwit
Comment options

Raphwit Apr 26, 2023
Collaborator

Answer selected by Guillaume31a
@Guillaume31a
Comment options

@Guillaume31a
Comment options

@Raphwit
Comment options

Raphwit Apr 27, 2023
Collaborator

@Guillaume31a
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants