Read the statement by Michael Teeuw here.
CSS basics
-
First off, you need a space between the two classes
.modulename.class
is not the same as.modulename .class
These are the classes in the clock module
dateWrapper.className = "date normal medium"; timeWrapper.className = "time bright large light"; secondsWrapper.className = "dimmed"; weekWrapper.className = "week dimmed medium"
As you can see there are no individual classname assigned to the secondsWrapper, just the
dimmed
class which is used by the weekWrapper as well.If you look at timeWrapper you will se that it will get css code frome four different classes.
Bright gives the text a white color.
Large gives the text it’s font size.
And
Light gives the text the weight of the font. -
@broberg the secondsWrapper is the only sup tag so it can be accessed by
.clock sup.dimmed
-
@broberg thanks, but still not clear. The missing space is clear. So, what will be in the custom to get time in green? I’m totally lost…
-
.clock .time { Color: green; }
And as @strawberry-3-141 mentioned. Just the seconds
.clock sup.dimmed { Color: #00FFAA; }
-
@broberg ah, thanks. I was trying that, but without the space between classes. This works, perfect, thanks. I hope, I’ll once get it…
-
Have you tried to use an external Browser e.g. from your Laptop to Open your Magic Mirror Homepage ? (192.168.178.20:8080 for example) there you could use F12(developer Mode) to find out the css class names you Need