It doesnât look like you did that. I meant change "remaining", "11"
to "remaining", 11
THAT doeâs the trick. Thought youâre talking of the quoted hex codes
Thank you very much, I have learned plenty
But one more question. I changed the card type to âentitiesâ. It seems to be, that the style-object changed. Now Iâm examined the froontend with the dev-tools of safari and got:
and
How do i know, what to use. I tried
- entity: sensor.ics_10
style: |
.pointer {
color:
and:
- entity: sensor.ics_10
style: |
state-badge.pointer {
color:
but nothing worked out.
Have you tried !important
? Try just plain state-badge
without .pointer
. Also try removing templating and just trying red
or something.
Share config in code block?
type: entities
title: 'MĂźllabfuhrtermine:'
entities:
- entity: sensor.ics_10
style: |
state-badge {
color:
OrangeRed !important;
}
May I ask for help accesing ha-switch element in order to remove its padding?
I know CSS basics but Iâm really struggling applying them to HA DOM structure.
I would like to remove space between switches and their labels above them:
here is how DOM looks like:
here is the code of the card:
type: entities
title: Kitchen
entities:
- entity: light.kitchen
icon: 'mdi:dome-light'
- entity: light.kitchen_worktop
type: 'custom:multiple-entity-row'
state_header: Main
toggle: true
state_color: true
entities:
- entity: light.kitchen_worktop_left
name: Left
toggle: true
- entity: light.kitchen_worktop_right
name: Right
toggle: true
- entity: light.pantry
- entity: light.dining_room_1
icon: 'mdi:globe-light'
- entity: light.dining_room_2
icon: 'mdi:globe-light'
thank you in advance
Use shadow-root styling
I explored the icon again and found this:
âpaper-item-icon-color
has it sth. to do with it?
Regards
Oh try !important
type: entities
title: 'MĂźllabfuhrtermine:'
entities:
- entity: sensor.ics_10
style: |
âpaper-item-icon-color {
color:
OrangeRed !important;
}
nothing changed
That isnât valid CSS. This is:
* {
--paper-item-icon-color:
OrangeRed !important;
}
Got it and could use it in the larger scale Thanks again
Iâm trying hard but without success:
style: |
ha-entity-toggle$:ha-switch
{
background-color:red !important;
padding: 0px !important;
}
Would you like to point me to what Iâm doing wrong?
PLease note that following syntax works:
style: |
ha-entity-toggle
{
background-color:red !important;
padding: 0px !important;
}
But Iâm not able to get on ha-switch element.
Is there any way to style the grid card? I donât like, that the h1 is without background, etc. and would like to have the shadow of the grids take away (solved), but have the whole grid hui-grid-card (including all items and h1) with background and shadowed border.
type: grid
style: |
hui-grid-card {
margin: 100px !important;
}
title: Klimaanlagen
cards:
- type: thermostat
style: |
hui-grid-card {
margin: 100px !important;
}
.type-thermostat {
box-shadow : none;
}
The margin is only a dummy-test to see if something is happening.
Anyone with some hints for me?
Yeah⌠indeed it works, for one switch out of three. Can you help with others?
What does the pipe character means? Iâm not familiar with this syntax. Is there any document I could learn from it how to apply advanced styling to HA?
Could you share your full code? You need to put it in each part.
Sorry, I donât understand. Could you restate?