-
Notifications
You must be signed in to change notification settings - Fork 3
/
_typography.scss
58 lines (46 loc) · 975 Bytes
/
_typography.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@use 'vendors/vertical-rhythm-reset' as vr;
@use 'abstracts/variables' as *;
vr.$box-sizing : border-box;
vr.$font-size : 17px;
vr.$line-height : 1.4;
vr.$modular-scale: perfect-fourth;
vr.$breakpoints : null;
@include vr.reset();
:root {
font-family: $text-font-stack;
hanging-punctuation: first allow-end last;
}
h1,
h2,
h3 {
font-family: $display-font-stack; // Big headers use the display version of the font.
}
h1 {
@include vr.set($font-size: 4);
}
h2 {
@include vr.set($font-size: 3);
}
h3 {
@include vr.set($font-size: 2);
}
h4 {
@include vr.set($font-size: 1);
}
h5,
h6 {
@include vr.set($font-size: 0);
}
// Hang top-level ordered and unordered lists. https://markboulton.co.uk/journal/five-simple-steps-to-better-typography-part-2/
*:not(li)>ul,
*:not(li)>ol {
padding: 0;
list-style-position: outside;
}
address {
font-style: inherit;
}
blockquote {
@include vr.set($margin: 0, $padding-left: 0.5);
border-left: $border-thickness solid;
}