can anyone help me get the text styled on a gauge card? iāve tried literally every combination of shadow-root and non-shadow root styles i can think of and nothing works.
iāve gotten the text to move over based on some of the tips i found previously in this thread (left: 70% !important;) but as soon as i try to use the same code to change the color or size of that text, it doesnāt workā¦
i have the card-mod showing up (i think correctly), but i just canāt get the text to change any stylesā¦
Hello! I would like to change the color of the āBadgesā icon. Day is on yellow color. Night, blue. operated so far. Iāve updated (Core, Supervisor) and no longer working. can someone show a good config. thanks
For 1):
Using ha-card always styles the whole card (entities card) and the collapsable card (one of those entities).
For 2): Using the buttonStyle option either only accepts only one CSS style definition (font-size) or the syntax is not accepted. Pretty poor documentation unfortunately but a great card anyway.
@Ildar_Gabdullin you got an idea? I really should start to learn how to inspect elements and get the name I need to address themā¦
This is a wrong code.
And it is wrong from the end of 2020 at least (the time when I started learning about styling badges).
I gave you a link already.
Try a bit harder.
Hi all,
Iāve run into an interesting difficulty. When using custom:upcoming-media-card with the Plex component, I add two cards (recent movies and recent TV shows) within a custom:mod-card and then a custom:layout-card (same behaviour has been noticed when using picture-elements as base card). I then use card-mod to style each card to my liking (different styling for each card), but I end up with only the style for the second card being applied to both.
With this example, I end up with style B for both cards. It is important to note, that both cards of course use the same elements (e.g. #main.rece_poster or .rece_poster .rece_svg_poster
Anybody have an idea how to make style A stick to card A and style B stick to card B?
Hi, I am not using this card and cannot help you, unfortunately. Styling a new card is always step-by-step thing, sometimes need lots of time for tryingā¦
Hi,
This is my first time using card-mod and I have gotten the basics right.
But I am trying to hide the āpreload streamā selector of the picture entity card and I am not able to do it.
For now I have this:
I am a person who used to be a programmer 15 years ago but was never related to web programming, so my explanation & ways are a bit specific. Initially I knew nothing about CSS.
BTW, this resource I am using for studying CSS - https://www.w3schools.com, I find it very helping.
So, there is a card - let it be Entities card.
The card contains elements inside a tree-like structure.
Every node has a name.
Some subnodes are inside a special node which is called āshadow-rootā.
Here is a primitive tree:
> card
>> header
>> rows
>>> row 1
>>>> state
>>>> shadow-root
>>>>> icon
>>>>> name
...
Each node has some properties (font-size, elementās height, text color etc).
Sometimes a property on some node reflects on itās subnodes - but sometimes some subnode overrides some property.
The Code Inspector is used to show the elementsā tree & each elementās properties.
Before using card-mod you may change some property instantly in the Inspector and see if it works.
As a result you know which property should be changed for which element.
Then you should find out a path to some particular element starting from some basic node.
There are two cases for the Entities card: either your basic node is ha-card element (i.e. the card itself - then you may change card-wide properties or a title) or the basis node is root level of some row.
Use examples from the 1st post and then you will easily get the point.
Also, sometimes we have to use mod-card but this is another story.
Question: Is the custom:entity-attributes-card already investigated so it can be styled? Are you maybe using it already @Ildar_Gabdullin ?
What IĀ“m looking for:
IĀ“d like to highlight some lines (bold text), remove some empty space above the table area etc. Great card but doesnĀ“t look that great out of the box unfortunately.
Iāve been trying to reduce the amount of lovelace code I originally coded. When I first coded this I used conditional cards to change my styling. Now, I think I can use card-mod to help reduce code but Iām missing something. It nevers bolds the label, please point me in the right direction.