@anyblades/blades 2.4.0 → 2.4.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/blades.gemspec +1 -1
- package/css/blades.css +12 -12
- package/css/blades.ninja.css +24 -0
- package/css/blades.standalone.core.css +1 -1
- package/css/blades.standalone.css +1 -1
- package/css/breakout.css +1 -1
- package/package.json +2 -2
- package/src/blades.ninja.css +24 -0
- package/src/breakout.css +1 -1
package/blades.gemspec
CHANGED
package/css/blades.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright 2026 - Licensed under MIT
|
|
5
5
|
*/
|
|
6
6
|
/*!
|
|
7
|
-
* Pico CSS ✨ v2.
|
|
7
|
+
* Pico CSS ✨ v2.4
|
|
8
8
|
* Copyright 2019-2025 (https://picocss.com)
|
|
9
9
|
* Copyright 2026 (https://blades.ninja/css/pico/)
|
|
10
10
|
* Licensed under MIT
|
|
@@ -411,13 +411,7 @@ details summary[role="button"]:not(.outline)::after {
|
|
|
411
411
|
--pico-contrast-hover-underline: var(--pico-contrast-hover);
|
|
412
412
|
--pico-contrast-focus: rgba(207, 213, 226, 0.25);
|
|
413
413
|
--pico-contrast-inverse: #000;
|
|
414
|
-
--pico-box-shadow:
|
|
415
|
-
0.0145rem 0.029rem 0.174rem rgba(7, 8.5, 12, 0.01698),
|
|
416
|
-
0.0335rem 0.067rem 0.402rem rgba(7, 8.5, 12, 0.024),
|
|
417
|
-
0.0625rem 0.125rem 0.75rem rgba(7, 8.5, 12, 0.03),
|
|
418
|
-
0.1125rem 0.225rem 1.35rem rgba(7, 8.5, 12, 0.036),
|
|
419
|
-
0.2085rem 0.417rem 2.502rem rgba(7, 8.5, 12, 0.04302),
|
|
420
|
-
0.5rem 1rem 6rem rgba(7, 8.5, 12, 0.06), 0 0 0 0.0625rem rgba(7, 8.5, 12, 0.015);
|
|
414
|
+
--pico-box-shadow: 0 0.5rem 2.5rem rgba(7, 8.5, 12, 0.2);
|
|
421
415
|
--pico-h1-color: #f0f1f3;
|
|
422
416
|
--pico-h2-color: #e0e3e7;
|
|
423
417
|
--pico-h3-color: #c2c7d0;
|
|
@@ -1231,9 +1225,11 @@ audio:not([controls]) {
|
|
|
1231
1225
|
:where(iframe) {
|
|
1232
1226
|
border-style: none;
|
|
1233
1227
|
}
|
|
1234
|
-
img {
|
|
1235
|
-
|
|
1236
|
-
|
|
1228
|
+
img:not([height]) {
|
|
1229
|
+
max-width: 100%;
|
|
1230
|
+
height: auto;
|
|
1231
|
+
}
|
|
1232
|
+
img{
|
|
1237
1233
|
border-style: none;
|
|
1238
1234
|
}
|
|
1239
1235
|
:where(svg:not([fill])) {
|
|
@@ -1248,6 +1244,7 @@ svg:not(:host) {
|
|
|
1248
1244
|
*/
|
|
1249
1245
|
pre,
|
|
1250
1246
|
code,
|
|
1247
|
+
var,
|
|
1251
1248
|
kbd,
|
|
1252
1249
|
samp {
|
|
1253
1250
|
font-size: 0.875em;
|
|
@@ -1264,6 +1261,7 @@ pre {
|
|
|
1264
1261
|
}
|
|
1265
1262
|
pre,
|
|
1266
1263
|
code,
|
|
1264
|
+
var,
|
|
1267
1265
|
kbd,
|
|
1268
1266
|
samp {
|
|
1269
1267
|
border-radius: var(--pico-border-radius);
|
|
@@ -1273,6 +1271,7 @@ samp {
|
|
|
1273
1271
|
line-height: initial;
|
|
1274
1272
|
}
|
|
1275
1273
|
code,
|
|
1274
|
+
var,
|
|
1276
1275
|
kbd,
|
|
1277
1276
|
samp {
|
|
1278
1277
|
display: inline-block;
|
|
@@ -1397,6 +1396,7 @@ input:not([type="checkbox"], [type="radio"], [type="range"]) {
|
|
|
1397
1396
|
}
|
|
1398
1397
|
fieldset {
|
|
1399
1398
|
width: 100%;
|
|
1399
|
+
min-width: 0;
|
|
1400
1400
|
margin: 0;
|
|
1401
1401
|
margin-bottom: var(--pico-spacing);
|
|
1402
1402
|
padding: 0;
|
|
@@ -3100,7 +3100,7 @@ How it works:
|
|
|
3100
3100
|
transform: translateX(-50%);
|
|
3101
3101
|
}
|
|
3102
3102
|
/* Respect img/picture min-width */
|
|
3103
|
-
.breakout > *:is(img, picture), .breakout-all > *:is(img, picture) {
|
|
3103
|
+
.breakout > *:is(img, picture):not(.does-not-exist), .breakout-all > *:is(img, picture):not(.does-not-exist) /* soft win specificity over .breakout-item above */ {
|
|
3104
3104
|
min-width: auto;
|
|
3105
3105
|
}
|
|
3106
3106
|
/* Max out the width of the element */
|
package/css/blades.ninja.css
CHANGED
|
@@ -28,6 +28,24 @@ sub[style]:where(h1 > *) {
|
|
|
28
28
|
}
|
|
29
29
|
/*```
|
|
30
30
|
|
|
31
|
+
### Teasers
|
|
32
|
+
|
|
33
|
+
<article style="padding-inline: 2rem">
|
|
34
|
+
<a href="https://blades.ninja/" role="button" class="outline">
|
|
35
|
+
<h4>Blades CSS</h4>
|
|
36
|
+
Fully compatible and actively maintained successor to Pico CSS.
|
|
37
|
+
</a>
|
|
38
|
+
</article>
|
|
39
|
+
|
|
40
|
+
How it works:
|
|
41
|
+
```css */
|
|
42
|
+
a[role="button"]:has(h1, h2, h3, h4, h5, h6) {
|
|
43
|
+
margin: 0 0 0.5rem -1rem;
|
|
44
|
+
border-width: 1px 0 0 1px;
|
|
45
|
+
text-align: start;
|
|
46
|
+
}
|
|
47
|
+
/*```
|
|
48
|
+
|
|
31
49
|
### `.opt`ional content
|
|
32
50
|
|
|
33
51
|
How it works:
|
|
@@ -41,6 +59,12 @@ How it works:
|
|
|
41
59
|
|
|
42
60
|
### Nicer GitHub favicons
|
|
43
61
|
|
|
62
|
+
<article>
|
|
63
|
+
|
|
64
|
+
https://github.com/anyblades/blades
|
|
65
|
+
|
|
66
|
+
</article>
|
|
67
|
+
|
|
44
68
|
How it works:
|
|
45
69
|
```css */
|
|
46
70
|
img[src*="?domain=github.com&"] {
|
|
@@ -104,7 +104,7 @@ How it works:
|
|
|
104
104
|
|
|
105
105
|
/* Respect img/picture min-width */
|
|
106
106
|
|
|
107
|
-
.breakout > *:is(img, picture), .breakout-all > *:is(img, picture) {
|
|
107
|
+
.breakout > *:is(img, picture):not(.does-not-exist), .breakout-all > *:is(img, picture):not(.does-not-exist) /* soft win specificity over .breakout-item above */ {
|
|
108
108
|
min-width: auto;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -104,7 +104,7 @@ How it works:
|
|
|
104
104
|
|
|
105
105
|
/* Respect img/picture min-width */
|
|
106
106
|
|
|
107
|
-
.breakout > *:is(img, picture), .breakout-all > *:is(img, picture) {
|
|
107
|
+
.breakout > *:is(img, picture):not(.does-not-exist), .breakout-all > *:is(img, picture):not(.does-not-exist) /* soft win specificity over .breakout-item above */ {
|
|
108
108
|
min-width: auto;
|
|
109
109
|
}
|
|
110
110
|
|
package/css/breakout.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
transform: translateX(-50%);
|
|
42
42
|
}
|
|
43
43
|
/* Respect img/picture min-width */
|
|
44
|
-
.breakout > *:is(img, picture), .breakout-all > *:is(img, picture) {
|
|
44
|
+
.breakout > *:is(img, picture):not(.does-not-exist), .breakout-all > *:is(img, picture):not(.does-not-exist) /* soft win specificity over .breakout-item above */ {
|
|
45
45
|
min-width: auto;
|
|
46
46
|
}
|
|
47
47
|
/* Max out the width of the element */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anyblades/blades",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": "./src/blades.css",
|
|
6
6
|
"./standalone": "./src/blades.standalone.css",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"prepublishOnly": "npm run build"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@anyblades/pico": "^2.
|
|
19
|
+
"@anyblades/pico": "^2.4.1",
|
|
20
20
|
"autoprefixer": "^10.5.0",
|
|
21
21
|
"css-declaration-sorter": "^7.4.0",
|
|
22
22
|
"postcss": "^8.4.33",
|
package/src/blades.ninja.css
CHANGED
|
@@ -29,6 +29,24 @@ sub[style] {
|
|
|
29
29
|
}
|
|
30
30
|
/*```
|
|
31
31
|
|
|
32
|
+
### Teasers
|
|
33
|
+
|
|
34
|
+
<article style="padding-inline: 2rem">
|
|
35
|
+
<a href="https://blades.ninja/" role="button" class="outline">
|
|
36
|
+
<h4>Blades CSS</h4>
|
|
37
|
+
Fully compatible and actively maintained successor to Pico CSS.
|
|
38
|
+
</a>
|
|
39
|
+
</article>
|
|
40
|
+
|
|
41
|
+
How it works:
|
|
42
|
+
```css */
|
|
43
|
+
a[role="button"]:has(h1, h2, h3, h4, h5, h6) {
|
|
44
|
+
text-align: start;
|
|
45
|
+
border-width: 1px 0 0 1px;
|
|
46
|
+
margin: 0 0 0.5rem -1rem;
|
|
47
|
+
}
|
|
48
|
+
/*```
|
|
49
|
+
|
|
32
50
|
### `.opt`ional content
|
|
33
51
|
|
|
34
52
|
How it works:
|
|
@@ -42,6 +60,12 @@ How it works:
|
|
|
42
60
|
|
|
43
61
|
### Nicer GitHub favicons
|
|
44
62
|
|
|
63
|
+
<article>
|
|
64
|
+
|
|
65
|
+
https://github.com/anyblades/blades
|
|
66
|
+
|
|
67
|
+
</article>
|
|
68
|
+
|
|
45
69
|
How it works:
|
|
46
70
|
```css */
|
|
47
71
|
img[src*="?domain=github.com&"] {
|