@intergrav/dev.css 3.1.0 → 3.1.2

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