Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
feat(Elife): Responsive title typography
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcmoulton committed Apr 24, 2020
1 parent 268dd32 commit d01c883
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/themes/elife/custom-properties.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/* Typography */
--text-size-rem-small: 0.6875;
--text-size-h1--narrow-rem: 1.8125rem; /* 29px */
--text-size-h1--normal-rem: 2.25rem; /* 36px */
--letter-spacing: 0.5px;

/* Spacing */
Expand Down
12 changes: 12 additions & 0 deletions src/themes/elife/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ main {
& > :--datePublished {
text-align: center;
}

& > :--title {
font-size: var(--text-size-h1--narrow-rem);
line-height: calc(36 / 29);
}
}

@media all and (--medium-viewport) {
:--Article:not(:--reference) > :--title {
font-size: var(--text-size-h1--normal-rem);
line-height: calc(48 / 36);
}
}

/* Visually hide affiliations at narrower viewports, maintaining vertical whitespace */
Expand Down

0 comments on commit d01c883

Please sign in to comment.