@anydigital/blades 0.27.0-beta.7 → 0.27.0-beta.9
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/assets/blades.css +65 -52
- package/assets/blades.theme.css +19 -9
- package/blades.gemspec +1 -1
- package/package.json +1 -1
- package/src/_layout.css +21 -9
- package/src/_link.css +16 -17
- package/src/_typography.css +20 -7
- package/src/_unreduce-motion.css +6 -3
- package/src/_utilities.css +4 -17
- package/src/blades.theme.css +20 -0
package/assets/blades.css
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
/* Layout */
|
|
4
4
|
|
|
5
|
-
/*
|
|
5
|
+
/* Extends https://github.com/picocss/pico/blob/main/scss/layout/
|
|
6
6
|
<!--section:docs-->
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Prevent horizontal overflow and scrolling, modern way:
|
|
8
|
+
Global styles:
|
|
9
|
+
- Prevent horizontal overflow and scrolling, modern way.
|
|
12
10
|
```css */
|
|
13
11
|
|
|
14
12
|
html {
|
|
@@ -18,10 +16,8 @@ html {
|
|
|
18
16
|
/*```
|
|
19
17
|
|
|
20
18
|
### Landmarks
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
1. Ensure `body` takes at least the full height of the viewport (using dynamic viewport height for better mobile support).
|
|
24
|
-
2. Make the `body` a flex container with column layout, and `main` to automatically fill available space. This is useful for creating sticky footers and full-height layouts.
|
|
19
|
+
- Ensure `body` takes at least the full height of the viewport (using dynamic viewport height for better mobile support).
|
|
20
|
+
- Make the `body` a flex container with column layout, and `main` to automatically fill available space. This is useful for creating sticky footers and full-height layouts.
|
|
25
21
|
```css */
|
|
26
22
|
|
|
27
23
|
body {
|
|
@@ -36,6 +32,24 @@ body {
|
|
|
36
32
|
|
|
37
33
|
/*```
|
|
38
34
|
|
|
35
|
+
### Auto-columns
|
|
36
|
+
```css */
|
|
37
|
+
|
|
38
|
+
.columns,
|
|
39
|
+
[data-is-toc] > ul,
|
|
40
|
+
[data-is-toc] > ol {
|
|
41
|
+
columns: 30ch auto; /* 2 cols max for 65ch container */
|
|
42
|
+
|
|
43
|
+
/* Avoid breaking inside elements, such as nested lists */
|
|
44
|
+
> * {
|
|
45
|
+
break-inside: avoid;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/*```
|
|
50
|
+
|
|
51
|
+
Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
52
|
+
|
|
39
53
|
### Jump to top
|
|
40
54
|
```css */
|
|
41
55
|
|
|
@@ -218,15 +232,15 @@ h6 {
|
|
|
218
232
|
|
|
219
233
|
### List markers
|
|
220
234
|
|
|
221
|
-
Use `
|
|
235
|
+
Use inline `style="--list-marker:'🥷 '"` on `<ul>/<ol>` or even individual `<li>` to customize list markers:
|
|
222
236
|
<article>
|
|
223
237
|
|
|
224
|
-
-
|
|
225
|
-
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
-
|
|
238
|
+
- Customize
|
|
239
|
+
- list
|
|
240
|
+
- markers
|
|
241
|
+
- with [Blades CSS](https://blades.ninja/css/) {style="--list-marker:'🥷 '"}
|
|
242
|
+
|
|
243
|
+
{style="--list-marker:'🧊 '"}
|
|
230
244
|
</article>
|
|
231
245
|
|
|
232
246
|
How it works:
|
|
@@ -234,10 +248,23 @@ How it works:
|
|
|
234
248
|
|
|
235
249
|
ul,
|
|
236
250
|
ol {
|
|
251
|
+
&[style*="--list-marker:"] {
|
|
252
|
+
list-style-type: var(--list-marker);
|
|
253
|
+
|
|
254
|
+
> li {
|
|
255
|
+
list-style-type: inherit;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
li[style*="--list-marker:"] {
|
|
260
|
+
list-style-type: var(--list-marker);
|
|
261
|
+
}
|
|
237
262
|
li[data-marker]::marker {
|
|
263
|
+
/* ⚠️ `data-marker` works only in Chrome and Firefox */
|
|
238
264
|
content: attr(data-marker) " ";
|
|
239
265
|
}
|
|
240
266
|
|
|
267
|
+
/* Helper class to remove list styling at all */
|
|
241
268
|
&.unlist {
|
|
242
269
|
padding-inline-start: 0;
|
|
243
270
|
|
|
@@ -255,24 +282,17 @@ ol {
|
|
|
255
282
|
```css */
|
|
256
283
|
|
|
257
284
|
a {
|
|
258
|
-
/* Helper to handle icons in links */
|
|
285
|
+
/* Helper to handle [fav]icons in links */
|
|
259
286
|
> i {
|
|
260
287
|
display: inline-block;
|
|
261
288
|
font-style: normal;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/* Helper for favicons in links */
|
|
265
|
-
&[data-has-favicon] {
|
|
266
|
-
display: inline-block;
|
|
267
289
|
|
|
268
290
|
> img {
|
|
269
|
-
|
|
270
|
-
margin-
|
|
271
|
-
margin-inline-end: 0.375ch; /* =3/8 */
|
|
291
|
+
height: 1.25em;
|
|
292
|
+
margin-block: calc(-0.25em / 2);
|
|
272
293
|
|
|
273
294
|
/* for tw-typography (.prose) */
|
|
274
295
|
display: inline-block;
|
|
275
|
-
margin-bottom: 0;
|
|
276
296
|
}
|
|
277
297
|
}
|
|
278
298
|
}
|
|
@@ -284,18 +304,24 @@ a {
|
|
|
284
304
|
|
|
285
305
|
### Link [fav]icons
|
|
286
306
|
|
|
287
|
-
Wrap icons inside links using `<i>... </i>` helper to avoid underline. Compare:
|
|
307
|
+
Wrap [fav]icons inside links using `<i>... </i>` helper to size automatically and avoid underline. Compare:
|
|
288
308
|
|
|
289
309
|
<big class="grid">
|
|
290
|
-
<article><a href="https://github.com/anydigital/blades">
|
|
291
|
-
|
|
310
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
311
|
+
🥷 Blades
|
|
312
|
+
</a></article>
|
|
313
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
314
|
+
<i>🥷 </i>Blades
|
|
315
|
+
</a></article>
|
|
292
316
|
</big>
|
|
293
317
|
|
|
294
|
-
Use `data-has-favicon` helper attribute on plain-text links containing `<img>`-favicon for better alignment. Compare:
|
|
295
|
-
|
|
296
318
|
<big class="grid">
|
|
297
|
-
<article><a href="https://github.com/anydigital/blades"
|
|
298
|
-
|
|
319
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
320
|
+
<img src="https://www.google.com/s2/favicons?domain=github.com&sz=64" >/anydigital/blades
|
|
321
|
+
</a></article>
|
|
322
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
323
|
+
<i><img src="https://www.google.com/s2/favicons?domain=github.com&sz=64"> </i>/anydigital/blades
|
|
324
|
+
</a></article>
|
|
299
325
|
</big>
|
|
300
326
|
|
|
301
327
|
<!--section--> */
|
|
@@ -479,24 +505,6 @@ code {
|
|
|
479
505
|
/*
|
|
480
506
|
<!--section:docs-->
|
|
481
507
|
|
|
482
|
-
### Auto-columns
|
|
483
|
-
```css */
|
|
484
|
-
|
|
485
|
-
.columns,
|
|
486
|
-
[data-is-toc] > ul,
|
|
487
|
-
[data-is-toc] > ol {
|
|
488
|
-
columns: 30ch auto; /* 2 cols max for 65ch container */
|
|
489
|
-
|
|
490
|
-
/* Avoid breaking inside elements, such as nested lists */
|
|
491
|
-
> * {
|
|
492
|
-
break-inside: avoid;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/*```
|
|
497
|
-
|
|
498
|
-
Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
499
|
-
|
|
500
508
|
### Auto-dark
|
|
501
509
|
```css */
|
|
502
510
|
|
|
@@ -510,7 +518,7 @@ Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
|
510
518
|
|
|
511
519
|
/*```
|
|
512
520
|
|
|
513
|
-
###
|
|
521
|
+
### Faded
|
|
514
522
|
```css */
|
|
515
523
|
|
|
516
524
|
.faded {
|
|
@@ -520,6 +528,11 @@ Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
|
520
528
|
}
|
|
521
529
|
}
|
|
522
530
|
|
|
531
|
+
/*```
|
|
532
|
+
|
|
533
|
+
### Invert
|
|
534
|
+
```css */
|
|
535
|
+
|
|
523
536
|
/* Extends https://tailwindcss.com/docs/filter-invert */
|
|
524
537
|
|
|
525
538
|
.invert {
|
package/assets/blades.theme.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* <!--section:code-->
|
|
2
|
+
```css */
|
|
1
3
|
a {
|
|
2
4
|
&:not([href^="#"]) {
|
|
3
5
|
text-decoration-thickness: 1px;
|
|
@@ -6,29 +8,39 @@ a {
|
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
}
|
|
9
|
-
|
|
10
11
|
h1 {
|
|
11
12
|
font-size: 2.5em; /* for pico.css & tw-typography */
|
|
12
13
|
margin-bottom: 1rem; /* for tw-typography */
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
+
/* Fix https://github.com/picocss/pico/blob/main/css/pico.css for the very first headings
|
|
16
|
+
:where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
|
|
17
|
+
margin-top: var(--pico-typography-spacing-top);
|
|
18
|
+
}
|
|
19
|
+
*/
|
|
20
|
+
h1,
|
|
21
|
+
h2,
|
|
22
|
+
h3,
|
|
23
|
+
h4,
|
|
24
|
+
h5,
|
|
25
|
+
h6 {
|
|
26
|
+
& ~ & {
|
|
27
|
+
margin-top: 2rem;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
15
30
|
hr {
|
|
16
31
|
margin-block: 2em; /* for pico.css & tw-typography */
|
|
17
32
|
}
|
|
18
|
-
|
|
19
33
|
ul {
|
|
20
34
|
ul {
|
|
21
35
|
font-size: 87.5%;
|
|
22
36
|
}
|
|
23
37
|
}
|
|
24
|
-
|
|
25
38
|
pre {
|
|
26
39
|
small {
|
|
27
40
|
opacity: 75%;
|
|
28
41
|
font-weight: lighter;
|
|
29
42
|
}
|
|
30
43
|
}
|
|
31
|
-
|
|
32
44
|
table {
|
|
33
45
|
th {
|
|
34
46
|
vertical-align: bottom;
|
|
@@ -41,7 +53,6 @@ table {
|
|
|
41
53
|
margin-bottom: 0.25rem;
|
|
42
54
|
}
|
|
43
55
|
}
|
|
44
|
-
|
|
45
56
|
[data-jump-to="top"] {
|
|
46
57
|
> i {
|
|
47
58
|
display: inline-block;
|
|
@@ -52,7 +63,6 @@ table {
|
|
|
52
63
|
border-color: black;
|
|
53
64
|
}
|
|
54
65
|
}
|
|
55
|
-
|
|
56
66
|
[data-is-toc] {
|
|
57
67
|
font-size: 87.5%;
|
|
58
68
|
|
|
@@ -63,7 +73,6 @@ table {
|
|
|
63
73
|
font-weight: 500;
|
|
64
74
|
}
|
|
65
75
|
}
|
|
66
|
-
|
|
67
76
|
.breakout,
|
|
68
77
|
.breakout-all {
|
|
69
78
|
> img,
|
|
@@ -71,9 +80,10 @@ table {
|
|
|
71
80
|
margin-bottom: 1rem;
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
|
-
|
|
75
83
|
.faded {
|
|
76
84
|
a {
|
|
77
85
|
text-decoration-style: dotted;
|
|
78
86
|
}
|
|
79
87
|
}
|
|
88
|
+
/*```
|
|
89
|
+
<!--section--> */
|
package/blades.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "blades"
|
|
5
|
-
spec.version = "0.27.0-beta.
|
|
5
|
+
spec.version = "0.27.0-beta.9"
|
|
6
6
|
spec.authors = ["Anton Staroverov"]
|
|
7
7
|
|
|
8
8
|
spec.summary = "Framework-agnostic CSS utilities and single-file Liquid 'blades' for modern web development."
|
package/package.json
CHANGED
package/src/_layout.css
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Extends https://github.com/picocss/pico/blob/main/scss/layout/
|
|
2
2
|
<!--section:docs-->
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Prevent horizontal overflow and scrolling, modern way:
|
|
4
|
+
Global styles:
|
|
5
|
+
- Prevent horizontal overflow and scrolling, modern way.
|
|
8
6
|
```css */
|
|
9
7
|
html {
|
|
10
8
|
overflow-x: clip;
|
|
@@ -12,10 +10,8 @@ html {
|
|
|
12
10
|
/*```
|
|
13
11
|
|
|
14
12
|
### Landmarks
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
1. Ensure `body` takes at least the full height of the viewport (using dynamic viewport height for better mobile support).
|
|
18
|
-
2. Make the `body` a flex container with column layout, and `main` to automatically fill available space. This is useful for creating sticky footers and full-height layouts.
|
|
13
|
+
- Ensure `body` takes at least the full height of the viewport (using dynamic viewport height for better mobile support).
|
|
14
|
+
- Make the `body` a flex container with column layout, and `main` to automatically fill available space. This is useful for creating sticky footers and full-height layouts.
|
|
19
15
|
```css */
|
|
20
16
|
body {
|
|
21
17
|
min-height: 100dvh;
|
|
@@ -28,6 +24,22 @@ body {
|
|
|
28
24
|
}
|
|
29
25
|
/*```
|
|
30
26
|
|
|
27
|
+
### Auto-columns
|
|
28
|
+
```css */
|
|
29
|
+
.columns,
|
|
30
|
+
[data-is-toc] > ul,
|
|
31
|
+
[data-is-toc] > ol {
|
|
32
|
+
columns: 30ch auto; /* 2 cols max for 65ch container */
|
|
33
|
+
|
|
34
|
+
/* Avoid breaking inside elements, such as nested lists */
|
|
35
|
+
> * {
|
|
36
|
+
break-inside: avoid;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/*```
|
|
40
|
+
|
|
41
|
+
Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
42
|
+
|
|
31
43
|
### Jump to top
|
|
32
44
|
```css */
|
|
33
45
|
[data-jump-to="top"] {
|
package/src/_link.css
CHANGED
|
@@ -2,24 +2,17 @@
|
|
|
2
2
|
<!--section:code-->
|
|
3
3
|
```css */
|
|
4
4
|
a {
|
|
5
|
-
/* Helper to handle icons in links */
|
|
5
|
+
/* Helper to handle [fav]icons in links */
|
|
6
6
|
> i {
|
|
7
7
|
display: inline-block;
|
|
8
8
|
font-style: normal;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* Helper for favicons in links */
|
|
12
|
-
&[data-has-favicon] {
|
|
13
|
-
display: inline-block;
|
|
14
9
|
|
|
15
10
|
> img {
|
|
16
|
-
|
|
17
|
-
margin-
|
|
18
|
-
margin-inline-end: 0.375ch; /* =3/8 */
|
|
11
|
+
height: 1.25em;
|
|
12
|
+
margin-block: calc(-0.25em / 2);
|
|
19
13
|
|
|
20
14
|
/* for tw-typography (.prose) */
|
|
21
15
|
display: inline-block;
|
|
22
|
-
margin-bottom: 0;
|
|
23
16
|
}
|
|
24
17
|
}
|
|
25
18
|
}
|
|
@@ -30,18 +23,24 @@ a {
|
|
|
30
23
|
|
|
31
24
|
### Link [fav]icons
|
|
32
25
|
|
|
33
|
-
Wrap icons inside links using `<i>... </i>` helper to avoid underline. Compare:
|
|
26
|
+
Wrap [fav]icons inside links using `<i>... </i>` helper to size automatically and avoid underline. Compare:
|
|
34
27
|
|
|
35
28
|
<big class="grid">
|
|
36
|
-
<article><a href="https://github.com/anydigital/blades">
|
|
37
|
-
|
|
29
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
30
|
+
🥷 Blades
|
|
31
|
+
</a></article>
|
|
32
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
33
|
+
<i>🥷 </i>Blades
|
|
34
|
+
</a></article>
|
|
38
35
|
</big>
|
|
39
36
|
|
|
40
|
-
Use `data-has-favicon` helper attribute on plain-text links containing `<img>`-favicon for better alignment. Compare:
|
|
41
|
-
|
|
42
37
|
<big class="grid">
|
|
43
|
-
<article><a href="https://github.com/anydigital/blades"
|
|
44
|
-
|
|
38
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
39
|
+
<img src="https://www.google.com/s2/favicons?domain=github.com&sz=64" >/anydigital/blades
|
|
40
|
+
</a></article>
|
|
41
|
+
<article><a href="https://github.com/anydigital/blades">
|
|
42
|
+
<i><img src="https://www.google.com/s2/favicons?domain=github.com&sz=64"> </i>/anydigital/blades
|
|
43
|
+
</a></article>
|
|
45
44
|
</big>
|
|
46
45
|
|
|
47
46
|
<!--section--> */
|
package/src/_typography.css
CHANGED
|
@@ -59,25 +59,38 @@ h6 {
|
|
|
59
59
|
|
|
60
60
|
### List markers
|
|
61
61
|
|
|
62
|
-
Use `
|
|
62
|
+
Use inline `style="--list-marker:'🥷 '"` on `<ul>/<ol>` or even individual `<li>` to customize list markers:
|
|
63
63
|
<article>
|
|
64
64
|
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
-
|
|
65
|
+
- Customize
|
|
66
|
+
- list
|
|
67
|
+
- markers
|
|
68
|
+
- with [Blades CSS](https://blades.ninja/css/) {style="--list-marker:'🥷 '"}
|
|
69
|
+
|
|
70
|
+
{style="--list-marker:'🧊 '"}
|
|
71
71
|
</article>
|
|
72
72
|
|
|
73
73
|
How it works:
|
|
74
74
|
```css */
|
|
75
75
|
ul,
|
|
76
76
|
ol {
|
|
77
|
+
&[style*="--list-marker:"] {
|
|
78
|
+
list-style-type: var(--list-marker);
|
|
79
|
+
|
|
80
|
+
> li {
|
|
81
|
+
list-style-type: inherit;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
li[style*="--list-marker:"] {
|
|
86
|
+
list-style-type: var(--list-marker);
|
|
87
|
+
}
|
|
77
88
|
li[data-marker]::marker {
|
|
89
|
+
/* ⚠️ `data-marker` works only in Chrome and Firefox */
|
|
78
90
|
content: attr(data-marker) " ";
|
|
79
91
|
}
|
|
80
92
|
|
|
93
|
+
/* Helper class to remove list styling at all */
|
|
81
94
|
&.unlist {
|
|
82
95
|
padding-inline-start: 0;
|
|
83
96
|
|
package/src/_unreduce-motion.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
1
|
+
/* Overrides https://github.com/picocss/pico/blob/main/scss/utilities/_reduce-motion.scss
|
|
2
|
+
<!--section:docs-->
|
|
3
|
+
|
|
4
|
+
### Unreduce motion
|
|
3
5
|
```css */
|
|
4
6
|
@utility unreduce-animation-* {
|
|
5
7
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -10,4 +12,5 @@ Overrides for https://github.com/picocss/pico/blob/main/scss/utilities/_reduce-m
|
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
|
-
/*```
|
|
15
|
+
/*```
|
|
16
|
+
<!--section--> */
|
package/src/_utilities.css
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
<!--section:docs-->
|
|
3
3
|
|
|
4
|
-
### Auto-columns
|
|
5
|
-
```css */
|
|
6
|
-
.columns,
|
|
7
|
-
[data-is-toc] > ul,
|
|
8
|
-
[data-is-toc] > ol {
|
|
9
|
-
columns: 30ch auto; /* 2 cols max for 65ch container */
|
|
10
|
-
|
|
11
|
-
/* Avoid breaking inside elements, such as nested lists */
|
|
12
|
-
> * {
|
|
13
|
-
break-inside: avoid;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
/*```
|
|
17
|
-
|
|
18
|
-
Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
19
|
-
|
|
20
4
|
### Auto-dark
|
|
21
5
|
```css */
|
|
22
6
|
@media (prefers-color-scheme: dark) {
|
|
@@ -28,7 +12,7 @@ Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
|
28
12
|
}
|
|
29
13
|
/*```
|
|
30
14
|
|
|
31
|
-
###
|
|
15
|
+
### Faded
|
|
32
16
|
```css */
|
|
33
17
|
.faded {
|
|
34
18
|
opacity: 50%;
|
|
@@ -36,7 +20,10 @@ Table of contents (`[data-is-toc]`) has auto-columns by default.
|
|
|
36
20
|
opacity: 87.5%;
|
|
37
21
|
}
|
|
38
22
|
}
|
|
23
|
+
/*```
|
|
39
24
|
|
|
25
|
+
### Invert
|
|
26
|
+
```css */
|
|
40
27
|
/* Extends https://tailwindcss.com/docs/filter-invert */
|
|
41
28
|
.invert {
|
|
42
29
|
/* Fix the scrollbar color when inverted */
|
package/src/blades.theme.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* <!--section:code-->
|
|
2
|
+
```css */
|
|
1
3
|
a {
|
|
2
4
|
&:not([href^="#"]) {
|
|
3
5
|
text-decoration-thickness: 1px;
|
|
@@ -12,6 +14,22 @@ h1 {
|
|
|
12
14
|
margin-bottom: 1rem; /* for tw-typography */
|
|
13
15
|
}
|
|
14
16
|
|
|
17
|
+
/* Fix https://github.com/picocss/pico/blob/main/css/pico.css for the very first headings
|
|
18
|
+
:where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
|
|
19
|
+
margin-top: var(--pico-typography-spacing-top);
|
|
20
|
+
}
|
|
21
|
+
*/
|
|
22
|
+
h1,
|
|
23
|
+
h2,
|
|
24
|
+
h3,
|
|
25
|
+
h4,
|
|
26
|
+
h5,
|
|
27
|
+
h6 {
|
|
28
|
+
& ~ & {
|
|
29
|
+
margin-top: 2rem;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
15
33
|
hr {
|
|
16
34
|
margin-block: 2em; /* for pico.css & tw-typography */
|
|
17
35
|
}
|
|
@@ -77,3 +95,5 @@ table {
|
|
|
77
95
|
text-decoration-style: dotted;
|
|
78
96
|
}
|
|
79
97
|
}
|
|
98
|
+
/*```
|
|
99
|
+
<!--section--> */
|