Most probably easy one question but I stuck. I have no problem to style with card-mod until multiple-entity-row. ha-card do not works, nor multiple-entity-row, neither :host
I’m trying to simplify my configuration but am struggling with css as I’m a real beginner
So this is how it looks like currently:
I’d like to get the color coding from the mini-graph-card embedded in the markdown like I tried with the “Schlafzimmer” entry already.
Formatting everything as h1 cannot really be the solution, so the question is which tags do I need to use to get the four lines coloured differently?
I’m sure this has been asked, but I’ve searched for a while and can’t find it.
I’m want my badge to change color based on a binary_sensor state, but I want it to happen instantly. Right now it only updates if I refresh the app. Is it possible to force it to update immediately the way the status icon does?
Here’s an example of what I have:
- entity: binary_sensor.house
style: |
:host {
--label-badge-blue: {% if is_state('binary_sensor.house', 'on') %} red {% else %} green {% endif %};
}
Hi All, This is probably a simple question and I apologise in advance but I just can’t seem to figure its out.
I am trying to reduce the space between each of the entities and everything i have tried has not worked. I was also trying to resize the icons (just in case the larger versions were also preventing the spce from being reduced)
I’ve used card-mod to style other cards successfully, but I’ve now read (and re-read) the readme extensively and have tried to read any other relevant post in this thread, and I’m still not sure how to do the following:
I want the text of an entity in a Glance card to wrap rather than be clipped by ellipses, such that this:
becomes this:
You can see from the chrome developer tools style dialog in the second picture that I’ve manually disabled “white-space: nowrap;” to achieve a visual of what I want.
I just cannot wrap (no pun intended ) my head around how to tell card-mod to do the same thing. Any suggestions welcome at this point!
Thanks, that wasn’t quite it, but was enough of a clue that after a good night’s sleep and a fresh start this morning, I solved it. The glance card, as I have it configured, didn’t have a .name class anywhere in it (I have show_name: false in the settings). But I was able to get what I wanted to work with the white-space style applied directly to the div of the entity in question:
Hi, I can’t seem to find a solution to my problem and was hoping any of you could help. Kinda new to css so bear with me.
I’m using a multiple entity row to display multiple buttons alongside an entity.
Now I want to colour the first entity icon like this:
But when I try this with the code below, all three icons get coloured:
but both result in it finding and selecting all three state-badges,do you guys have any idea how to accomplish only selecting the most left icon?
Thanks!