Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

card mod style in different files #370

Open
kuduacz opened this issue Apr 2, 2024 · 0 comments
Open

card mod style in different files #370

kuduacz opened this issue Apr 2, 2024 · 0 comments

Comments

@kuduacz
Copy link

kuduacz commented Apr 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant