Ok, iām going crazy at the moment to get a simple padding topic done.
I just want the embedded mini-graph-card to have no padding, and the other elements should have normal padding. The simple thermostat and the mini-graph-card itself work fine with the style things, but the padding does not work. I end this night with this not working code can someone give me a hint and make a suggestion what is wrong?
- type: entities
style:
.: |
ha-card {
border-radius: 15px;
background-color: rgba(220,220,220,0.5);
box-shadow: 1px 1px 2px 0px rgba(000,000,000,0.5);
font-weight: bold;
}
"#states div":
mini-graph-card:
$: |
.card-content {
padding: 0px;
}
entities:
- type: 'custom:simple-thermostat'
entity: climate.generic_thermostat_office
style: |
ha-card {
border-radius: 15px;
background-color: rgba(000,000,000,0.0);
box-shadow: 1px 1px 2px 0px rgba(000,000,000,0.0);
font-weight: bold;
--st-font-size-sensors: 21px;
--st-spacing: 2px;
}
ha-card .mode-item {
border-radius: 8px;
background: rgba(000,000,000,0.0);
color: rgba(150,150,150, 1.0);
}
ha-card .mode-item.active {
border-radius: 8px;
background: rgba(002,136,209,1.0);
}
ha-card .mode-item:hover {
border-radius: 8px;
background: rgba(220,220,220,0.5);
}
- type: custom:mini-graph-card
entities:
- entity: sensor.average_office_temperature_2h
style: |
ha-card {
border-radius: 15px;
background-color: rgba(000,000,000,0.0);
}
- type: custom:fold-entity-row
head:
type: section
label: Details
items:
- entity: climate.buro
name: Modus