Aligned the subtitle font with the body font in the newsletter template (#20296)

REF MOM-146
- This ensures the body serif / sans-serif style is applied to the
subtitle as well
This commit is contained in:
Sanne de Vries 2024-05-30 17:48:37 +02:00 committed by GitHub
parent 1a1ca3e91d
commit e2b6d6c137
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -1079,7 +1079,7 @@ class EmailRenderer {
classes: {
title: 'post-title' + (newsletter.get('title_font_category') === 'serif' ? ` post-title-serif` : ``) + (newsletter.get('title_alignment') === 'left' ? ` post-title-left` : ``),
titleLink: 'post-title-link' + (newsletter.get('title_alignment') === 'left' ? ` post-title-link-left` : ``),
subtitle: 'post-subtitle' + (newsletter.get('title_alignment') === 'left' ? ` post-subtitle-left` : ``),
subtitle: 'post-subtitle' + (newsletter.get('body_font_category') === 'serif' ? ` post-subtitle-serif` : ``) + (newsletter.get('title_alignment') === 'left' ? ` post-subtitle-left` : ``),
meta: 'post-meta' + (newsletter.get('title_alignment') === 'left' ? ` post-meta-left` : ` post-meta-center`),
body: newsletter.get('body_font_category') === 'sans_serif' ? `post-content-sans-serif` : `post-content`
},

View File

@ -391,6 +391,11 @@ figure blockquote p {
text-align: center;
}
.post-subtitle-serif {
font-family: Georgia, serif;
letter-spacing: -0.01em;
}
.post-subtitle-left {
text-align: left;
}