I have created a class to have a red button for some switches when they are on, different to my general dashboard theme. It works, but the problem is, its red but stays red when off.
Somehow I need to define the off state for the same class I believe ?
This is in my template:
.red-on-off * .md-thumb:before {
background-color: Red !important;
}
In my screenshot, Kitchen TRV is what I want the switch to look like when on. Study TRV shows what I want it to look like when off. Gym TRV is what is happening with my created class .red-on-off
I got the :before from me inspecting the page in chrome. It did work but looked odd... I also didnt know you can add another argument, so thats interesting.
Its all working fine