11@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" );
44 font-weight : 400 ;
55 font-style : normal;
66 font-display : swap
77}
88@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" );
1111 font-weight : 400 ;
1212 font-style : italic;
1313 font-display : swap
1414}
1515@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" );
1818 font-weight : 700 ;
1919 font-style : normal;
2020 font-display : swap
2121}
2222@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" );
2525 font-weight : 700 ;
2626 font-style : italic;
2727 font-display : swap
3838}
3939
4040: root {
41- font-size : 110 % ;
42- letter-spacing : -0.5 px ;
41+ font-size : 105 % ;
42+ letter-spacing : -0.25 px ;
4343 line-height : 1.3 ;
44- font-family : "Liberation Mono " , monospace ;
44+ font-family : "Liberation Sans " , serif ;
4545 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+ }
4660}
4761
4862body {
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 ;
5367 max-width : 600px ;
5468}
5569
@@ -89,19 +103,39 @@ li p {
89103 margin : 0 !important ;
90104}
91105
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 ;
95109 line-height : 1.5 !important ;
96110 text-decoration : underline;
97111 text-underline-offset : 0.17rem ;
98112}
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;
100132 text-decoration : none;
133+ display : block;
134+ padding : 0.25rem 0.3rem ;
101135}
102136
103137hr {
104- border-top : 1px solid # 000 ;
138+ border-top : 1px solid var ( --hr ) ;
105139}
106140
107141img {
@@ -125,14 +159,19 @@ pre code {
125159 padding : 0 !important ;
126160}
127161code : not (pre code ) {
128- color : # 000 !important ;
162+ color : var ( --fg ) !important ;
129163 font-weight : bold;
130164}
131165
132- body > nav > a : not (: first-of-type ) {
166+ body > nav {
167+ margin-bottom : 1rem ;
168+ }
169+ body > nav > button : not (: first-of-type ) {
133170 margin-left : 1ch ;
134171}
135-
172+ body > header > h1 {
173+ margin-top : 0 ;
174+ }
136175body > header > div > time {
137176 display : inline;
138177 font-size : 0.9rem ;
0 commit comments