ofc, sorry, I missed what you were trying to help me withā¦ sorry.
yes, I was figuring out how to set that margin, And color the background in 1 go.
this would set the margin
card-mod-view-yaml: |
hui-sections-view $: |
hui-view-badges {
margin-bottom: 50px !important;
background-color: yellow;
}
adding a padding to the div.badges is another way of moving that, let me give it a try
thx
edit
yers, I can see the background and padding being applied using:
hui-sections-view $:
hui-view-badges $:
ha-sortable: |
div.badges {
background: red !important;
padding-bottom: 50px !important;
}
this does not stick in Safari however, upon reload the mod is gone. Chrome does reload the mod.
changing the path to your format is more robust:
card-mod-view-yaml: |
hui-sections-view:
$:
hui-view-badges:
$:
ha-sortable: |
div.badges {
background: red !important;
padding-bottom: 50px !important;
}
btw, remarkable to note is that the sections background is also shown behind the badges background.
and, the !important can be left out I now see:
card-mod-view-yaml: |
hui-sections-view:
$:
hui-view-badges:
$:
ha-sortable: |
div.badges {
background: red;
padding-bottom: 50px;
}
works just as well
this might be even better:
card-mod-view-yaml: |
hui-sections-view:
$:
hui-view-badges:
$:
ha-sortable: |
div.badges {
background: red;
padding-bottom: 0px;
margin-bottom: -16px !important;
}
because the margin was not robust in the other mods, this seems to hold in Safari And Chrome