Iāve messed around with different values for card-background-color and also gave paper-card-background-color a go too. Iāve tried HEX and RGBA colours. Seen a few posts trying to use just the text-divider-row card without the entities card but this seemed the best way to achieve the look by using card_mod. Thanks for any help!
Seems like a āguessingā - no wonder it make take a lot of time and may not provide a positive result (((.
Each element has a set of supported CSS-properties, some of them may be assigned to supported variables.
We should not āguessā - we should open the Code Inspector (or how is it called in a browser) and see what properties are used for an element. Check this link.
Probably you need to give a transparent background to a label (see an example with ābackground-colorā).
If you got a lot of text-divider-row in your HA setup - then probably you should use a card-mod-theme for all text-divider-row instances with a corrected style.
IMHO the background for the label should be transparent w/o any card-modā¦ But for now it could be a good workaround.
Iām now playing around with your suggestion of editing the theme rather than applying to every text-divider rowā¦but it may not work as it would affect those entities cards Iām not using with the text divider row. I will update if I figure it outā¦
UPDATE 2: Definitely need to do something at the theme level as I need to have two different colours based on LIGHT or DARK modes.
Because you are trying to apply a card-mod style to a card which DOES NOT have a ha-card element.
Read docs for card-mod on GitHub.
The card is supposed to be used inside the Entities card - which DOES have a ha-card element , so the card-mod style may be applied.
This ābrushā is not related to card-mod.
The card-mod style in the example you provided is not related to to styling the ātext-divider-rowā.
It MAY affect - nothing more.
Probably by this style you defined the ā--ha-card-backgroundā variable (undefined by default) and this variable is used then by the ātext-divider-rowā.
What you really need is:
Place the ātext-divider-rowā inside Entities card (as it supposed to be used).
Apply a card-mod style to the ātext-divider-rowā:
I found similar and its because it is an entities row item rather than a card in itself. It is designed to be used within the Entities card. I used card-mod to hide the Entities card background and then adjust the background of the Text Divider elementā¦
I opened the .js file and hardcoded the background color of my theme. Sure, I could put a var there, but I cannot find what variable is the background from the theme.yaml file. Adding the color in the format #07090e to span worked for me.
to themes yaml but it does not read it. It shows that variable with a different value. Not a programmer but why tracing back the inheritence using developer tools does not backwards influence the css? What are we missing?
I have a setup which uses the markdown card and lovelace_gen to do the title with divider line and allow the background to be transparent so anything behind shows through. Iām not a code expert so Iām not sure if this is the best way, but it works pretty well for my setup.
I use lovelace_gen so all I have to do is something like:
I am trying to load t he headers.yaml in configuration.yaml and went to two different errors:
view is not found as an intergration (following the docs for the lovelace_gen, in which the author shows that the yaml files should be called in configuration.yaml)
the 36th row content: {{ content }} returns error when I am checking the configuration before restart