@intergrav/dev.css 3.5.2 → 3.6.1

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