minduim 1.0.2 → 1.0.4

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.
data/assets/css/base.css CHANGED
@@ -1,430 +1,432 @@
1
- /*
2
- Default variable values
3
- */
4
- :root {
5
- /* Typography */
6
- --font-family-base:
7
- Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial,
8
- sans-serif;
9
- --font-family-headings: var(--font-family-base);
10
- --font-family-quote:
11
- Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
12
- --font-family-code:
13
- ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
14
- "DejaVu Sans Mono", monospace;
15
- --font-size-base: 16px;
16
- --font-size-small: 0.875em;
17
- /* Colors */
18
- --color-background: var(--white);
19
- --color-foreground: var(--black);
20
- --color-accent: var(--yellow);
21
- --color-accent-alt: var(--red);
22
- --color-details: var(--gray);
23
- /* Details */
24
- --radius: 0.5rem;
25
- --border: 1px dotted var(--color-details);
26
- --shadow: 0 0 7px var(--color-details);
27
- --transition-duration: 0.36s;
28
- /* Color palette */
29
- --white: rgb(255, 255, 255);
30
- --black: rgb(44, 44, 44);
31
- --gray: rgb(133, 146, 158);
32
- --red: rgb(231, 76, 60);
33
- --yellow: rgb(241, 196, 15);
34
- }
35
-
36
- /*
37
- Resets
38
- */
39
-
40
- html {
41
- box-sizing: border-box;
42
- font-size: var(--font-size-base);
43
- }
44
-
45
- *,
46
- *::before,
47
- *::after {
48
- box-sizing: inherit;
49
- }
50
-
51
- body,
52
- h1,
53
- h2,
54
- h3,
55
- h4,
56
- h5,
57
- h6,
58
- p,
59
- blockquote,
60
- pre,
61
- hr,
62
- dl,
63
- dd,
64
- ol,
65
- ul,
66
- table,
67
- iframe,
68
- audio,
69
- video,
70
- figure,
71
- input,
72
- button,
73
- textarea {
74
- appearance: none;
75
- -webkit-appearance: none;
76
- background: none;
77
- border: none;
78
- font: inherit;
79
- margin: 0;
80
- padding: 0;
81
- position: relative;
82
- }
83
-
84
- /*
85
- Basic styling
86
- */
87
-
88
- body {
89
- font-family: var(--font-family-base);
90
- font-size: var(--font-size-base);
91
- background-color: var(--color-background);
92
- color: var(--color-foreground);
93
- }
94
-
95
- ::selection {
96
- background: var(--color-accent-alt);
97
- color: var(--color-background);
98
- }
99
-
100
- /*
101
- Text Elements
102
- */
103
-
104
- p,
105
- blockquote,
106
- pre,
107
- ul,
108
- ol,
109
- dl,
110
- figure,
111
- table,
112
- iframe,
113
- audio,
114
- video {
115
- line-height: 1.5;
116
- margin-bottom: 1rem;
117
- }
118
-
119
- h1,
120
- h2,
121
- h3,
122
- h4,
123
- h5,
124
- h6 {
125
- font-weight: 700;
126
- line-height: 1.3;
127
- margin-bottom: 1.25rem;
128
- }
129
-
130
- strong,
131
- b {
132
- font-weight: 700;
133
- }
134
-
135
- em,
136
- i {
137
- font-style: italic;
138
- }
139
-
140
- mark,
141
- ins {
142
- background-color: var(--color-accent);
143
- text-decoration: none;
144
- }
145
-
146
- del,
147
- strike {
148
- text-decoration: line-through;
149
- text-decoration-style: wavy;
150
- }
151
-
152
- abbr,
153
- acronym {
154
- text-decoration-style: dotted;
155
- cursor: help;
156
- }
157
-
158
- sub,
159
- sup {
160
- font-size: 0.65em;
161
- line-height: 100%;
162
- }
163
-
164
- /* Headings */
165
- h1 {
166
- font-size: 2em;
167
- }
168
-
169
- h2 {
170
- font-size: 1.75em;
171
- }
172
-
173
- h3 {
174
- font-size: 1.5em;
175
- }
176
-
177
- h4 {
178
- font-size: 1.25em;
179
- }
180
-
181
- h5 {
182
- font-size: 1em;
183
- }
184
-
185
- h6 {
186
- font-size: 0.75em;
187
- }
188
-
189
- /* Links */
190
- a {
191
- color: currentcolor;
192
- text-decoration: underline;
193
- text-decoration-style: wavy;
194
- transition-property: color, text-decoration-color;
195
- transition-duration: var(--transition-duration);
196
- text-decoration-thickness: from-font;
197
- }
198
-
199
- a:hover,
200
- a:focus {
201
- text-decoration-color: var(--color-accent);
202
- }
203
-
204
- a:active {
205
- color: var(--color-accent-alt);
206
- text-decoration-color: currentcolor;
207
- }
208
-
209
- /* Lists */
210
-
211
- ul {
212
- list-style: square;
213
- }
214
-
215
- li::marker {
216
- color: var(--color-accent-alt);
217
- }
218
-
219
- ul ul {
220
- list-style: circle;
221
- }
222
-
223
- ul ul ul {
224
- list-style: disc;
225
- }
226
-
227
- ol ol {
228
- list-style: lower-alpha;
229
- }
230
-
231
- ol ol ol {
232
- list-style: lower-roman;
233
- }
234
-
235
- li ul,
236
- li ol {
237
- margin-bottom: 0;
238
- }
239
-
240
- li {
241
- margin-block: 0.5rem;
242
- margin-left: 1.5rem;
243
- padding-left: 0.5rem;
244
- }
245
-
246
- dl dt {
247
- font-weight: 700;
248
- }
249
-
250
- dl dd + dt,
251
- dl dd + dd {
252
- margin-top: 0.5rem;
253
- }
254
-
255
- .task-list {
256
- list-style: none;
257
- }
258
-
259
- .task-list-item {
260
- display: flex;
261
- flex-flow: row nowrap;
262
- align-items: center;
263
- gap: 0.5rem;
264
- margin-left: 0;
265
- padding-left: 0;
266
- }
267
-
268
- /* Blockquote */
269
- q {
270
- quotes: "“" "”" "‘" "’";
271
- font-style: normal;
272
- }
273
-
274
- blockquote {
275
- font-family: var(--font-family-quote);
276
- font-style: italic;
277
- line-height: 1.65;
278
- border-left: 0.5rem solid var(--color-accent);
279
- padding-left: 1rem;
280
- }
281
-
282
- blockquote cite {
283
- font-family: var(--font-family-base);
284
- font-style: normal;
285
- font-size: var(--font-size-small);
286
- }
287
-
288
- /* Tables */
289
- table {
290
- width: 100%;
291
- border-collapse: collapse;
292
- margin-bottom: 1.5rem;
293
- transition: color var(--transition-duration);
294
- }
295
-
296
- table th {
297
- text-align: left;
298
- background: var(--color-accent);
299
- }
300
-
301
- table th,
302
- table td {
303
- padding: 0.5rem;
304
- border-bottom: var(--border);
305
- }
306
-
307
- /* Code and pre-formatted text */
308
- pre,
309
- code,
310
- var,
311
- kbd,
312
- tt {
313
- font-family: var(--font-family-code);
314
- font-size: var(--font-size-small);
315
- }
316
-
317
- pre {
318
- max-width: 100%;
319
- overflow: auto;
320
- }
321
-
322
- pre code {
323
- font-size: 100%;
324
- }
325
-
326
- .highlight .gutter {
327
- width: 3ch;
328
- }
329
-
330
- /*
331
- Horizontal Rule
332
- */
333
- hr {
334
- margin-block: 1.5rem;
335
- height: 0;
336
- border-bottom: var(--border);
337
- }
338
-
339
- /*
340
- Media
341
- */
342
- /* Images */
343
- img {
344
- max-width: 100%;
345
- overflow: hidden;
346
- opacity: 1;
347
- }
348
-
349
- @media screen and (prefers-color-scheme: dark) {
350
- img {
351
- opacity: 0.75;
352
- transition: opacity var(--transition-duration) ease;
353
- }
354
-
355
- img:hover,
356
- img:focus {
357
- opacity: 1;
358
- }
359
- }
360
-
361
- .post-content img {
362
- border-radius: 0.5rem;
363
- box-shadow: var(--shadow);
364
- }
365
-
366
- @media screen and (width > 690px) {
367
- .post-content img {
368
- width: calc(100% - (0.5rem + 10rem));
369
- }
370
- }
371
-
372
- img + em,
373
- img + br + em,
374
- figcaption {
375
- display: block;
376
- width: 10rem;
377
- color: var(--color-details);
378
- font-style: normal;
379
- font-size: var(--font-size-small);
380
- padding: 0.25rem 0.5rem;
381
- }
382
-
383
- @media screen and (width > 690px) {
384
- img + em,
385
- img + br + em,
386
- figcaption {
387
- position: absolute;
388
- top: 0;
389
- right: 0;
390
- }
391
- }
392
-
393
- video,
394
- iframe[src*="youtu"],
395
- iframe[src*="twitch"],
396
- iframe[src*="vimeo"] {
397
- border: var(--border);
398
- border-radius: var(--radius);
399
- box-shadow: var(--shadow);
400
- aspect-ratio: 16 / 9;
401
- height: auto;
402
- width: 100%;
403
- }
404
-
405
- audio {
406
- width: 100%;
407
- border-radius: var(--radius);
408
- box-shadow: var(--shadow);
409
- }
410
-
411
- /*
412
- Footnotes
413
- */
414
- .footnotes {
415
- margin-top: 1.5rem;
416
- padding-top: 1.5rem;
417
- border-top: var(--border);
418
- font-size: var(--font-size-small);
419
- }
420
-
421
- /*
422
- TODO: Forms
423
- */
424
-
425
- input[type="checkbox"] {
426
- appearance: checkbox;
427
- width: 1em;
428
- height: 1em;
429
- accent-color: var(--color-accent-alt);
430
- }
1
+ /*
2
+ Default variable values
3
+ */
4
+ :root {
5
+ /* Typography */
6
+ --font-family-base:
7
+ Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial,
8
+ sans-serif;
9
+ --font-family-headings: var(--font-family-base);
10
+ --font-family-quote:
11
+ Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
12
+ --font-family-code:
13
+ ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
14
+ "DejaVu Sans Mono", monospace;
15
+ --font-size-base: 16px;
16
+ --font-size-small: 0.875em;
17
+ /* Colors */
18
+ --color-background: var(--white);
19
+ --color-foreground: var(--black);
20
+ --color-accent: var(--yellow);
21
+ --color-accent-alt: var(--red);
22
+ --color-details: var(--gray);
23
+ /* Details */
24
+ --radius: 0.5rem;
25
+ --border: 1px dotted var(--color-details);
26
+ --shadow: 0 0 7px var(--color-details);
27
+ --transition-duration: 0.36s;
28
+ /* Color palette */
29
+ --white: rgb(255, 255, 255);
30
+ --black: rgb(44, 44, 44);
31
+ --gray: rgb(133, 146, 158);
32
+ --red: rgb(231, 76, 60);
33
+ --yellow: rgb(241, 196, 15);
34
+ }
35
+
36
+ /*
37
+ Resets
38
+ */
39
+
40
+ html {
41
+ box-sizing: border-box;
42
+ font-size: var(--font-size-base);
43
+ }
44
+
45
+ *,
46
+ *::before,
47
+ *::after {
48
+ box-sizing: inherit;
49
+ }
50
+
51
+ body,
52
+ h1,
53
+ h2,
54
+ h3,
55
+ h4,
56
+ h5,
57
+ h6,
58
+ p,
59
+ blockquote,
60
+ pre,
61
+ hr,
62
+ dl,
63
+ dd,
64
+ ol,
65
+ ul,
66
+ table,
67
+ iframe,
68
+ audio,
69
+ video,
70
+ figure,
71
+ input,
72
+ button,
73
+ textarea {
74
+ appearance: none;
75
+ -webkit-appearance: none;
76
+ background: none;
77
+ border: none;
78
+ font: inherit;
79
+ margin: 0;
80
+ padding: 0;
81
+ position: relative;
82
+ }
83
+
84
+ /*
85
+ Basic styling
86
+ */
87
+
88
+ body {
89
+ font-family: var(--font-family-base);
90
+ font-size: var(--font-size-base);
91
+ background-color: var(--color-background);
92
+ color: var(--color-foreground);
93
+ }
94
+
95
+ ::selection {
96
+ background: var(--color-accent-alt);
97
+ color: var(--color-background);
98
+ }
99
+
100
+ /*
101
+ Text Elements
102
+ */
103
+
104
+ p,
105
+ blockquote,
106
+ pre,
107
+ ul,
108
+ ol,
109
+ dl,
110
+ figure,
111
+ table,
112
+ iframe,
113
+ audio,
114
+ video {
115
+ line-height: 1.5;
116
+ margin-bottom: 1rem;
117
+ }
118
+
119
+ h1,
120
+ h2,
121
+ h3,
122
+ h4,
123
+ h5,
124
+ h6 {
125
+ font-weight: 700;
126
+ line-height: 1.3;
127
+ margin-bottom: 1.25rem;
128
+ }
129
+
130
+ strong,
131
+ b {
132
+ font-weight: 700;
133
+ }
134
+
135
+ em,
136
+ i {
137
+ font-style: italic;
138
+ }
139
+
140
+ mark,
141
+ ins {
142
+ background-color: var(--color-accent);
143
+ text-decoration: none;
144
+ }
145
+
146
+ del,
147
+ strike {
148
+ text-decoration: line-through;
149
+ text-decoration-style: wavy;
150
+ }
151
+
152
+ abbr,
153
+ acronym {
154
+ text-decoration-style: dotted;
155
+ cursor: help;
156
+ }
157
+
158
+ sub,
159
+ sup {
160
+ font-size: 0.65em;
161
+ line-height: 100%;
162
+ }
163
+
164
+ /* Headings */
165
+ h1 {
166
+ font-size: 2em;
167
+ }
168
+
169
+ h2 {
170
+ font-size: 1.75em;
171
+ }
172
+
173
+ h3 {
174
+ font-size: 1.5em;
175
+ }
176
+
177
+ h4 {
178
+ font-size: 1.25em;
179
+ }
180
+
181
+ h5 {
182
+ font-size: 1em;
183
+ }
184
+
185
+ h6 {
186
+ font-size: 0.75em;
187
+ }
188
+
189
+ /* Links */
190
+ a {
191
+ color: currentcolor;
192
+ text-decoration: underline;
193
+ text-decoration-style: wavy;
194
+ transition-property: color, text-decoration-color;
195
+ transition-duration: var(--transition-duration);
196
+ text-decoration-thickness: 1px;
197
+ }
198
+
199
+ a:hover,
200
+ a:focus {
201
+ text-decoration-color: var(--color-accent);
202
+ }
203
+
204
+ a:active {
205
+ color: var(--color-accent-alt);
206
+ text-decoration-color: currentcolor;
207
+ }
208
+
209
+ /* Lists */
210
+
211
+ ul {
212
+ list-style: square;
213
+ }
214
+
215
+ li::marker {
216
+ color: var(--color-accent-alt);
217
+ }
218
+
219
+ ul ul {
220
+ list-style: circle;
221
+ }
222
+
223
+ ul ul ul {
224
+ list-style: disc;
225
+ }
226
+
227
+ ol ol {
228
+ list-style: lower-alpha;
229
+ }
230
+
231
+ ol ol ol {
232
+ list-style: lower-roman;
233
+ }
234
+
235
+ li ul,
236
+ li ol {
237
+ margin-bottom: 0;
238
+ }
239
+
240
+ li {
241
+ margin-block: 0.5rem;
242
+ margin-left: 1.5rem;
243
+ padding-left: 0.5rem;
244
+ }
245
+
246
+ dl dt {
247
+ font-weight: 700;
248
+ }
249
+
250
+ dl dd + dt,
251
+ dl dd + dd {
252
+ margin-top: 0.5rem;
253
+ }
254
+
255
+ .task-list {
256
+ list-style: none;
257
+ }
258
+
259
+ .task-list-item {
260
+ display: flex;
261
+ flex-flow: row nowrap;
262
+ align-items: center;
263
+ gap: 0.5rem;
264
+ margin-left: 0;
265
+ padding-left: 0;
266
+ }
267
+
268
+ /* Blockquote */
269
+ q {
270
+ quotes: "“" "”" "‘" "’";
271
+ font-style: normal;
272
+ }
273
+
274
+ blockquote {
275
+ font-family: var(--font-family-quote);
276
+ font-style: italic;
277
+ line-height: 1.65;
278
+ border-left: 0.5rem solid var(--color-accent);
279
+ padding-left: 1rem;
280
+ }
281
+
282
+ blockquote cite {
283
+ font-family: var(--font-family-base);
284
+ font-style: normal;
285
+ font-size: var(--font-size-small);
286
+ }
287
+
288
+ /* Tables */
289
+ table {
290
+ width: 100%;
291
+ border-collapse: collapse;
292
+ margin-bottom: 1.5rem;
293
+ transition: color var(--transition-duration);
294
+ }
295
+
296
+ table th {
297
+ text-align: left;
298
+ background: var(--color-accent);
299
+ }
300
+
301
+ table th,
302
+ table td {
303
+ padding: 0.5rem;
304
+ border-bottom: var(--border);
305
+ }
306
+
307
+ /* Code and pre-formatted text */
308
+ pre,
309
+ code,
310
+ var,
311
+ kbd,
312
+ tt {
313
+ font-family: var(--font-family-code);
314
+ font-size: var(--font-size-small);
315
+ }
316
+
317
+ pre {
318
+ max-width: 100%;
319
+ overflow: auto;
320
+ }
321
+
322
+ pre code {
323
+ font-size: 100%;
324
+ }
325
+
326
+ .highlight .gutter {
327
+ width: 3ch;
328
+ }
329
+
330
+ /*
331
+ Horizontal Rule
332
+ */
333
+ hr {
334
+ margin-block: 1.5rem;
335
+ height: 0;
336
+ border-bottom: var(--border);
337
+ }
338
+
339
+ /*
340
+ Media
341
+ */
342
+ /* Images */
343
+ img {
344
+ max-width: 100%;
345
+ overflow: hidden;
346
+ opacity: 1;
347
+ }
348
+
349
+ @media screen and (prefers-color-scheme: dark) {
350
+ img {
351
+ opacity: 0.75;
352
+ transition: opacity var(--transition-duration) ease;
353
+ }
354
+
355
+ img:hover,
356
+ img:focus {
357
+ opacity: 1;
358
+ }
359
+ }
360
+
361
+ .post-content img,
362
+ .page-content img {
363
+ border-radius: 0.5rem;
364
+ box-shadow: var(--shadow);
365
+ }
366
+
367
+ @media screen and (width > 690px) {
368
+ .post-content img,
369
+ .page-content img {
370
+ width: calc(100% - (0.5rem + 10rem));
371
+ }
372
+ }
373
+
374
+ img + em,
375
+ img + br + em,
376
+ figcaption {
377
+ display: block;
378
+ width: 10rem;
379
+ color: var(--color-details);
380
+ font-style: normal;
381
+ font-size: var(--font-size-small);
382
+ padding: 0.25rem 0.5rem;
383
+ }
384
+
385
+ @media screen and (width > 690px) {
386
+ img + em,
387
+ img + br + em,
388
+ figcaption {
389
+ position: absolute;
390
+ top: 0;
391
+ right: 0;
392
+ }
393
+ }
394
+
395
+ video,
396
+ iframe[src*="youtu"],
397
+ iframe[src*="twitch"],
398
+ iframe[src*="vimeo"] {
399
+ border: var(--border);
400
+ border-radius: var(--radius);
401
+ box-shadow: var(--shadow);
402
+ aspect-ratio: 16 / 9;
403
+ height: auto;
404
+ width: 100%;
405
+ }
406
+
407
+ audio {
408
+ width: 100%;
409
+ border-radius: var(--radius);
410
+ box-shadow: var(--shadow);
411
+ }
412
+
413
+ /*
414
+ Footnotes
415
+ */
416
+ .footnotes {
417
+ margin-top: 1.5rem;
418
+ padding-top: 1.5rem;
419
+ border-top: var(--border);
420
+ font-size: var(--font-size-small);
421
+ }
422
+
423
+ /*
424
+ TODO: Forms
425
+ */
426
+
427
+ input[type="checkbox"] {
428
+ appearance: checkbox;
429
+ width: 1em;
430
+ height: 1em;
431
+ accent-color: var(--color-accent-alt);
432
+ }