-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_type.scss
167 lines (126 loc) · 2.43 KB
/
_type.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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/* TYPOGRAPHY */
/* FONT IMPORT */
// I use Google Fonts & Fontify for simplicity's sake. I may embed fonts manually in the future, if I see performance problems.
// I use the Rubik family for body text, and IBM Plex Mono for prefortmatted text, code examples, and blockquotes. Teko gets used for Headings.
// This setup allows typefaces to change size as you make the screen wider or smaller.
:root {
font-size: clamp(var(--min-font-size), calc(1rem + ((1vw - 7.68px) * 0.3472)), var(--max-font-size));
min-height: 0vw;
}
/* Base Styles */
body {
font-family: var(--body-font);
font-weight: 400;
line-height: 1.65;
color: var(--text-color-1);
}
p {
margin-bottom: 1.15rem;
}
strong {
font-weight: 700;
}
em {
font-style: italic;
}
/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
font-family: var(--heading-font);
font-weight: normal;
line-height: 1.15;
margin: 1.05rem 0 1.05rem;
}
h1 {
margin-top: 0;
font-size: 2.488em;
}
h2 {
font-size: 2.074em;
}
h3 {
font-size: 1.728em;
}
h4 {
font-size: 1.44em;
}
h5 {
font-size: 1.2em;
}
small, .text_small {
font-size: var(--small-text);
}
/* GENERAL ALIGNMENTS */
p,
ul,
ol,
pre,
table,
blockquote {
margin-bottom: 1.5em;
margin-top: 0em;
}
ul ul,
ol ol,
ul ol,
ol ul {
margin-bottom: 0em;
margin-top: 0em;
}
hr,
.hr {
border: 1px solid;
margin: -1px 0;
}
sub,
sup {
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* LISTS */
// All lists placed in a body of text (such as an article) must be wrapped in any element with the .content class. ie <article class="content">
// Nice, simple styling for unordered lists.
.content ul {
list-style: circle;
padding-left: 1.5em;
li {
&::marker {
color: var(--primary-color);
}
p:last-child {
margin: 0 !important;
}
}
}
.content {
ol {
list-style: decimal;
padding-left: 1.5em;
li {
&::marker {
color: var(--primary-color);
font-style: italic;
}
p:last-child {
margin: 0 !important;
}
}
}
}
/* LINKS */
a {
color: var(--primary-color);
&:hover {
color: var(--link-hover);
}
}
/* SUP & SUB */
sup, sub {
font-size: .7em;
}