mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Light state badges will turn yellow when turned on
This commit is contained in:
parent
7db8bc6423
commit
895ba6adbc
@ -34,6 +34,10 @@
|
||||
background-color: #039be5;
|
||||
}
|
||||
|
||||
state-badge[data-state=on][data-domain=light] {
|
||||
color: #fff176;
|
||||
}
|
||||
|
||||
.name, .state.text {
|
||||
text-transform: capitalize;
|
||||
font-weight: 300;
|
||||
@ -61,13 +65,11 @@
|
||||
/* filling of circle when checked */
|
||||
paper-toggle-button::shadow paper-radio-button::shadow #onRadio {
|
||||
background-color: #039be5;
|
||||
transition: background-color .2s;
|
||||
}
|
||||
|
||||
/* line when checked */
|
||||
paper-toggle-button::shadow #toggleBar[checked] {
|
||||
background-color: #039be5;
|
||||
transition: background-color .2s;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -77,6 +79,8 @@
|
||||
<state-badge
|
||||
domain="{{domain}}"
|
||||
state="{{state}}"
|
||||
data-domain="{{domain}}"
|
||||
data-state="{{state}}"
|
||||
on-click="{{editClicked}}">
|
||||
</state-badge>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user