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

Expose headline and caption font size for card-mod #252

Merged
merged 2 commits into from
May 11, 2024

Conversation

MrBartusek
Copy link
Owner

@MrBartusek MrBartusek commented May 11, 2024

Fixes: #231

This PR adds two new CSS variables

  • --headline-font-size for text size of header (alert name)
  • --caption-font-size for caption
type: custom:meteoalarm-card
entities:
  - entity: sensor.32_weather_alert
integration: meteofrance
scaling_mode: disabled
card_mod:
  style: |
    ha-card {
      --headline-font-size: 12px;
    }

image

@MrBartusek MrBartusek linked an issue May 11, 2024 that may be closed by this pull request
@MrBartusek MrBartusek merged commit 97b254e into master May 11, 2024
6 checks passed
@MrBartusek MrBartusek deleted the 231-expose-font-size branch May 11, 2024 13:14
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

Successfully merging this pull request may close these issues.

Add font-size in card styles
1 participant