Skip to content

Commit 0cf1a2e

Browse files
committed
Improve headline hierarchy
Add headline specific Sass variables: ```scss $h-size-1: 1.563em !default; // ~25.008px $h-size-2: 1.25em !default; // ~20px $h-size-3: 1.125em !default; // ~18px $h-size-4: 1.0625em !default; // ~17px $h-size-5: 1.03125em !default; // ~16.5px $h-size-6: 1em !default; // ~16px ``` Fixes #2423
1 parent 52fcc60 commit 0cf1a2e

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Enhancements
44

5+
- Improve headline hierarchy and add Sass specific variables `$h-size-x`. [#2423](https://github.com/mmistakes/minimal-mistakes/issues/2423)
56
- Improve accessibility of `default` skin by increasing color contrast of text and links.
67
- Hide posts with `hidden: true` YAML front matter from appearing in listings. [#2345](https://github.com/mmistakes/minimal-mistakes/pull/2345)
78
- Add Irish (Gaeilge) localized UI text strings. [#2422](https://github.com/mmistakes/minimal-mistakes/pull/2422)

_sass/minimal-mistakes/_base.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ h6 {
3535

3636
h1 {
3737
margin-top: 0;
38-
font-size: $type-size-3;
38+
font-size: $h-size-1;
3939
}
4040

4141
h2 {
42-
font-size: $type-size-4;
42+
font-size: $h-size-2;
4343
}
4444

4545
h3 {
46-
font-size: $type-size-5;
46+
font-size: $h-size-3;
4747
}
4848

4949
h4 {
50-
font-size: $type-size-6;
50+
font-size: $h-size-4;
5151
}
5252

5353
h5 {
54-
font-size: $type-size-6;
54+
font-size: $h-size-5;
5555
}
5656

5757
h6 {
58-
font-size: $type-size-6;
58+
font-size: $h-size-6;
5959
}
6060

6161
small,

_sass/minimal-mistakes/_variables.scss

+8
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ $type-size-6: 0.75em !default; // ~12px
4343
$type-size-7: 0.6875em !default; // ~11px
4444
$type-size-8: 0.625em !default; // ~10px
4545

46+
/* headline scale */
47+
$h-size-1: 1.563em !default; // ~25.008px
48+
$h-size-2: 1.25em !default; // ~20px
49+
$h-size-3: 1.125em !default; // ~18px
50+
$h-size-4: 1.0625em !default; // ~17px
51+
$h-size-5: 1.03125em !default; // ~16.5px
52+
$h-size-6: 1em !default; // ~16px
53+
4654
/*
4755
Colors
4856
========================================================================== */

docs/_docs/18-history.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ permalink: /docs/history/
55
excerpt: "Change log of enhancements and bug fixes made to the theme."
66
sidebar:
77
nav: docs
8-
last_modified_at: 2020-03-04T16:35:36-05:00
8+
last_modified_at: 2020-03-05T12:39:27-05:00
99
toc: false
1010
---
1111

1212
## Unreleased
1313

1414
### Enhancements
1515

16+
- Improve headline hierarchy and add Sass specific variables `$h-size-x`. [#2423](https://github.com/mmistakes/minimal-mistakes/issues/2423)
1617
- Improve accessibility of `default` skin by increasing color contrast of text and links.
1718
- Hide posts with `hidden: true` YAML front matter from appearing in listings. [#2345](https://github.com/mmistakes/minimal-mistakes/pull/2345)
1819
- Add Irish (Gaeilge) localized UI text strings. [#2422](https://github.com/mmistakes/minimal-mistakes/pull/2422)

0 commit comments

Comments
 (0)