Sure, search for background under the main card options here.
You’re welcome – and thank you.
Yes, you’re right. It’s one of the things I did but the problem was that I wanted the “smart” logic of MMP to size and fit the picture in the same way it does for cover art (I could’ve copied just all the attributes of the cover class but didn’t want to duplicate it, or size the image exactly).
Compare e.g.
which cuts off the picture in the same way your picture in your example is, with
which is what you get using MMP’s background option (cropped but in a different way).
But, it’s still useful if people want to have all kinds of other interesting effects and things that the background setting doesn’t cover.
I tried to set up a very “easy” thing, namely to change the border color of a state-badge inside a picture elements card. Nothing happens, and I don’t really get what I’m doing wrong.
Has anyone figured out how to use backdrop-filter css for cards? The css style is used for popups/more-info (and works great there). I wanted to use this as background for cards, bur couldn’t get it to work. Maybe it’s not possible, or am I missing something?
Now, these are 4 cards inside a stack-in-card. I do know that you need mod-card to style horizontal-stack card. But I believe stack-in-card is handled differently and doesn’t need mod-card. Hence why I use style option. Btw, the background is completely black with this code, so style options do work. Also the volume slider card itself has no background set (completely transparant). So the black is the background of stack-in-card. If I set ‘–ha-card-background’: none, then the black is completely gone and background of Lovelace shows (so volume slider cards have no background).
Btw, this is all setup inside a picture-elemente-card. Which is why I have left/top/width/height variables. To my understanding I need this styling format in order to have positions working. This format
style: |
ha-card {
height: 100vh;
width: 100vw;
}
doesn’t work when styling cards inside a picture-element if you also want to use positions (I believe).
I’m struggling to get the icon color changed, after allot of trial and error i have accomplished the code below but the icon color is now black instead of the normal blue color. Is there anyone that have the key to get this working.