Glance card - trying to make the name bold⌠(or red at this stage, but i actually want it bold)
<div class="name" title="Cat Flap"><!--?lit$203497311$-->Cat Flap</div>
Iâve tried every variant of this I can think of
e.g.
- type: glance
entities:
- entity: lock.harley_s_flap_locked_in
name: Cat Flap
fill_container: true
state_color: true
tap_action:
action: none
hold_action:
action: toggle
card_mod:
style: |
ha-card {
background: {{ 'rgba(200, 0, 0, 0.05)' if is_state('lock.harley_s_flap_locked_in', 'unlocked') else 'rgba(230, 177, 6, 0.1)' if is_state('lock.harley_s_flap_locked_in', 'locking') else 'rgba(230, 177, 6, 0.1)' if is_state('lock.harley_s_flap_locked_in', 'unlocking') else 'rgba(0, 200, 0, 0.05)'}};
style:
.entities .entity:
$: |
.name {
font-weight: red;
}
card_mod:
style: |
ha-card {
background: {{ 'rgba(200, 0, 0, 0.05)' if is_state('lock.harley_s_flap_locked_in', 'unlocked') else 'rgba(230, 177, 6, 0.1)' if is_state('lock.harley_s_flap_locked_in', 'locking') else 'rgba(230, 177, 6, 0.1)' if is_state('lock.harley_s_flap_locked_in', 'unlocking') else 'rgba(0, 200, 0, 0.05)'}};
.entities .entity:
$: |
.name {
font-weight: red;
}
But nothing seems to change the font in questionâŚ
I managed to sort the background without too much trouble, but making something bold should be easier than this