Since you specified āsquare: trueā for the grid - all elements inside the grid are square, including the ārestriction-cardā. But the button inside he restriction-card is not square. To force it - apply āaspect-ratio: 1/1ā for the inserted button.
Oohhhhhh GREAT! that āaspect-ratio: 1/1ā seems to make the trick. I was already aware of this as the custom:button-card implements/offers it as native configuration option. Didnāt know itās a CSS thing Fabulous. This works, being applied to the button inside the restriction-card:
Thanks for that bonus information, I was already wondering. Will have a look at this too. Update: For now I just remove them cause the benefit of that styling is not that important and does not outperform the added complexity of using additional mod-card.
ā¦here the CSS (height setting) is applied after the card is shown, which gives an ugly card for a second or two (depending on browser/device speed) until the card is resized.
So hereās the question: how can I access the button card inside the restriction-card with the mod-card right from the beginning (to apply the height setting to the button card)? I was thinking of this, but it is not applied as it does not get down to the button-card. So a simple navigation thing is missing I guess :
Thank you very much Ildar. I learned a bit again, quite complicated to understand how to navigate down to embeeded elements/cards.
Unfortunately, the end result applying the height this way is the same (small lag when loading the view, takes one second to resize the button), probably because itās just another syntax/way (location) to apply the CSS, but the way it is applied is the same:
This was working very well without that glitch before using the restriction-card. Not sure if that can be āfixedā or worked around somehow?
Can it applied ābeforeā the card is shown at all maybe?
Sorry for late response. My glitch example is based on another view. This issue is not based on the initial/former height setting itself but the way it is applied in combination with restriction card (which now gives a delay when card-mod styles are applied). Hereās the code:
Try to simplify the code - get rid of layout etc, see if the glitch happens with a single restriction card.
And why are you using āheight: xxxā style? Earlier you said that the only reason to test with a height is a difference in heights between 2 buttons.
ā¦and after/within a second it gets updated (resized) to the final view (the look itself doesnāt matter here, itās just to show the difference and I canāt provide a video of the animation/glitch itself):
Can someone please tell me how to remove or change the plus icons of a grocery list? I donāt know what to call it, Iāve tried right clicking and inspecting. I have card mod. Im using the OurGroceries Card, and trying to make i look as close to mushroom theme as possible.
hi can somone help me how to control the size of this grid cardā¦its soo big and even panel mode is false. i want it to look small . any way around with cardmod is it possible?
Can someone provide me some guidance on how to get that āHomeā value to be a different color?
Iāve tried so many permutations. I really dont think i understand this structure as much as i need toā¦ no matter how many times I read the documentation iām just not getting it.
Hereās my latest attempt, but it might be just as far off as my first.
Iām fairly certain if someone can help me figure out how to change the styles of this value iāll be able to understand it enough to change any other kind of element by using inspect. Thank you for your help!!
Hi can somone help me to change the location of the image
I want to push the background image(the equalizer) to right (as you could see in image that its overlapping over the artwork soo pushing it right side might make things look good)
OK ā well I think i figured this out! I still dont really know WTF iām doing, but I was able to get this to work. Iāll paste the code below and how i got here, so if some kind soul wants to educate me on what these things are it would be greatly appreciated.
One of the things i learned is that, in addition to exploring the element there is this really helpful Styles modal on the right hand side of the page that provides the elements you want to change and has the details you need to update the yaml.
This first part has the ha-card pieceā¦ (That 2nd one is what i added later to control the font-size)ā¦ And i knew (or i thought to try that) because --card-secondary-font-size: 20px; was listed under the :host that was inherited from #shadow-root (open).
When you scroll down through this Styles modal you see this other block under host which has this color item: color: var(--primary-text-color);
When I clicked on that, it took me to this section of the Styles modal I get taken to ths
Changing secondary text color had the effect i was looking for, and since i linked to it from :host (with nothing inherited from shadowroot), using :host in the Yaml got me what i was looking for.
Now, I still dont know how to use the $, or the .: but I feel like iām on the right track. If anyone finds this helpful, or if anyone wants to correct or add onto this to help my (and others journies) it would be much appreciated.
I havenāt tested this, but my experience with card-mod is enough that I know you should try to set the --rgb-state-person-home color to what you want it to be. Try it at the first level (ha-card), and if it doesnāt work, start going into shadow-roots from there.
You might also want to check out card-mod helper it can help you find the correct path.
Edit: should have read the whole thread, Iād have seen that you managed to change the font color. The variable above and the card-mod helper are also avenues for you to explore if you plan on working with card-mod some more in the future
If someone could help me out with this so I can stop banging my head against my desk that would be great. Iām using Calendarific integration through HACS to create a custom sensor which shows the days until a selected holiday. Iāve had to modify a theme to get the colors to change. But I cannot for the life of me figure out how to get the font size to change.
Using card_mod I was able to change the icon size and the font style. But the size of the font will not change. (I know in my code itās set to 0px but even when I change it to 500px it only creates weird spacing between everything: