Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit a08cce9

Browse files
fix - Apply golden ratio to headers
1 parent 06825b9 commit a08cce9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/headings.styl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* @group Headings */
2-
fontSize = (4.6 3.6 2.8 2.2 1.8 1.6)
3-
lineHeight = (1.2 1.25 1.3 1.35 1.5 1.4)
2+
fontSize = (4.2 3.3 2.6 2.0 1.6 1.3)
3+
lineHeight = (6.5 5.2 4.2 3.3 2.7 2.3)
4+
mgBottom = (4.4 2.7 1.7 1.1 0.7 0.4)
45
for index in (0..5)
56
h{index+1},
67
.h{index+1}
78
font-size: fontSize[index]rem
8-
font-weight: 300
9+
font-weight: 500
910
letter-spacing: -.1rem
10-
line-height: lineHeight[index]
11-
margin-bottom: golden-ratio rem
12-
margin-top: 0
11+
line-height: lineHeight[index]rem
12+
margin-bottom: mgBottom[index]rem
1313
/* @end */

0 commit comments

Comments
 (0)