git ssb

0+

Grey the earthling / gkn.me.uk



Tree: 79af93866bf1186fe0a4ef8fb51c85d4eafc6628

Files: 79af93866bf1186fe0a4ef8fb51c85d4eafc6628 / static / style / tarazed.css

6869 bytesRaw
1@import "fonts/iosevka-grey/iosevka-grey.css";
2@import "fonts/iosevka-grey-mono/iosevka-grey-mono.css";
3@import "fonts/smol-emoji/smol-emoji.css";
4
5/* Colours */
6
7.month-01 {
8 --hue: 15;
9}
10.month-02 {
11 --hue: 30;
12}
13.month-03 {
14 --hue: 52;
15}
16.month-04 {
17 --hue: 82;
18}
19.month-05 {
20 --hue: 149;
21}
22.month-06 {
23 --hue: 187;
24}
25.month-07 {
26 --hue: 210;
27}
28.month-08 {
29 --hue: 246;
30}
31.month-09 {
32 --hue: 269;
33}
34.month-10 {
35 --hue: 291;
36}
37.month-11 {
38 --hue: 321;
39}
40.month-12 {
41 --hue: 352;
42}
43.thefridayfetchit {
44 --hue: 113;
45 --saturation: 48%;
46}
47.walkingdataloss {
48 --hue: 214;
49 --saturation: 17%;
50}
51
52body {
53 --saturation: 60%;
54 background-color: var(--background-color);
55 color: var(--foreground-color);
56 --background-color: hsl(var(--hue), 5%, 98%);
57 --foreground-color: hsl(var(--hue), 5%, 10%);
58 --primary-color: hsl(var(--hue), var(--saturation), 30%);
59 --primary-color-dark: hsl(var(--hue), var(--saturation), 30%);
60}
61
62@media (prefers-color-scheme: dark) {
63 body {
64 --background-color: hsl(var(--hue), 5%, 10%);
65 --foreground-color: hsl(var(--hue), 5%, 98%);
66 --primary-color: hsl(var(--hue), var(--saturation), 70%);
67 }
68}
69
70/* Typography */
71
72html {
73 font-size: max(8px, min(1em, 5vmin));
74}
75
76body {
77 font-family: "Iosevka Grey Web", "Iosevka Aile", "Smol Emoji", ui-sans-serif,
78 system-ui, sans-serif;
79 font-size: 1rem;
80 line-height: 1.5rem;
81}
82
83code,
84kbd,
85pre,
86samp {
87 font-family: "Iosevka Grey Mono Web", "Iosevka Extended", "Iosevka",
88 "Smol Emoji", ui-monospace, monospace;
89}
90
91/* Layout */
92
93*,
94*::before,
95*::after {
96 box-sizing: border-box;
97 max-width: 100%;
98}
99
100html,
101body {
102 margin: 0;
103 padding: 0;
104}
105body {
106 margin-bottom: 3rem;
107}
108
109.decoration {
110 height: 12rem; /* For some entries, the height is overridden by inline styles. */
111 background-color: var(--primary-color-dark);
112 background-position: center;
113 background-repeat: no-repeat;
114}
115.thefridayfetchit .decoration {
116 height: 18rem;
117 background-image: url("/thefridayfetchit/decoration.png");
118}
119.walkingdataloss .decoration {
120 height: 9rem;
121 background-image: url("/walkingdataloss/decoration.png");
122 background-repeat: repeat-x;
123 background-size: contain;
124}
125
126header .description {
127 font-style: italic;
128}
129
130.entry h1 {
131 max-width: min(60rem, 95vw);
132 margin-left: auto;
133 margin-right: auto;
134 text-align: center;
135}
136
137.entry main footer section {
138 max-width: min(40rem, 90vw);
139 margin-left: auto;
140 margin-right: auto;
141 margin-top: 1.5rem;
142 margin-bottom: 1.5rem;
143}
144
145.entry main footer section .series,
146.entry main footer section .byline {
147 text-align: center;
148}
149
150.entry main footer section .datestamp {
151 width: max-content;
152 margin-left: auto;
153 margin-right: auto;
154 text-align: right;
155}
156
157.entry main footer section .description {
158 text-align: center;
159 font-style: italic;
160}
161
162.entry main footer section .tags {
163 margin-top: 1.5rem;
164 margin-bottom: 1.5rem;
165 text-align: center;
166}
167.entry main footer section .tags ul {
168 display: inline;
169}
170.entry main footer section .tags li {
171 display: inline-block;
172 margin: 0;
173 margin-left: 0.75rem;
174 margin-right: 0.75rem;
175}
176
177/* Elements */
178
179.hidden {
180 display: none !important;
181}
182
183.inset {
184 float: right;
185 max-width: 49%;
186 margin-left: 2%;
187}
188
189a {
190 text-decoration: none;
191 color: var(--primary-color);
192}
193
194a,
195nav a strong {
196 text-decoration: underline;
197 text-decoration-thickness: max(1px, 0.0625rem);
198}
199
200a:hover,
201nav a:hover strong {
202 text-decoration-thickness: max(2px, 0.125rem);
203}
204
205a:focus {
206 outline: max(2px, 0.125rem) solid;
207}
208
209a:active {
210 color: var(--foreground-color);
211}
212
213address {
214 font-style: normal;
215}
216
217aside {
218 max-width: min(40rem, 90vw);
219 margin-left: auto;
220 margin-right: auto;
221 padding-left: min(10rem, 22.5vw);
222}
223
224blockquote {
225 margin-top: 1.5rem;
226 margin-bottom: 1.5rem;
227 max-width: min(30rem, 67.5vw);
228 margin-left: auto;
229 margin-right: auto;
230 border-left: max(2px, 0.125rem) solid var(--foreground-color);
231 padding-left: calc(1rem - max(2px, 0.125rem));
232}
233
234figure {
235 margin-top: 1.5rem;
236 margin-bottom: 1.5rem;
237 margin-left: auto;
238 margin-right: auto;
239}
240figcaption {
241 width: max-content;
242 max-width: min(40rem, 90vw);
243 margin-left: auto;
244 margin-right: auto;
245}
246
247h1 {
248 padding: 0;
249 margin-top: 3rem;
250 margin-bottom: 1.5rem;
251 font-size: 2.5rem;
252 line-height: 3rem;
253 max-width: min(40rem, 90vw);
254 margin-left: auto;
255 margin-right: auto;
256}
257h2 {
258 padding: 0;
259 margin-top: 1.5rem;
260 margin-bottom: 1.5rem;
261 font-size: 2rem;
262 line-height: 3rem;
263}
264h3,
265h4,
266h5,
267h6 {
268 padding: 0;
269 margin-top: 1.5rem;
270 margin-bottom: 1.5rem;
271 font-size: 1.25rem;
272 line-height: 1.5rem;
273}
274main h2,
275main h3,
276main h4,
277main h5,
278main h6 {
279 margin-top: 3rem;
280 max-width: min(40rem, 90vw);
281 margin-left: auto;
282 margin-right: auto;
283}
284
285hr {
286 margin: 0;
287 border: 0;
288 padding: 0;
289 height: 1.5rem;
290 padding-top: 0.6875rem;
291 padding-bottom: 0.6875rem;
292 background-clip: content-box;
293 background-color: var(--primary-color);
294 margin-left: auto;
295 margin-right: auto;
296}
297main hr {
298 max-width: min(40rem, 90vw);
299}
300main section hr {
301 max-width: min(20rem, 45vw);
302 background-color: var(--foreground-color);
303}
304
305img,
306object {
307 display: block;
308 max-height: 100vh;
309 margin-left: auto;
310 margin-right: auto;
311}
312a img,
313a object {
314 outline: max(1px, 0.0625rem) solid;
315 outline-offset: max(2px, 0.125rem);
316}
317a:hover img,
318a:hover object {
319 outline: max(2px, 0.125rem) solid;
320}
321
322nav {
323 margin-top: 1.5rem;
324 margin-bottom: 1.5rem;
325 max-width: min(40rem, 90vw);
326 margin-left: auto;
327 margin-right: auto;
328}
329nav h2 {
330 font-size: 1rem;
331 line-height: 1.5rem;
332 margin-top: 3rem;
333 margin-bottom: 1.5rem;
334}
335nav h2:first-child {
336 margin-top: 1.5rem;
337}
338nav li {
339 margin-left: 0;
340 list-style-type: none;
341}
342nav b {
343 font-weight: normal;
344}
345nav.menu h2 {
346 margin-top: 1.5rem;
347 margin-bottom: 0;
348}
349nav.menu ol,
350nav.menu ul {
351 margin-top: 0;
352}
353nav.menu li {
354 display: inline-block;
355 margin: 0;
356 margin-right: 1.5rem;
357}
358nav a,
359nav a > *,
360nav a > * > * {
361 display: block;
362 outline-offset: max(2px, 0.125rem);
363}
364nav a * {
365 width: max-content;
366}
367nav.menu li a {
368 display: inline;
369 outline-offset: 0;
370}
371nav > a,
372nav > a:hover,
373nav:not(.menu) a,
374nav:not(.menu) a:hover {
375 text-decoration: none;
376}
377
378ol,
379ul {
380 margin-top: 1.5rem;
381 margin-bottom: 1.5rem;
382 padding-left: 0;
383}
384main ol,
385main ul {
386 max-width: min(40rem, 90vw);
387 margin-left: auto;
388 margin-right: auto;
389}
390li {
391 margin-top: 1.5rem;
392 margin-bottom: 1.5rem;
393 margin-left: 1.5rem;
394}
395main > section ul li {
396 list-style-type: disc;
397}
398
399p {
400 margin-top: 1.5rem;
401 margin-bottom: 1.5rem;
402 max-width: min(40rem, 90vw);
403 margin-left: auto;
404 margin-right: auto;
405}
406
407pre {
408 margin-top: 1.5rem;
409 margin-bottom: 1.5rem;
410 width: min-content;
411 margin-left: auto;
412 margin-right: auto;
413}
414
415small {
416 font-size: 1rem;
417 line-height: 1.5rem;
418 width: max-content;
419 margin-left: auto;
420 margin-right: auto;
421}
422

Built with git-ssb-web