Skip to content

Commit

Permalink
Reduce spacing for large paragraphs that follow headings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jul 24, 2024
1 parent 240cfa6 commit 154155b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added
### Changed

- Large paragraphs (`.tna-large-paragraph`) that follow headings and heading groups have less top margin

### Deprecated
### Removed
### Fixed
Expand Down
7 changes: 6 additions & 1 deletion src/nationalarchives/utilities/typography/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ small {
padding-top: 0;
}

+ p {
+ p,
+ .tna-large-paragraph {
margin-top: spacing.space(1);
}
}
Expand Down Expand Up @@ -422,6 +423,10 @@ small {
@include typography.font-size(22);
@include colour.colour-font("font-dark");

&:first-child {
margin-top: 0;
}

@include media.on-mobile {
@include typography.font-size(20);
}
Expand Down

0 comments on commit 154155b

Please sign in to comment.