-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added ability to change margin #13
Conversation
-Implemented alignment option
Have pushed another commit which implements the alignment option. Unfortunately I could not find a way to do this using flex, so used a different method. Only limitation I found with it is that one of the two variables must be set to the correct background colour:
In my tests with a few different themes, this works fine. |
thanks! |
how can I define my margin to be zero without the config option? I want to customize it per card, without relyong on the theme. I tried card-mod without any success whatsoever. any help? tks. |
stupid me was trying to fix the margins using I ended up with this: - type: entities
entities:
- type: custom:text-divider-row
text: OpenWeather
card_mod:
style: |
:host {
height: 0px;
--text-divider-margin: 0px 0px;
} note that I had to set the height to zero otherwise the margin wouldn't shrink enough. |
Added the ability to specify custom margin CSS via the 'margin' argument. If margin argument is not provided then the default '1em 0' margin CSS is used.