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:
Hi guys, Iām getting nuts trying to figure this out. I want to style the shopping list card. I managed to style the font-family and font-size but cannot get the font color to change. Inspecting the elements I get this:
Iām trying to manipulate a paper-button-row custom card.
I have an AirConditioner which I control with paper-buttons: turn on for time period, or off.
Also I have an automation to control it based on a preset.
I figured, if the automation is ON, i do not want anyone to mess around with the manual settings, so I disabled them with card-mode.
Problem, is I cannot disable only the paper-buttons, but the whole entity-row, with the icon (visual issue) and the title, which means I cannot access the state history and such.
Could someone help me please to apply my mods only on the paper-buttons?
Hi guys, I have this two styled cards working separately but I donāt know how to put them together in the same card? Thanks in advaned, any help is appreciated.
Look at your picture. This is the element, you want to style. And as suggested, this is more granular to start. If you want only style the same element, if it has a special id or class, you can narrow down afterwards.
Please always have a look in the examples in this thread, esp. in the ones from Ildar in den Link at the first post. You would see a lot (!) of examples, which give the answer directly.
@arganto but in my picture I see tons of things besides āinputā, call me idiot but I still canāt realize where you get the input thing exactly from.
I just saw it, thanks.
sorry mate, I saw 3429 posts and I didnāt even consider reading one and using the search tool didnāt help. I appreciate!
I use plenty of ācustom:stack-in-cardā with ācustom:multiple-entity-rowā and other integrated cars - and in these cards ācard_modā to colour or exchange icons or to adjust the borders.
So far this has always worked, but now it doesnāt (without me changing anything!?) The icons are not coloured, the spacing is ignored.
card_mod:
style: |
{% if ... %}
element { prop: value; }
{% endif %}
use this:
card_mod:
style: |
element {
{% if ... %}
prop: value;
{% endif %}
}
since it will let you build more complex styles.
Next, regarding using ā--card-mod-icon-xxxā.
This is not a āpure card-modā. This is a ātrickā added by card-mod - which is not obliged to work always & everywhere. See Github issues.
For styling multiple-entity-row - see post #1.
Also, multiple-entity-row is NOT supposed to be used as a separate card, it should be inside Entities card. I am not saying that it will not work. But it will have some unexpected features.
Not really sure how to combine that with the generic header-footer stylings of the header/footer post thoughā¦
do I set it on the entities card as a whole, or on the buttons in the footer?
give the fact I also have a class for the header, I suppose to would need to be on the entities card: