-
Notifications
You must be signed in to change notification settings - Fork 296
/
_typography.sass
104 lines (89 loc) · 1.9 KB
/
_typography.sass
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// This file contains the styling for making the content throughout the page,
// including fonts, paragraphs, headings and spacing among these elements.
body
font-family: var(--font-stack)
pre,
code,
kbd,
samp
font-family: var(--font-stack--monospace)
// Make fonts look slightly nicer.
body
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
// Line height from Bootstrap 4.1
article
line-height: 1.5
//
// Headings
//
h1,
h2,
h3,
h4,
h5,
h6
line-height: 1.25
font-weight: bold
border-radius: 0.5rem
margin-top: 0.5rem
margin-bottom: 0.5rem
margin-left: -0.5rem
margin-right: -0.5rem
padding-left: 0.5rem
padding-right: 0.5rem
+ p
margin-top: 0
h1
font-size: 2.5em
margin-top: 1.75rem
margin-bottom: 1rem
h2
font-size: 2em
margin-top: 1.75rem
h3
font-size: 1.5em
h4
font-size: 1.25em
h5
font-size: 1.125em
h6
font-size: 1em
small
opacity: 75%
font-size: 80%
// Paragraph
p
margin-top: 0.5rem
margin-bottom: 0.75rem
// Horizontal rules
hr.docutils
height: 1px
padding: 0
margin: 2rem 0
background-color: var(--color-background-border)
border: 0
.centered
text-align: center
// Links
a
text-decoration: underline
color: var(--color-link)
text-decoration-color: var(--color-link-underline)
&:visited
color: var(--color-link--visited)
text-decoration-color: var(--color-link-underline--visited)
&:hover
color: var(--color-link--visited--hover)
text-decoration-color: var(--color-link-underline--visited--hover)
&:hover
color: var(--color-link--hover)
text-decoration-color: var(--color-link-underline--hover)
&.muted-link
color: inherit
&:hover
color: var(--color-link--hover)
text-decoration-color: var(--color-link-underline--hover)
&:visited
color: var(--color-link--visited--hover)
text-decoration-color: var(--color-link-underline--visited--hover)