you missed class: sidebar
and use custom:hui-markdown-card
- type: custom:hui-markdown-card
class: sidebar
style:
{top: 9%, left: 11.1%}
content: >
<span>{{ states('sensor.time') }}</span>
...
card-mod class in themes.yaml
.sidebar {
font-size: 1.5vw;
font-weight: 300;
opacity: 0.75;
width: 15.5vw;
height: 1px;
}
the clock is styled card-mod-card-yaml:
...
ha-markdown-element>p>span {
font-family: SF Text;
font-size: 5vw;
font-weight: 200;
margin-left: -0.3vw;
letter-spacing: -0.05vw;
}
also add “markdown fix” in ui-lovelace.yaml
# markdown fix
- type: custom:hui-element
card_type: markdown
style: {opacity: 0}
content: preload
profit