Struggling to understand how margins and padding are applied using card_mod. I’m trying to reduce the space between the icons and state value below. How is this achieved? The empty space is where the entity label would normally go, but I’ve got those blanked out as they are unnecessary.
Here is the code, nested within a decluttering template:
card_mod:
style: |
#states > * {
margin: -10px -20px -10px -10px !important;
padding-right: 0px !important;
padding-left: 0px !important;
}
ha-card {
font-size: 11px !important;
height: 20px;
secondary-font-size: 5px !important;
padding-right: 0px !important;
padding-left: 0px !important;
margin-right: 0px !important;
margin-left: 0px !important;
}
.card-header {
font-size: 15px;
margin: -20px 0px -10px !important;
height: 40px
}