1
1
@font-face {
2
- font-family : ' Liberation Mono' ;
3
- src : url (' /fonts/liberation-mono/LiberationMono .woff2' ) format (' woff2' ), url (' /fonts/liberation-mono/LiberationMono .woff' ) format (' woff' );
2
+ font-family : " Liberation Sans" ;
3
+ src : url (" /fonts/liberation-sans/LiberationSans-Regular .woff2" ) format (" woff2" ), url (" /fonts/liberation-sans/LiberationSans-Regular .woff" ) format (" woff" );
4
4
font-weight : 400 ;
5
5
font-style : normal;
6
6
font-display : swap
7
7
}
8
8
@font-face {
9
- font-family : ' Liberation Mono' ;
10
- src : url (' /fonts/liberation-mono/LiberationMono -Italic.woff2' ) format (' woff2' ), url (' /fonts/liberation-mono/LiberationMono -Italic.woff' ) format (' woff' );
9
+ font-family : " Liberation Sans" ;
10
+ src : url (" /fonts/liberation-sans/LiberationSans -Italic.woff2" ) format (" woff2" ), url (" /fonts/liberation-sans/LiberationSans -Italic.woff" ) format (" woff" );
11
11
font-weight : 400 ;
12
12
font-style : italic;
13
13
font-display : swap
14
14
}
15
15
@font-face {
16
- font-family : ' Liberation Mono' ;
17
- src : url (' /fonts/liberation-mono/LiberationMono -Bold.woff2' ) format (' woff2' ), url (' /fonts/liberation-mono/LiberationMono -Bold.woff' ) format (' woff' );
16
+ font-family : " Liberation Sans" ;
17
+ src : url (" /fonts/liberation-sans/LiberationSans -Bold.woff2" ) format (" woff2" ), url (" /fonts/liberation-sans/LiberationSans -Bold.woff" ) format (" woff" );
18
18
font-weight : 700 ;
19
19
font-style : normal;
20
20
font-display : swap
21
21
}
22
22
@font-face {
23
- font-family : ' Liberation Mono' ;
24
- src : url (' /fonts/liberation-mono/LiberationMono -BoldItalic.woff2' ) format (' woff2' ), url (' /fonts/liberation-mono/LiberationMono -BoldItalic.woff' ) format (' woff' );
23
+ font-family : " Liberation Sans" ;
24
+ src : url (" /fonts/liberation-sans/LiberationSans -BoldItalic.woff2" ) format (" woff2" ), url (" /fonts/liberation-sans/LiberationSans -BoldItalic.woff" ) format (" woff" );
25
25
font-weight : 700 ;
26
26
font-style : italic;
27
27
font-display : swap
38
38
}
39
39
40
40
: root {
41
- font-size : 110 % ;
42
- letter-spacing : -0.5 px ;
41
+ font-size : 105 % ;
42
+ letter-spacing : -0.25 px ;
43
43
line-height : 1.3 ;
44
- font-family : "Liberation Mono " , monospace ;
44
+ font-family : "Liberation Sans " , serif ;
45
45
tab-size : 2 ;
46
+
47
+ --fg : # 000 ;
48
+ --bg : # F8F8F0 ;
49
+ --link-fg : # 00B ;
50
+ --hr : # 000 ;
51
+ }
52
+
53
+ @media (prefers-color-scheme : dark) {
54
+ : root {
55
+ --fg : # FFF ;
56
+ --bg : # 111 ;
57
+ --link-fg : # 56A8FF ;
58
+ --hr : # FFF ;
59
+ }
46
60
}
47
61
48
62
body {
49
- color : # 000 ;
50
- background : # FFF ;
51
- margin : 1rem auto 3 rem auto ;
52
- padding : 0 0.75 rem ;
63
+ color : var ( --fg ) ;
64
+ background : var ( --bg ) ;
65
+ margin : 1rem auto;
66
+ padding : 0 ;
53
67
max-width : 600px ;
54
68
}
55
69
@@ -89,19 +103,39 @@ li p {
89
103
margin : 0 !important ;
90
104
}
91
105
92
- a , a : visited {
93
- color : # 00B ;
94
- text-decoration-color : # 00B !important ;
106
+ a : not ( button a ) , a : visited : not ( button a ) {
107
+ color : var ( --link-fg ) ;
108
+ text-decoration-color : var ( --link-fg ) !important ;
95
109
line-height : 1.5 !important ;
96
110
text-decoration : underline;
97
111
text-underline-offset : 0.17rem ;
98
112
}
99
- a : hover {
113
+ a : hover : not (button a ) {
114
+ text-decoration : none;
115
+ }
116
+
117
+ button {
118
+ border : none;
119
+ outline : none;
120
+ cursor : pointer;
121
+ color : # FFF ;
122
+ background : linear-gradient (# 0062CB, # 004085 );
123
+ border-radius : 0.15rem ;
124
+ padding : 0 ;
125
+ }
126
+ button : hover {
127
+ background : linear-gradient (# 42d100, # 309800 );
128
+ }
129
+
130
+ button a {
131
+ color : inherit;
100
132
text-decoration : none;
133
+ display : block;
134
+ padding : 0.25rem 0.3rem ;
101
135
}
102
136
103
137
hr {
104
- border-top : 1px solid # 000 ;
138
+ border-top : 1px solid var ( --hr ) ;
105
139
}
106
140
107
141
img {
@@ -125,14 +159,19 @@ pre code {
125
159
padding : 0 !important ;
126
160
}
127
161
code : not (pre code ) {
128
- color : # 000 !important ;
162
+ color : var ( --fg ) !important ;
129
163
font-weight : bold;
130
164
}
131
165
132
- body > nav > a : not (: first-of-type ) {
166
+ body > nav {
167
+ margin-bottom : 1rem ;
168
+ }
169
+ body > nav > button : not (: first-of-type ) {
133
170
margin-left : 1ch ;
134
171
}
135
-
172
+ body > header > h1 {
173
+ margin-top : 0 ;
174
+ }
136
175
body > header > div > time {
137
176
display : inline;
138
177
font-size : 0.9rem ;
0 commit comments