Update state-badge.html

Color the badge of a binary sensor on or off depending on the state
This commit is contained in:
Bart274 2016-01-12 14:25:52 +01:00
parent 78c348cb7b
commit 989845aa4b

View File

@ -31,6 +31,7 @@
/* Color the icon if light or sun is on */ /* Color the icon if light or sun is on */
ha-state-icon[data-domain=light][data-state=on], ha-state-icon[data-domain=light][data-state=on],
ha-state-icon[data-domain=switch][data-state=on], ha-state-icon[data-domain=switch][data-state=on],
ha-state-icon[data-domain=binary_sensor][data-state=on],
ha-state-icon[data-domain=sun][data-state=above_horizon] { ha-state-icon[data-domain=sun][data-state=above_horizon] {
color: #DCC91F; color: #DCC91F;
} }