Closed Maddin1684 closed 6 months ago
Hey everyone. I have this code:
card_mod: style: | :host { --label-badge-red: {% if is_state('person.r', 'home') %} #30d158 {% else %} #ff4040 {% endif %}; }
How can I „add“ this code on top?
style: ha-state-label-badge: $: ha-label-badge: $: | .badge-container .label-badge .label span { color: blue; font-size: 6px !important; }
is this possible? Both codes together doesn’t work.
Suggest to ask similar questions in the card-mod HA community thread and use Github only for reporting bugs & proposing FRs.
Hey everyone. I have this code:
card_mod: style: | :host { --label-badge-red: {% if is_state('person.r', 'home') %} #30d158 {% else %} #ff4040 {% endif %}; }
How can I „add“ this code on top?
style: ha-state-label-badge: $: ha-label-badge: $: | .badge-container .label-badge .label span { color: blue; font-size: 6px !important; }
is this possible? Both codes together doesn’t work.