thank you very much @dimitri.landerloos !
this did it!
additionally, i had to move the original style below this one and now both are active (removed border and margin adjustment for the entire RGB card + removal of shadows for individual rgb icons)
I saw the cool post with many, many great examples by Ildar, but are there also example of how css templates can be/were used in HA?
I would like to play around with some of the css style templates available on codepen but I am not sure how to apply them.
I can do simple things like adjust padding, border etc.
But not sure about how to test there kinds of css styles in HA:
somehow I feel bad about adding !important, to force an override, and fear it takes even more of the system.
I’ve only a few card_mods using !important, so it is quite the surprise this long-standing mod now also needs it.
Could someone help me out on the
Energy source table?
I’m not sure if it’s possible,
But was trying to get rid of the background
Cq black color…then wanted it transparent
Did try with help of this card_mod
But ill gues i got not the correct code
after reading up here some code…
I am new to ccs styles and having a challenge identifying the primary an secondary text attributes. I would like to change font characteristics. I have attempted with the code below using card-mod. I have added the following command --primary-font-size: 10px !important; with no effect on the text font size. This is a tile card. I have had no issues with the custom button card changing the font size and color. Appreciate any assistance or guidance.
I hope that somebody can help me out with this one. I’m trying to create a new dashboard with square tiles and I was working on the Shopping list card. I did some modifications with card mod which I found on the web and in this thread. Unfortunately I’m stuck…
I would like to achieve the following:
Keep the card as a square. Add a scrollbar instead of making the card longer.
Have a border only around the first input text field instead of the items added to the list.
Have less space between the items on the list.
Unfortunately I’m not able to figure this out and I hope somebody can help me with this. Thanks in advance!
Hope it was not answered before, could not find it.
I want to apply several css mods in several selectors at the same time when 1 condition is met. I wish to avoid to have to have the same if statement for each selector. Can I normally do something like below (does not seem to work…), or i do I have to make an if statement for each selector?
I’m trying to style an entity-filter card to squeeze more entities into a smaller space. I’ve been able to get the icons and text to scale and then to get them spaced vertically using margin-top and margin-bottom (zeroed out at the moment). I’ve got two issues I’d appreciate help with.
The first has to do with entity icons under the state-badge selector. The spotify icons behave differently than the mdc-icons. adjusting state-badge height and width has the expected effect on the spotify icons. they scale and stay centered. The mdc-icons, however don’t scale or re-center and end up overlapping the state text. I can scale them down with ‘–mdc-icon-size’, but that doesn’t adjust their alignment and I get the result in the attached image.
The second issue I’d love to resolve is I cannot figure out how to adjust the spacing of the entities horizontally. I’ve tried many variants of margin-left and -right with no success.