@intergrav/dev.css 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +242 -228
- package/addon/header-oneline.css +21 -22
- package/addon/header-sticky.css +18 -17
- package/addon/scroll-to-top.js +25 -25
- package/dev.css +527 -527
- package/package.json +31 -31
- package/theme/boilerplate.user.css +30 -30
- package/theme/catppuccin-frappe.user.css +26 -26
- package/theme/catppuccin-macchiato.user.css +26 -26
- package/theme/catppuccin-mocha.user.css +26 -26
- package/theme/day.user.css +26 -26
- package/theme/night.user.css +26 -26
- package/theme/terminal.user.css +29 -29
package/dev.css
CHANGED
|
@@ -1,527 +1,527 @@
|
|
|
1
|
-
/* dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
|
|
2
|
-
/* about: tiny, simple, classless CSS framework in the style of Vercel's Geist design system */
|
|
3
|
-
|
|
4
|
-
/* table of contents
|
|
5
|
-
1. configurable variables
|
|
6
|
-
2. color scheme
|
|
7
|
-
3. css reset
|
|
8
|
-
4. margins for most elements
|
|
9
|
-
5. typography
|
|
10
|
-
6. document
|
|
11
|
-
7. blockquotes
|
|
12
|
-
8. buttons and inputs
|
|
13
|
-
9. code and keyboards
|
|
14
|
-
10. details
|
|
15
|
-
11. description lists
|
|
16
|
-
12. horizontal rules
|
|
17
|
-
13. fieldsets
|
|
18
|
-
14. tables
|
|
19
|
-
15. lists
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/* 1. configurable variables */
|
|
23
|
-
/* adjustable by you! see ./theme/boilerplate.user.css */
|
|
24
|
-
:root {
|
|
25
|
-
/* font families */
|
|
26
|
-
--dc-font: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
|
|
27
|
-
--dc-font-mono: "Geist Mono", ui-monospace, "Cascadia Code", "Source Code Pro",
|
|
28
|
-
Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
29
|
-
|
|
30
|
-
/* light/dark colors */
|
|
31
|
-
--dc-cs: light dark; /* light and dark scrollbars, inputs, etc */
|
|
32
|
-
--dc-tx-1: light-dark(#171717, #ededed); /* primary text */
|
|
33
|
-
--dc-tx-2: light-dark(#666, #a1a1a1); /* secondary text */
|
|
34
|
-
--dc-bg-1: light-dark(#fff, #0a0a0a); /* primary background */
|
|
35
|
-
--dc-bg-2: light-dark(#fafafa, #000); /* secondary background */
|
|
36
|
-
--dc-bg-3: light-dark(#ebebeb, #2e2e2e); /* border */
|
|
37
|
-
--dc-lk-1: light-dark(#005ff2, #47a8ff); /* link text */
|
|
38
|
-
--dc-lkb-1: light-dark(#006bff, #006efe); /* link button */
|
|
39
|
-
--dc-lkb-2: light-dark(#0059ec, #005be7); /* link button hover */
|
|
40
|
-
--dc-lkb-tx: light-dark(#fff, #fff); /* text over link button */
|
|
41
|
-
--dc-ac-1: light-dark(#a000f8, #9440d5); /* accent color */
|
|
42
|
-
--dc-ac-tx: light-dark(#fff, #fff); /* text over accent color */
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* 2. color scheme */
|
|
46
|
-
:root {
|
|
47
|
-
color-scheme: var(--dc-cs);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* 3. css reset */
|
|
51
|
-
/* modified from https://www.joshwcomeau.com/css/custom-css-reset */
|
|
52
|
-
*,
|
|
53
|
-
*::before,
|
|
54
|
-
*::after {
|
|
55
|
-
box-sizing: border-box;
|
|
56
|
-
margin: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
img,
|
|
60
|
-
picture,
|
|
61
|
-
video,
|
|
62
|
-
canvas,
|
|
63
|
-
svg {
|
|
64
|
-
display: block;
|
|
65
|
-
max-width: 100%;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
input,
|
|
69
|
-
button,
|
|
70
|
-
textarea,
|
|
71
|
-
select {
|
|
72
|
-
font: inherit;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
p,
|
|
76
|
-
h1,
|
|
77
|
-
h2,
|
|
78
|
-
h3,
|
|
79
|
-
h4,
|
|
80
|
-
h5,
|
|
81
|
-
h6 {
|
|
82
|
-
overflow-wrap: break-word;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
p {
|
|
86
|
-
text-wrap: pretty;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
h1,
|
|
90
|
-
h2,
|
|
91
|
-
h3,
|
|
92
|
-
h4,
|
|
93
|
-
h5,
|
|
94
|
-
h6 {
|
|
95
|
-
text-wrap: balance;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
#root,
|
|
99
|
-
#__next {
|
|
100
|
-
isolation: isolate;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/* 4. margins for most elements */
|
|
104
|
-
address,
|
|
105
|
-
area,
|
|
106
|
-
article,
|
|
107
|
-
audio,
|
|
108
|
-
blockquote,
|
|
109
|
-
datalist,
|
|
110
|
-
details,
|
|
111
|
-
dl,
|
|
112
|
-
fieldset,
|
|
113
|
-
figure,
|
|
114
|
-
footer,
|
|
115
|
-
form,
|
|
116
|
-
header,
|
|
117
|
-
hr,
|
|
118
|
-
input,
|
|
119
|
-
iframe,
|
|
120
|
-
img,
|
|
121
|
-
main,
|
|
122
|
-
meter,
|
|
123
|
-
nav,
|
|
124
|
-
ol,
|
|
125
|
-
optgroup,
|
|
126
|
-
option,
|
|
127
|
-
output,
|
|
128
|
-
p,
|
|
129
|
-
pre,
|
|
130
|
-
progress,
|
|
131
|
-
ruby,
|
|
132
|
-
section,
|
|
133
|
-
table,
|
|
134
|
-
textarea,
|
|
135
|
-
ul,
|
|
136
|
-
video {
|
|
137
|
-
margin-bottom: 1rem;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* 5. typography */
|
|
141
|
-
|
|
142
|
-
body {
|
|
143
|
-
font-family: var(--dc-font);
|
|
144
|
-
color: var(--dc-tx-2);
|
|
145
|
-
line-height: 1.5;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
code,
|
|
149
|
-
pre,
|
|
150
|
-
kbd,
|
|
151
|
-
samp {
|
|
152
|
-
font-family: var(--dc-font-mono);
|
|
153
|
-
font-size: 0.9rem;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
h1,
|
|
157
|
-
h2,
|
|
158
|
-
h3,
|
|
159
|
-
h4,
|
|
160
|
-
h5,
|
|
161
|
-
h6 {
|
|
162
|
-
color: var(--dc-tx-1);
|
|
163
|
-
line-height: 1;
|
|
164
|
-
padding-top: 0.5rem;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
h1,
|
|
168
|
-
h2,
|
|
169
|
-
h3 {
|
|
170
|
-
margin-bottom: 0.75rem;
|
|
171
|
-
padding-bottom: 0.25rem;
|
|
172
|
-
border-bottom: 1px solid var(--dc-bg-3);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
article h1,
|
|
176
|
-
article h2,
|
|
177
|
-
article h3 {
|
|
178
|
-
padding-bottom: 0;
|
|
179
|
-
border-bottom: none;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
h4,
|
|
183
|
-
h5,
|
|
184
|
-
h6 {
|
|
185
|
-
margin-bottom: 0.5rem;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
a {
|
|
189
|
-
color: var(--dc-lk-1);
|
|
190
|
-
text-decoration: none;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
a:hover {
|
|
194
|
-
text-decoration: underline;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@supports not (color: light-dark(#fff, #000)) {
|
|
198
|
-
a {
|
|
199
|
-
text-decoration: underline;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
mark {
|
|
204
|
-
border-radius: 0.375rem;
|
|
205
|
-
padding: 0.125rem 0.25rem;
|
|
206
|
-
background: var(--dc-ac-1);
|
|
207
|
-
color: var(--dc-ac-tx);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
::selection {
|
|
211
|
-
background: var(--dc-ac-1);
|
|
212
|
-
color: var(--dc-ac-tx);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/* 6. document */
|
|
216
|
-
body {
|
|
217
|
-
max-width: 48rem;
|
|
218
|
-
margin: 1rem auto 0;
|
|
219
|
-
padding: 0 1rem;
|
|
220
|
-
background: var(--dc-bg-2);
|
|
221
|
-
overflow-x: hidden;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
header {
|
|
225
|
-
padding: 1rem calc(50vw - 50%);
|
|
226
|
-
margin: 0 calc(50% - 50vw) 0;
|
|
227
|
-
margin-top: -1rem;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
header * {
|
|
231
|
-
padding: 0;
|
|
232
|
-
margin: 0;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
header > *:not(:last-child) {
|
|
236
|
-
margin-bottom: 0.25rem;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
header h1,
|
|
240
|
-
header h2,
|
|
241
|
-
header h3 {
|
|
242
|
-
border-bottom: none;
|
|
243
|
-
padding-bottom: 0;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
footer > *:last-child {
|
|
247
|
-
margin-bottom: 0;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
header nav ul,
|
|
251
|
-
footer nav ul {
|
|
252
|
-
display: flex;
|
|
253
|
-
flex-wrap: wrap;
|
|
254
|
-
list-style: none;
|
|
255
|
-
padding: 0;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
header nav ul li,
|
|
259
|
-
footer nav ul li {
|
|
260
|
-
margin: 0;
|
|
261
|
-
display: flex;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
header nav ul li:not(:first-child)::before,
|
|
265
|
-
footer nav ul li:not(:first-child)::before {
|
|
266
|
-
content: "•";
|
|
267
|
-
margin: 0 0.25em;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
main,
|
|
271
|
-
article {
|
|
272
|
-
padding: 1.5rem;
|
|
273
|
-
background: var(--dc-bg-1);
|
|
274
|
-
border: 1px solid var(--dc-bg-3);
|
|
275
|
-
border-radius: 0.25rem;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
main article {
|
|
279
|
-
background: var(--dc-bg-2);
|
|
280
|
-
border-radius: 0.375rem;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
main > *:last-child,
|
|
284
|
-
article > *:last-child {
|
|
285
|
-
margin-bottom: 0;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
@media only screen and (max-width: 48rem) {
|
|
289
|
-
main {
|
|
290
|
-
margin: -1rem;
|
|
291
|
-
background: none;
|
|
292
|
-
border: none;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
header {
|
|
296
|
-
background-color: var(--dc-bg-1);
|
|
297
|
-
border-bottom: 1px solid var(--dc-bg-3);
|
|
298
|
-
margin-bottom: 1rem;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
footer {
|
|
302
|
-
margin-top: 1rem;
|
|
303
|
-
padding-top: 1rem;
|
|
304
|
-
border-top: 1px solid var(--dc-bg-3);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
main,
|
|
308
|
-
article {
|
|
309
|
-
padding: 1rem;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
@media only screen and (min-width: 82rem) {
|
|
314
|
-
aside {
|
|
315
|
-
position: absolute;
|
|
316
|
-
width: 16rem;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
aside:nth-child(even) {
|
|
320
|
-
left: calc(50% - ((48rem) / 2) - (16rem));
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
aside:nth-child(odd) {
|
|
324
|
-
right: calc(50% - ((48rem) / 2) - (16rem));
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/* 7. blockquotes */
|
|
329
|
-
blockquote {
|
|
330
|
-
padding: 1.25rem;
|
|
331
|
-
background: var(--dc-bg-2);
|
|
332
|
-
border: 1px solid var(--dc-bg-3);
|
|
333
|
-
border-left: 5px solid var(--dc-bg-3);
|
|
334
|
-
border-radius: 0.375rem;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
blockquote > *:last-child {
|
|
338
|
-
padding-bottom: 0;
|
|
339
|
-
margin-bottom: 0;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/* 8. buttons and inputs */
|
|
343
|
-
a button,
|
|
344
|
-
button,
|
|
345
|
-
input[type="submit"],
|
|
346
|
-
input[type="reset"],
|
|
347
|
-
input[type="button"] {
|
|
348
|
-
display: inline-block;
|
|
349
|
-
padding: 0.25rem 0.75rem;
|
|
350
|
-
text-align: center;
|
|
351
|
-
text-decoration: none;
|
|
352
|
-
white-space: nowrap;
|
|
353
|
-
background: var(--dc-lkb-1);
|
|
354
|
-
color: var(--dc-lkb-tx);
|
|
355
|
-
border: 0;
|
|
356
|
-
border-radius: 0.375rem;
|
|
357
|
-
box-sizing: border-box;
|
|
358
|
-
cursor: pointer;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
a button[disabled],
|
|
362
|
-
button[disabled],
|
|
363
|
-
input[type="submit"][disabled],
|
|
364
|
-
input[type="reset"][disabled],
|
|
365
|
-
input[type="button"][disabled] {
|
|
366
|
-
cursor: not-allowed;
|
|
367
|
-
opacity: 0.5;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.button:focus,
|
|
371
|
-
.button:enabled:hover,
|
|
372
|
-
button:focus,
|
|
373
|
-
button:enabled:hover,
|
|
374
|
-
input[type="submit"]:focus,
|
|
375
|
-
input[type="submit"]:enabled:hover,
|
|
376
|
-
input[type="reset"]:focus,
|
|
377
|
-
input[type="reset"]:enabled:hover,
|
|
378
|
-
input[type="button"]:focus,
|
|
379
|
-
input[type="button"]:enabled:hover {
|
|
380
|
-
background: var(--dc-lkb-2);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
textarea,
|
|
384
|
-
select,
|
|
385
|
-
input {
|
|
386
|
-
padding: 0.25rem 0.5rem;
|
|
387
|
-
margin-bottom: 0.5rem;
|
|
388
|
-
background: var(--dc-bg-2);
|
|
389
|
-
color: var(--dc-tx-2);
|
|
390
|
-
border: 1px solid var(--dc-bg-3);
|
|
391
|
-
border-radius: 0.375rem;
|
|
392
|
-
box-shadow: none;
|
|
393
|
-
box-sizing: border-box;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
textarea {
|
|
397
|
-
max-width: 100%;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
input,
|
|
401
|
-
progress {
|
|
402
|
-
accent-color: var(--dc-ac-1);
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
/* 9. code and keyboards */
|
|
406
|
-
code,
|
|
407
|
-
samp,
|
|
408
|
-
kbd,
|
|
409
|
-
pre {
|
|
410
|
-
background: var(--dc-bg-2);
|
|
411
|
-
border: 1px solid var(--dc-bg-3);
|
|
412
|
-
border-radius: 0.375rem;
|
|
413
|
-
padding: 0.125rem 0.25rem;
|
|
414
|
-
tab-size: 2;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
kbd {
|
|
418
|
-
border-bottom: 3px solid var(--dc-bg-3);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
pre {
|
|
422
|
-
padding: 1rem 1.5rem;
|
|
423
|
-
max-width: 100%;
|
|
424
|
-
overflow: auto;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
pre code {
|
|
428
|
-
padding: 0;
|
|
429
|
-
border: 0;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/* 10. details */
|
|
433
|
-
details {
|
|
434
|
-
padding: 0.5rem 1rem;
|
|
435
|
-
background: var(--dc-bg-2);
|
|
436
|
-
border: 1px solid var(--dc-bg-3);
|
|
437
|
-
border-radius: 0.375rem;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
summary {
|
|
441
|
-
cursor: pointer;
|
|
442
|
-
font-weight: bold;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
details[open] summary {
|
|
446
|
-
margin-bottom: 0.5rem;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
details[open] > *:first-child {
|
|
450
|
-
margin-top: 0;
|
|
451
|
-
padding-top: 0;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
details[open] > *:last-child {
|
|
455
|
-
margin-bottom: 0;
|
|
456
|
-
padding-bottom: 0;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/* 11. description lists */
|
|
460
|
-
dt {
|
|
461
|
-
font-weight: bold;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
dd::before {
|
|
465
|
-
content: "→ ";
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/* 12. horizontal rules */
|
|
469
|
-
hr {
|
|
470
|
-
border: 0;
|
|
471
|
-
border-bottom: 2px solid var(--dc-bg-3);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/* 13. fieldsets */
|
|
475
|
-
fieldset {
|
|
476
|
-
margin-top: 1rem;
|
|
477
|
-
padding: 2rem;
|
|
478
|
-
border: 1px solid var(--dc-bg-3);
|
|
479
|
-
border-radius: 0.375rem;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
legend {
|
|
483
|
-
padding: auto 0.5rem;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/* 14. tables */
|
|
487
|
-
table {
|
|
488
|
-
border-collapse: collapse;
|
|
489
|
-
width: 100%;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
td,
|
|
493
|
-
th {
|
|
494
|
-
border: 1px solid var(--dc-bg-3);
|
|
495
|
-
text-align: left;
|
|
496
|
-
padding: 0.5rem;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
th {
|
|
500
|
-
background: var(--dc-bg-2);
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
tr:nth-child(even) {
|
|
504
|
-
background: var(--dc-bg-2);
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
table caption {
|
|
508
|
-
font-weight: bold;
|
|
509
|
-
margin-bottom: 0.5rem;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
/* 15. lists */
|
|
513
|
-
ol,
|
|
514
|
-
ul {
|
|
515
|
-
padding-left: 2rem;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
li {
|
|
519
|
-
margin-top: 0.4rem;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
ul ul,
|
|
523
|
-
ol ul,
|
|
524
|
-
ul ol,
|
|
525
|
-
ol ol {
|
|
526
|
-
margin-bottom: 0;
|
|
527
|
-
}
|
|
1
|
+
/* dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
|
|
2
|
+
/* about: tiny, simple, classless CSS framework in the style of Vercel's Geist design system */
|
|
3
|
+
|
|
4
|
+
/* table of contents
|
|
5
|
+
1. configurable variables
|
|
6
|
+
2. color scheme
|
|
7
|
+
3. css reset
|
|
8
|
+
4. margins for most elements
|
|
9
|
+
5. typography
|
|
10
|
+
6. document
|
|
11
|
+
7. blockquotes
|
|
12
|
+
8. buttons and inputs
|
|
13
|
+
9. code and keyboards
|
|
14
|
+
10. details
|
|
15
|
+
11. description lists
|
|
16
|
+
12. horizontal rules
|
|
17
|
+
13. fieldsets
|
|
18
|
+
14. tables
|
|
19
|
+
15. lists
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/* 1. configurable variables */
|
|
23
|
+
/* adjustable by you! see ./theme/boilerplate.user.css */
|
|
24
|
+
:root {
|
|
25
|
+
/* font families */
|
|
26
|
+
--dc-font: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
|
|
27
|
+
--dc-font-mono: "Geist Mono", ui-monospace, "Cascadia Code", "Source Code Pro",
|
|
28
|
+
Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
29
|
+
|
|
30
|
+
/* light/dark colors */
|
|
31
|
+
--dc-cs: light dark; /* light and dark scrollbars, inputs, etc */
|
|
32
|
+
--dc-tx-1: light-dark(#171717, #ededed); /* primary text */
|
|
33
|
+
--dc-tx-2: light-dark(#666, #a1a1a1); /* secondary text */
|
|
34
|
+
--dc-bg-1: light-dark(#fff, #0a0a0a); /* primary background */
|
|
35
|
+
--dc-bg-2: light-dark(#fafafa, #000); /* secondary background */
|
|
36
|
+
--dc-bg-3: light-dark(#ebebeb, #2e2e2e); /* border */
|
|
37
|
+
--dc-lk-1: light-dark(#005ff2, #47a8ff); /* link text */
|
|
38
|
+
--dc-lkb-1: light-dark(#006bff, #006efe); /* link button */
|
|
39
|
+
--dc-lkb-2: light-dark(#0059ec, #005be7); /* link button hover */
|
|
40
|
+
--dc-lkb-tx: light-dark(#fff, #fff); /* text over link button */
|
|
41
|
+
--dc-ac-1: light-dark(#a000f8, #9440d5); /* accent color */
|
|
42
|
+
--dc-ac-tx: light-dark(#fff, #fff); /* text over accent color */
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* 2. color scheme */
|
|
46
|
+
:root {
|
|
47
|
+
color-scheme: var(--dc-cs);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* 3. css reset */
|
|
51
|
+
/* modified from https://www.joshwcomeau.com/css/custom-css-reset */
|
|
52
|
+
*,
|
|
53
|
+
*::before,
|
|
54
|
+
*::after {
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
img,
|
|
60
|
+
picture,
|
|
61
|
+
video,
|
|
62
|
+
canvas,
|
|
63
|
+
svg {
|
|
64
|
+
display: block;
|
|
65
|
+
max-width: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
input,
|
|
69
|
+
button,
|
|
70
|
+
textarea,
|
|
71
|
+
select {
|
|
72
|
+
font: inherit;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
p,
|
|
76
|
+
h1,
|
|
77
|
+
h2,
|
|
78
|
+
h3,
|
|
79
|
+
h4,
|
|
80
|
+
h5,
|
|
81
|
+
h6 {
|
|
82
|
+
overflow-wrap: break-word;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
p {
|
|
86
|
+
text-wrap: pretty;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
h1,
|
|
90
|
+
h2,
|
|
91
|
+
h3,
|
|
92
|
+
h4,
|
|
93
|
+
h5,
|
|
94
|
+
h6 {
|
|
95
|
+
text-wrap: balance;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#root,
|
|
99
|
+
#__next {
|
|
100
|
+
isolation: isolate;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* 4. margins for most elements */
|
|
104
|
+
address,
|
|
105
|
+
area,
|
|
106
|
+
article,
|
|
107
|
+
audio,
|
|
108
|
+
blockquote,
|
|
109
|
+
datalist,
|
|
110
|
+
details,
|
|
111
|
+
dl,
|
|
112
|
+
fieldset,
|
|
113
|
+
figure,
|
|
114
|
+
footer,
|
|
115
|
+
form,
|
|
116
|
+
header,
|
|
117
|
+
hr,
|
|
118
|
+
input,
|
|
119
|
+
iframe,
|
|
120
|
+
img,
|
|
121
|
+
main,
|
|
122
|
+
meter,
|
|
123
|
+
nav,
|
|
124
|
+
ol,
|
|
125
|
+
optgroup,
|
|
126
|
+
option,
|
|
127
|
+
output,
|
|
128
|
+
p,
|
|
129
|
+
pre,
|
|
130
|
+
progress,
|
|
131
|
+
ruby,
|
|
132
|
+
section,
|
|
133
|
+
table,
|
|
134
|
+
textarea,
|
|
135
|
+
ul,
|
|
136
|
+
video {
|
|
137
|
+
margin-bottom: 1rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* 5. typography */
|
|
141
|
+
|
|
142
|
+
body {
|
|
143
|
+
font-family: var(--dc-font);
|
|
144
|
+
color: var(--dc-tx-2);
|
|
145
|
+
line-height: 1.5;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
code,
|
|
149
|
+
pre,
|
|
150
|
+
kbd,
|
|
151
|
+
samp {
|
|
152
|
+
font-family: var(--dc-font-mono);
|
|
153
|
+
font-size: 0.9rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
h1,
|
|
157
|
+
h2,
|
|
158
|
+
h3,
|
|
159
|
+
h4,
|
|
160
|
+
h5,
|
|
161
|
+
h6 {
|
|
162
|
+
color: var(--dc-tx-1);
|
|
163
|
+
line-height: 1;
|
|
164
|
+
padding-top: 0.5rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
h1,
|
|
168
|
+
h2,
|
|
169
|
+
h3 {
|
|
170
|
+
margin-bottom: 0.75rem;
|
|
171
|
+
padding-bottom: 0.25rem;
|
|
172
|
+
border-bottom: 1px solid var(--dc-bg-3);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
article h1,
|
|
176
|
+
article h2,
|
|
177
|
+
article h3 {
|
|
178
|
+
padding-bottom: 0;
|
|
179
|
+
border-bottom: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
h4,
|
|
183
|
+
h5,
|
|
184
|
+
h6 {
|
|
185
|
+
margin-bottom: 0.5rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
a {
|
|
189
|
+
color: var(--dc-lk-1);
|
|
190
|
+
text-decoration: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
a:hover {
|
|
194
|
+
text-decoration: underline;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@supports not (color: light-dark(#fff, #000)) {
|
|
198
|
+
a {
|
|
199
|
+
text-decoration: underline;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
mark {
|
|
204
|
+
border-radius: 0.375rem;
|
|
205
|
+
padding: 0.125rem 0.25rem;
|
|
206
|
+
background: var(--dc-ac-1);
|
|
207
|
+
color: var(--dc-ac-tx);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
::selection {
|
|
211
|
+
background: var(--dc-ac-1);
|
|
212
|
+
color: var(--dc-ac-tx);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* 6. document */
|
|
216
|
+
body {
|
|
217
|
+
max-width: 48rem;
|
|
218
|
+
margin: 1rem auto 0;
|
|
219
|
+
padding: 0 1rem;
|
|
220
|
+
background: var(--dc-bg-2);
|
|
221
|
+
overflow-x: hidden;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
header {
|
|
225
|
+
padding: 1rem calc(50vw - 50%);
|
|
226
|
+
margin: 0 calc(50% - 50vw) 0;
|
|
227
|
+
margin-top: -1rem;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
header * {
|
|
231
|
+
padding: 0;
|
|
232
|
+
margin: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
header > *:not(:last-child) {
|
|
236
|
+
margin-bottom: 0.25rem;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
header h1,
|
|
240
|
+
header h2,
|
|
241
|
+
header h3 {
|
|
242
|
+
border-bottom: none;
|
|
243
|
+
padding-bottom: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
footer > *:last-child {
|
|
247
|
+
margin-bottom: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
header nav ul,
|
|
251
|
+
footer nav ul {
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-wrap: wrap;
|
|
254
|
+
list-style: none;
|
|
255
|
+
padding: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
header nav ul li,
|
|
259
|
+
footer nav ul li {
|
|
260
|
+
margin: 0;
|
|
261
|
+
display: flex;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
header nav ul li:not(:first-child)::before,
|
|
265
|
+
footer nav ul li:not(:first-child)::before {
|
|
266
|
+
content: "•";
|
|
267
|
+
margin: 0 0.25em;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
main,
|
|
271
|
+
article {
|
|
272
|
+
padding: 1.5rem;
|
|
273
|
+
background: var(--dc-bg-1);
|
|
274
|
+
border: 1px solid var(--dc-bg-3);
|
|
275
|
+
border-radius: 0.25rem;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
main article {
|
|
279
|
+
background: var(--dc-bg-2);
|
|
280
|
+
border-radius: 0.375rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
main > *:last-child,
|
|
284
|
+
article > *:last-child {
|
|
285
|
+
margin-bottom: 0;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@media only screen and (max-width: 48rem) {
|
|
289
|
+
main {
|
|
290
|
+
margin: -1rem;
|
|
291
|
+
background: none;
|
|
292
|
+
border: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
header {
|
|
296
|
+
background-color: var(--dc-bg-1);
|
|
297
|
+
border-bottom: 1px solid var(--dc-bg-3);
|
|
298
|
+
margin-bottom: 1rem;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
footer {
|
|
302
|
+
margin-top: 1rem;
|
|
303
|
+
padding-top: 1rem;
|
|
304
|
+
border-top: 1px solid var(--dc-bg-3);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
main,
|
|
308
|
+
article {
|
|
309
|
+
padding: 1rem;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@media only screen and (min-width: 82rem) {
|
|
314
|
+
aside {
|
|
315
|
+
position: absolute;
|
|
316
|
+
width: 16rem;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
aside:nth-child(even) {
|
|
320
|
+
left: calc(50% - ((48rem) / 2) - (16rem));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
aside:nth-child(odd) {
|
|
324
|
+
right: calc(50% - ((48rem) / 2) - (16rem));
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* 7. blockquotes */
|
|
329
|
+
blockquote {
|
|
330
|
+
padding: 1.25rem;
|
|
331
|
+
background: var(--dc-bg-2);
|
|
332
|
+
border: 1px solid var(--dc-bg-3);
|
|
333
|
+
border-left: 5px solid var(--dc-bg-3);
|
|
334
|
+
border-radius: 0.375rem;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
blockquote > *:last-child {
|
|
338
|
+
padding-bottom: 0;
|
|
339
|
+
margin-bottom: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* 8. buttons and inputs */
|
|
343
|
+
a button,
|
|
344
|
+
button,
|
|
345
|
+
input[type="submit"],
|
|
346
|
+
input[type="reset"],
|
|
347
|
+
input[type="button"] {
|
|
348
|
+
display: inline-block;
|
|
349
|
+
padding: 0.25rem 0.75rem;
|
|
350
|
+
text-align: center;
|
|
351
|
+
text-decoration: none;
|
|
352
|
+
white-space: nowrap;
|
|
353
|
+
background: var(--dc-lkb-1);
|
|
354
|
+
color: var(--dc-lkb-tx);
|
|
355
|
+
border: 0;
|
|
356
|
+
border-radius: 0.375rem;
|
|
357
|
+
box-sizing: border-box;
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
a button[disabled],
|
|
362
|
+
button[disabled],
|
|
363
|
+
input[type="submit"][disabled],
|
|
364
|
+
input[type="reset"][disabled],
|
|
365
|
+
input[type="button"][disabled] {
|
|
366
|
+
cursor: not-allowed;
|
|
367
|
+
opacity: 0.5;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.button:focus,
|
|
371
|
+
.button:enabled:hover,
|
|
372
|
+
button:focus,
|
|
373
|
+
button:enabled:hover,
|
|
374
|
+
input[type="submit"]:focus,
|
|
375
|
+
input[type="submit"]:enabled:hover,
|
|
376
|
+
input[type="reset"]:focus,
|
|
377
|
+
input[type="reset"]:enabled:hover,
|
|
378
|
+
input[type="button"]:focus,
|
|
379
|
+
input[type="button"]:enabled:hover {
|
|
380
|
+
background: var(--dc-lkb-2);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
textarea,
|
|
384
|
+
select,
|
|
385
|
+
input {
|
|
386
|
+
padding: 0.25rem 0.5rem;
|
|
387
|
+
margin-bottom: 0.5rem;
|
|
388
|
+
background: var(--dc-bg-2);
|
|
389
|
+
color: var(--dc-tx-2);
|
|
390
|
+
border: 1px solid var(--dc-bg-3);
|
|
391
|
+
border-radius: 0.375rem;
|
|
392
|
+
box-shadow: none;
|
|
393
|
+
box-sizing: border-box;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
textarea {
|
|
397
|
+
max-width: 100%;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
input,
|
|
401
|
+
progress {
|
|
402
|
+
accent-color: var(--dc-ac-1);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* 9. code and keyboards */
|
|
406
|
+
code,
|
|
407
|
+
samp,
|
|
408
|
+
kbd,
|
|
409
|
+
pre {
|
|
410
|
+
background: var(--dc-bg-2);
|
|
411
|
+
border: 1px solid var(--dc-bg-3);
|
|
412
|
+
border-radius: 0.375rem;
|
|
413
|
+
padding: 0.125rem 0.25rem;
|
|
414
|
+
tab-size: 2;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
kbd {
|
|
418
|
+
border-bottom: 3px solid var(--dc-bg-3);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
pre {
|
|
422
|
+
padding: 1rem 1.5rem;
|
|
423
|
+
max-width: 100%;
|
|
424
|
+
overflow: auto;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
pre code {
|
|
428
|
+
padding: 0;
|
|
429
|
+
border: 0;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/* 10. details */
|
|
433
|
+
details {
|
|
434
|
+
padding: 0.5rem 1rem;
|
|
435
|
+
background: var(--dc-bg-2);
|
|
436
|
+
border: 1px solid var(--dc-bg-3);
|
|
437
|
+
border-radius: 0.375rem;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
summary {
|
|
441
|
+
cursor: pointer;
|
|
442
|
+
font-weight: bold;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
details[open] summary {
|
|
446
|
+
margin-bottom: 0.5rem;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
details[open] > *:first-child {
|
|
450
|
+
margin-top: 0;
|
|
451
|
+
padding-top: 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
details[open] > *:last-child {
|
|
455
|
+
margin-bottom: 0;
|
|
456
|
+
padding-bottom: 0;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* 11. description lists */
|
|
460
|
+
dt {
|
|
461
|
+
font-weight: bold;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
dd::before {
|
|
465
|
+
content: "→ ";
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* 12. horizontal rules */
|
|
469
|
+
hr {
|
|
470
|
+
border: 0;
|
|
471
|
+
border-bottom: 2px solid var(--dc-bg-3);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/* 13. fieldsets */
|
|
475
|
+
fieldset {
|
|
476
|
+
margin-top: 1rem;
|
|
477
|
+
padding: 2rem;
|
|
478
|
+
border: 1px solid var(--dc-bg-3);
|
|
479
|
+
border-radius: 0.375rem;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
legend {
|
|
483
|
+
padding: auto 0.5rem;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/* 14. tables */
|
|
487
|
+
table {
|
|
488
|
+
border-collapse: collapse;
|
|
489
|
+
width: 100%;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
td,
|
|
493
|
+
th {
|
|
494
|
+
border: 1px solid var(--dc-bg-3);
|
|
495
|
+
text-align: left;
|
|
496
|
+
padding: 0.5rem;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
th {
|
|
500
|
+
background: var(--dc-bg-2);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
tr:nth-child(even) {
|
|
504
|
+
background: var(--dc-bg-2);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
table caption {
|
|
508
|
+
font-weight: bold;
|
|
509
|
+
margin-bottom: 0.5rem;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/* 15. lists */
|
|
513
|
+
ol,
|
|
514
|
+
ul {
|
|
515
|
+
padding-left: 2rem;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
li {
|
|
519
|
+
margin-top: 0.4rem;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
ul ul,
|
|
523
|
+
ol ul,
|
|
524
|
+
ul ol,
|
|
525
|
+
ol ol {
|
|
526
|
+
margin-bottom: 0;
|
|
527
|
+
}
|