mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Update state-badge.html
Color the badge of a binary sensor on or off depending on the state
This commit is contained in:
parent
78c348cb7b
commit
989845aa4b
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user