#Glance card 'name' modification

1 messages · Page 1 of 1 (latest)

spring sorrel
#

Hi,

I tried to modify glance card with card_mod tool, but I think that something is not supported or then I'm just dumb.

I have a bit limited knowledge of CSS / frontend, but tried my best. 😄

Initially just wanted to bold the header row (which appears to be a div with a class "name")

show_name: true
show_icon: false
show_state: true
type: glance
entities:
  - entity: sensor.temperature
    name: Olohuone
card_mod:
  style: |
    ha-card .name {
      color: red !important;
    }

but I cannot get that mod to trigger the specific div, no matter what I tried.

Path of that element seems to be

hui-card > hui-glance-card $ ha-card > div > div:nth-child(1) $ div.name

Is that even possible? Thanks.