Thatās the biggest mountain to climb for me, the dark mode think afterwards seems to be a bit easier because of the example code you already provided.
which is quite fine to me, but i would like to allign vertically the slider, and i canāt figure out how to do that! I tryed many card-mod configuration, but notthing actually works
Now the only question is how to access/address this? I always struggle with that kind of āreverse engineeringā of CSS with all that shadow rooting and stuff. Itās magic!
The light/dark mode depending settings afterwards are quite easy.
I think this is a solution))
Never tested ā@mediaā by myself, probably there could be a way to define a particular CSS property dependently on dark_modeā¦
NOW we have night so dark mode is activated by default. And now it is vice versa:
dark mode: looking fine
light mode (manually choosen from profile settings):
Donāt really get it. But in the end it should be fine as long as the theme setting is set to āautomaticā.
Update: Interestingly this only happens when using mod-card! On another place I donāt need the light + dark mode settings at all cause it looks fine by default (works perfect - light and dark mode shown correctly).
ā Worth raising an issue on GitHub for mod-card?
Iāve tried everything I can think of without much success
camera_view: live
type: picture-glance
entities: []
camera_image: camera.doorbell_main_proxy
card_mod:
style:
video$: |
:host, video {
object-fit: fill !important;
}
video {
object-fit: fill !important; /* fill the whole card */
}
.: |
ha-card {
object-fit: fill !important; /* fill the whole card */
}
ha-card, video {
object-fit: fill !important; /* fill the whole card */
}
ha-card video {
object-fit: fill !important; /* fill the whole card */
}
#video {
object-fit: fill !important; /* fill the whole card */
}
video {
object-fit: fill !important; /* fill the whole card */
}
:host, video {
object-fit: fill !important;
}
There are examples for picture glance card (check the 1st post).
Since you know what a Code Inspector is you may construct a valid path to a needed element based on those examples.
Hi all, can you please let me know the correct attribute to a background colour to my vertical stack in my hui-element card.
I think the CSS element is the āhui-vertical-stack-cardā but I havenāt had any success with the correct attribute to change the background value. I have removed all the backgrounds for the child cards.
There 2 reasons to use hui-element for some card:
ā if you want to place the card into Entities card for some reason;
ā if you want to create a decluttering template for some entity-row element.
Assume you are having the 1st reason.
The āvertical-stackā does not have itās own āha-cardā element.
If the stack is placed into the Entities card (which does have the āha-cardā element) - there is a limited way to style the stack: