Skip to content

Commit

Permalink
Update heading spacings
Browse files Browse the repository at this point in the history
Reduce margins for lower level headings (h4-6) and reduce margins between
adjacent h2/h3. This is because the gaps were too big between sections.
  • Loading branch information
ediblecode committed Jan 29, 2018
1 parent e488058 commit 3c460d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/stylesheets/typography/_typography-headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ h1,
h2,
.h2 {
@include h2;

// sass-lint:disable no-combinators
+ h3,
+ .h3 {
margin-top: 0;
}
}

h3,
Expand Down
6 changes: 3 additions & 3 deletions src/stylesheets/typography/_typography-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,23 @@ $font-sizes: (
lh: 4 * 5,
fw: 700,
mb: $spacing-medium,
mt: $spacing-large
mt: $spacing-medium
),
// h5
3: (
fs: 4 * 5,
lh: 4 * 6,
fw: 700,
mb: $spacing-medium,
mt: $spacing-large
mt: $spacing-medium
),
// h4
4: (
fs: 4 * 6,
lh: 4 * 7,
fw: 700,
mb: $spacing-medium,
mt: $spacing-large
mt: $spacing-medium
),
// h3
5: (
Expand Down

0 comments on commit 3c460d3

Please sign in to comment.