Add support/fix? for card-mod
See original GitHub issueDescribe the solution you’d like
Picture elements does not support customizing padding
in style, for that you need to use card-mod But it seems this card does not support card-mod
yet or it does not work as suppose to.
NOTE: card-mod only works on cards that contain a ha-card element. This includes almost every card which can be seen, but not e.g. conditional, entity_filter, vertical-stack, horizontal-stack, grid.
I put this configuration at the bottom of frigate-hass-card for testing purposes:
card_mod:
style: |
ha-card {
color: red;
}
As we see in image below, this card has <ha-card>
element, but card-mod styles does not inject declared styles. There is card-mod
element, but style
is empty(filled with <!---->
)
And this image below shows how it looks when it’s injected in Picture Elements card
Current situation:
What’s my goal with 0px padding:
Maybe there is easier way to do this that I can’t think of now?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
thomasloven/lovelace-card-mod: Add CSS styles to ... - GitHub
card-mod 3. Allows you to apply CSS styles to various elements of the Home Assistant frontend. Installing. hacs_badge. Install using HACS or see...
Read more >Card-mod - Add css styles to any lovelace card
🔹 Card-mod - Add css styles to any lovelace card - Dashboards & Frontend - Home Assistant Community.
Read more >card-mod-helper
card-mod -helper. A Home Assistant tool for figuring out card-mod element selectors for themes. Open Chrome DevTools by right-clicking on a card and ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dermotduffy Thank you so much for this, works flawlessly!
@peledzius Your usecase is now an example in the docs: https://github.com/dermotduffy/frigate-hass-card#using-card-mod-to-style-the-card