-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
100 lines (90 loc) · 2.01 KB
/
main.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
/* defining variable font roman */
@font-face {
font-family: 'PlexSansVar';
src: url('fonts/IBMPlexSansVar-Roman.woff2') format('woff2-variations'),
url('fonts/IBMPlexSans-Text.woff2') format('woff2');
font-weight: 125 950;
font-stretch: 75% 125%;
font-style: normal;
}
/* defining variable font italic, yes the same font-family */
@font-face {
font-family: 'PlexSansVar';
src: url('fonts/IBMPlexSansVar-Italic.woff2') format('woff2-variations'),
url('fonts/IBMPlexSans-Italic.woff2') formart('woff2');
font-weight: 50 950;
font-stretch: 75% 125%;
font-style: italic;
}
/* fallback to browsers that don't support variable fonts and need bold */
@font-face {
font-family: 'PlexSansVar';
src: url('fonts/IBMPlexSansVar-Roman.woff2') format('woff2-variations'),
url('fonts/IBMPlexSans-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
}
:root {
--border-radius: 6px;
--card-height: 12.5vw;
--card-width: 13vw;
--theme-editor-width: 20vw;
--margin-top: 3vw;
}
html {
font-size: 14px;
}
@media screen and (min-width: 320px) {
html {
font-size: 16px;
}
}
@media screen and (min-width: 1000px) {
html {
font-size: 22px;
}
}
body {
font-family: 'PlexSansVar', system-ui, -apple-system;
margin: 2vw;
background-color: #252526;
color: white;
}
a:active {
color: white;
}
a:visited {
color: white;
}
a:link {
color: white;
}
h1 {
font-size: 2.5rem;
font-variation-settings: 'wght' 200;
margin-top: 0;
margin-bottom: 0;
}
h2 {
font-size: 2rem;
font-variation-settings: 'wght' 100;
margin-top: 0;
margin-bottom: 0;
}
h3 {
font-size: 1rem;
font-variation-settings: 'wght' 200;
margin-top: .5ex;
margin-bottom: 1ex;
}
span {
font-size: .7rem;
font-variation-settings: 'wght' 100;
margin-top: .5ex;
margin-bottom: 1ex;
}
summary {
font-style: italic;
font-size: .7rem;
font-variation-settings: 'wght' 300;
}