thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.04k stars 169 forks source link

card mod style in different files #370

Open kuduacz opened 3 months ago

kuduacz commented 3 months ago

Hi. i switch to yaml mode dashboard. Everything work like a charm, but have a problem with somethin. Using same ha-card background settings for few cards. is there a way to use it globally but in files? take a look. card_mod: !include ../../style/tlo.yaml work well and that file looks like: style: | ha-card { background: rgba(15, 15, 15, 0.8); /* Przezroczyste tło (szare) */ }

But have few different things like:

card_mod: style: | ha-card { background: rgba(15, 15, 15, 0.8); /* Przezroczyste tło (szare) */ } ha-card:active { transform: scale(0.975); transition: 0s; }

Can i move: ha-card { background: rgba(15, 15, 15, 0.8); /* Przezroczyste tło (szare) */ } to one file and: ha-card:active { transform: scale(0.975); transition: 0s; } to other file? and how to do it.

hope that You understand me.