@anyblades/blades 2.2.4 → 2.3.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/README.md +30 -21
- package/_config.yml +1 -1
- package/_includes/blades/html.twig +52 -0
- package/_includes/blades/links.twig +18 -0
- package/_includes/blades/sitemap.xml.twig +23 -0
- package/blades.gemspec +3 -3
- package/css/blades.css +3763 -0
- package/{assets → css}/blades.standalone.core.css +29 -29
- package/{assets → css}/blades.standalone.css +38 -38
- package/{assets → css}/breakout.css +9 -9
- package/package.json +5 -4
- package/src/content/_code.css +1 -1
- package/assets/blades.css +0 -1226
- package/{assets → css}/blades.standalone.theme.css +9 -9
- package/{assets → css}/float-label.core.css +2 -2
- package/{assets → css}/float-label.css +2 -2
- package/{assets → css}/float-label.theme.css +0 -0
- package/{assets → css}/link-icon.css +4 -4
- package/{assets → css}/responsive-table.css +6 -6
|
@@ -49,12 +49,12 @@ html {
|
|
|
49
49
|
-moz-osx-font-smoothing: grayscale;
|
|
50
50
|
}
|
|
51
51
|
body {
|
|
52
|
-
/* Ensure `body` takes at least the full height of the viewport (using dynamic viewport height for better mobile support). */
|
|
53
|
-
min-height: 100dvh;
|
|
54
52
|
|
|
55
53
|
/* 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. */
|
|
56
54
|
display: flex;
|
|
57
55
|
flex-direction: column;
|
|
56
|
+
/* Ensure `body` takes at least the full height of the viewport (using dynamic viewport height for better mobile support). */
|
|
57
|
+
min-height: 100dvh;
|
|
58
58
|
|
|
59
59
|
/* Evaluates the last ~4 lines of text blocks to prevent a single word from sitting on the final line. */
|
|
60
60
|
|
|
@@ -65,8 +65,8 @@ body > main {
|
|
|
65
65
|
flex-grow: 1;
|
|
66
66
|
}
|
|
67
67
|
body {
|
|
68
|
-
text-wrap: pretty;
|
|
69
68
|
hyphens: auto;
|
|
69
|
+
text-wrap: pretty;
|
|
70
70
|
}
|
|
71
71
|
body a,
|
|
72
72
|
body table {
|
|
@@ -79,8 +79,8 @@ a:not([href^="#"]):hover {
|
|
|
79
79
|
text-decoration-thickness: 2px;
|
|
80
80
|
}
|
|
81
81
|
h1 {
|
|
82
|
-
font-size: 2.5em; /* for pico.css & tw-typography */
|
|
83
82
|
margin-bottom: 1rem; /* for tw-typography */
|
|
83
|
+
font-size: 2.5em; /* for pico.css & tw-typography */
|
|
84
84
|
}
|
|
85
85
|
hr {
|
|
86
86
|
margin-block: 2em; /* for pico.css & tw-typography */
|
|
@@ -89,12 +89,12 @@ ul ul {
|
|
|
89
89
|
font-size: 87.5%;
|
|
90
90
|
}
|
|
91
91
|
pre small {
|
|
92
|
-
opacity: 75%;
|
|
93
92
|
font-weight: lighter;
|
|
93
|
+
opacity: 75%;
|
|
94
94
|
}
|
|
95
95
|
table th {
|
|
96
|
-
vertical-align: bottom;
|
|
97
96
|
font-weight: bold;
|
|
97
|
+
vertical-align: bottom;
|
|
98
98
|
}
|
|
99
99
|
table td {
|
|
100
100
|
vertical-align: top;
|
|
@@ -110,11 +110,11 @@ table pre {
|
|
|
110
110
|
}
|
|
111
111
|
[data-jump-to="top"] > i {
|
|
112
112
|
display: inline-block;
|
|
113
|
-
padding: 0.25rem 0.375rem;
|
|
114
113
|
margin: 0.5rem;
|
|
115
|
-
|
|
116
|
-
color: black;
|
|
114
|
+
padding: 0.25rem 0.375rem;
|
|
117
115
|
border-color: black;
|
|
116
|
+
color: black;
|
|
117
|
+
font-size: 0.75rem;
|
|
118
118
|
}
|
|
119
119
|
.breakout > img,
|
|
120
120
|
.breakout > figure,
|
|
@@ -19,10 +19,10 @@ label:has(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea
|
|
|
19
19
|
.has-float-label > span,
|
|
20
20
|
.has-float-label label {
|
|
21
21
|
position: absolute;
|
|
22
|
-
left: 0;
|
|
23
22
|
top: 0;
|
|
24
|
-
|
|
23
|
+
left: 0;
|
|
25
24
|
font-size: 75%;
|
|
25
|
+
cursor: text;
|
|
26
26
|
}
|
|
27
27
|
/*
|
|
28
28
|
```
|
|
@@ -20,10 +20,10 @@ label:has(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea
|
|
|
20
20
|
.has-float-label > span,
|
|
21
21
|
.has-float-label label {
|
|
22
22
|
position: absolute;
|
|
23
|
-
left: 0;
|
|
24
23
|
top: 0;
|
|
25
|
-
|
|
24
|
+
left: 0;
|
|
26
25
|
font-size: 75%;
|
|
26
|
+
cursor: text;
|
|
27
27
|
}
|
|
28
28
|
/*
|
|
29
29
|
```
|
|
File without changes
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
/* Use inline flex only if link contains an icon */
|
|
5
5
|
a:has(> i) {
|
|
6
6
|
display: inline-flex;
|
|
7
|
+
overflow-y: clip; /* to work in pair with text-underline-offset in Safari */
|
|
7
8
|
gap: 0.375ch; /* =3/8 */
|
|
8
9
|
text-wrap: balance;
|
|
9
|
-
overflow-y: clip; /* to work in pair with text-underline-offset in Safari */
|
|
10
10
|
}
|
|
11
11
|
a > i {
|
|
12
|
-
font-style: normal;
|
|
13
12
|
float: left; /* ✅ Chrome ❌ Safari */
|
|
13
|
+
font-style: normal;
|
|
14
14
|
text-underline-offset: -2em; /* ❌ Chrome ✅ Safari - to clip it with overflow-y */
|
|
15
15
|
}
|
|
16
16
|
/* Favicons */
|
|
17
17
|
a > i > img {
|
|
18
|
+
display: inline-block; /* for Tailwind CSS Typography */
|
|
19
|
+
max-width: none; /* to keep ratio safe */
|
|
18
20
|
height: 1.25em;
|
|
19
21
|
margin-block-start: calc(-0.25em / 2);
|
|
20
|
-
max-width: none; /* to keep ratio safe */
|
|
21
|
-
display: inline-block; /* for Tailwind CSS Typography */
|
|
22
22
|
}
|
|
23
23
|
a > i[class^="fa-"],
|
|
24
24
|
a > i[class*=" fa-"] {
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
table.responsive,
|
|
5
5
|
.breakout > table:not(.does-not-exist),
|
|
6
6
|
.breakout-all > table:not(.does-not-exist) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
|
|
8
|
+
/* Let them scroll */
|
|
9
|
+
display: block;
|
|
10
10
|
|
|
11
11
|
/* Let them full-bleed */
|
|
12
12
|
width: -moz-max-content;
|
|
13
13
|
width: max-content;
|
|
14
14
|
min-width: auto;
|
|
15
15
|
max-width: 100dvw;
|
|
16
|
+
/* Center horizontally */
|
|
17
|
+
margin-left: 50%;
|
|
16
18
|
padding-inline: 7.5%;
|
|
17
|
-
|
|
18
|
-
/* Let them scroll */
|
|
19
|
-
display: block;
|
|
20
19
|
overflow-x: auto;
|
|
20
|
+
transform: translateX(-50%);
|
|
21
21
|
-webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
|
|
22
22
|
}
|
|
23
23
|
table.responsive th,
|