I use core cards wherever possible. type: entities/grid/horizontal-stack/vertical-stack.
to embed any other card, I use the custom:hui-element as the custom card that makes all possible.
Ofc card_mod styling that allows me to do anything I need with those. Adjust card margins, delete grid gaps. Even the odd mod-card to get rid of the gaps in stack cards. Works perfectly.
If I cant make it with those, I rethink my wishesā¦ There have been too many issues/incompatibility with the other cards.
Then you didnāt get the problem. Anyhow, Iām happen now with my setup and I have optimized it, to not having any card-mod now needed for this case. Card mod has unfortunately the problem, that it is sometimes assigned too late and then I have the stuttering, etc. (In some browser, devices, situations) And in this special case it was not pretty, neither to remove gaps or to add them. As said, no improvements here needed.
was the problem. Everything else is clear. So from there I was going to have a someting which is looking as the standard vertical stack but with ha-card-element and without mod-card. And this was solved by the vertical-stack-in-card.
I only referenced you, because I didnāt have any problems with vertical-stack-in card but with stack-in-card I have. And somewhere you have written the opposite, that you are not using vertical-stack-in card because you had several problems with vertical-stack-in card, and you are only using only stack-in-card because of this. Curious to read, that this is not the case anymore, and you removed stack-in-card because of problems (I had always).
BTW, not related to my topic, but only saw this in your example.
is redundant. You can card vertical-stack directly. This is the clue from mod-card.
works nicely too, thanks for the correction.
apparently we can list core vertical-stack in a core entities card. Never realized that. cool. will clean up possible other cards too
@arganto so you know I tested vertical-stack-in-card too: it still needs both the hue-element and the card_mod styling to embed it correctly in my auto-entities card:
I am having an issue after the most recent update where the text size isnāt being respected. When I open HA, the text increases on my one markdown but if I leave the tab and return, it goes back to normal. I have had this setup for a year or so and no issues until the most recent update. Here is my yaml
I just wanted to note that this set of āheightā & āmargin-topā causes the card to look strange.
Check a small example - your card is placed in a stack between two cards:
P.S. Do not bother that I removed ā#ā for a ācontentā, my post is about āheightā & āmargin-topā only.
Nothing is changed with ā#ā (except font etc for the content):
Like many of us, Iām using nested vertical/horizontal-stack cards, stack-in-cards, and mushroom cards (mostly chip and template) to assemble an overview, wellā¦view.
Is there a way to make a CSS setting apply to all elements within a dashboard or does every card-mod block have to be inserted into each separate card? My understanding is that CSS is hierarchical, but not sure how to translate that for efficient use of card-mod (e.g. place a single card-mod block in a vertical-stack that increases the font size of all elements it containts).
Here is the yaml for the card that I posted above. The Living Area text changes in size since the most recent update, where the There are currently.... text remains the same in terms of text size
- cards:
- content: |
# Living Area
style:
.: |
ha-card {
--ha-card-background: none !important;
box-shadow: none !important;
height: 20px !important;
margin-top: 15px;
color: {% if states('input_text.living_area_helper') | float > 0 %} gold {% endif %};
}
ha-markdown:
$: |
h1 {
font-size: 20px;
font-weight: bold;
font-family: Helvetica;
letter-spacing: '-0.01em';
}
type: markdown
- content: >
There {% if is_state('input_text.living_area_helper',
'0') %} are currently no lights on {% elif
is_state('input_text.living_area_helper', '1') %} is
currently {{states('input_text.living_area_helper')}}
light on {% else %} are currently
{{states('input_text.living_area_helper')}} lights on
{%
endif %}
style:
.: |
ha-card {
--ha-card-background: none !important;
box-shadow: none !important;
color: {% if states('input_text.living_area_helper') | float > 0 %} gold {% endif %};
}
ha-markdown:
$: |
h1 {
font-size: 15px;
font-weight: thin;
font-family: Helvetica;
letter-spacing: '-0.01em';
}
type: markdown