This repository has been archived by the owner on Nov 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
158 lines (125 loc) · 2.72 KB
/
style.css
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
* {
box-sizing: border-box;
margin: 0;
}
:root {
--primary: #0F62FE;
--secondary: #FFFFFF;
/* Change this for overall font size*/
--minFont: 1rem;
/*Change this to adjust the letter spacing for headings*/
--hLetterSpace: -.03rem;
/* Font characteristics */
font-size:clamp(var(--minFont), calc(1rem + .1vw), 10rem);
--ratio: 1.294424;
--s0: .5rem;
/* sorry Koji, i touched it*/
--base: calc(var(--s0) * var(--ratio));
/*Small-text to allow for more control*/
--st: calc(var(--h5) * var(--ratio));
--h5: calc(var(--base) * var(--ratio));
/*()Lead-text to allow for more control*/
--lt: calc(var(--h5) * var(--ratio));
--h4: calc(var(--h5) * var(--ratio));
--h3: calc(var(--h4) * var(--ratio));
--h2: calc(var(--h3) * var(--ratio));
/*A skip size to increase the difference*/
--h1s: calc(var(--h2) * var(--ratio));
--h1: calc(var(--h1s) * var(--ratio));
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
color: #1D1D1D;
/* the last font listed is the one used */
font-family: 'Inter';
font-family: 'Roboto';
font-family; 'Public Sans';
font-family: 'Noto Sans';
letter-spacing: .01rem;
line-height: 1.6rem;
/*Change font weight for the base: Imported 100, 200, 300, 400, 500, 600, 700 */
font-weight: 300;
margin: 0;
}
header {
background-color: var(--primary);
color: #fff;
text-align: center;
padding: 1em;
}
main {
margin: 0 auto;
max-width: calc(60ch + 2em);
padding: 1em;
}
* +* {
margin-bottom: 1rem;
}
h1 {
font-weight: 600;
font-size: var(--h1);
line-height: 1.619;
letter-spacing: var(--hLetterSpace);
margin-bottom: 1rem;
}
h2 {
font-weight: 600;
font-size: var(--h2);
line-height: 1.667;
letter-spacing: var(--hLetterSpace);
margin-top: 2rem;
margin-bottom: 1rem;
}
h3 {
font-weight: 600;
font-size: var(--h3);
line-height: 1.731;
letter-spacing: var(--hLetterSpace);
margin-top: 2rem;
margin-bottom: 1rem;
}
h4 {
font-weight: 600;
font-size: var(--h4);
line-height: 1.875;
letter-spacing: var(--hLetterSpace);
margin-top: 2rem;
margin-bottom: .1rem;
margin-bottom: 1rem;
}
h5 {
font-weight: 500;
font-size: var(--h5);
margin-top: 1rem;
margin-bottom: 1rem;
}
lt {
font-weight: 300;
font-size: calc(var(--lt) + .1rem);
margin-bottom: .1rem;
margin-bottom: 1em;
}
st {
font-weight: 300;
font-size: calc(var(--st) - .25rem);
}
li + li {
margin-top: .1rem;
}
blockquote {
border-left: rgba(0,0,0,0.12) 2px solid;
margin-left: 0;
padding-left: calc(2ch + 2px);
}
footer {
background-color: rgba(0,0,0,.12);
font-size: 0.9rem;
font-weight: 200;
text-align: center;
padding: 1em;
}
article > header ~ * {
margin-top: 0.15em;
}