Read the statement by Michael Teeuw here.
Comment avoir une couleur différente du TITRE pour chaque calendrier
-
Bonjour à tous
Comment avoir une couleur différente du TITRE pour chaque calendrier (Le Brusc, Agenda Ludo, Jours Fériés), merci pour votre aide

-
@sdetweil encore merci beaucoup, ca fonctionne
-
@Mastrapi you would have to do 4 instances of the calendar module
you can have different colors of events all in one instance
-
@sdetweil J’ai fait cela

-
@Mastrapi OK, now there is a hard way, or easy way
hard way, use the developers window to get the ID assigned to each module instance
.opps it might change if the order in config.js changesthe easy way
add
classes:"....",after the module:
with a unique string for each
then in custom.css
.xxxx .module header { color: vvvv; }vvvv is the color to use
note the leading dot in both cases
-
@sdetweil Dans css j’ai renseigné cela

ou dois-je mettre classes:“???”, et que dois-je mettre à la place de ???
-
@Mastrapi sorry, typo on my part, phone knows better!
.module_header
{ module"....", position:"....", classes:"......" config:{ .... } }see here https://docs.magicmirror.builders/modules/configuration.html#module-configuration
-
-
@sdetweil Désolé je ne comprend pas

de plus si dans css j’indique une couleur, tous les calendriers auront la même couleur, non ?
-
@Mastrapi Non, vous utilisez la valeur de chaque classe pour les rendre uniques.
.PAPA .module_header { color: red; } -
@sdetweil Je suis vraiment désolé d’abuser de votre patience
Mais ca ne fonctionne pas
Regardez mon .js et mon .css
Qu’est ce qu’il ne va pas ? merci encore

-
@Mastrapi Mon erreur
.PAPA .module-header { color: xxx; }Tiret (-) au lieu de trait de soulignement (_)
Maintenant, votre .module-header
modifiera TOUS les en-têtes

-
@sdetweil encore merci beaucoup, ca fonctionne
-
S sdetweil has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login