@anyblades/pico 2.2.0-beta → 2.2.0
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 +2 -2
- package/css/pico.blades.css +32 -32
- package/css/pico.blades.min.css +2 -2
- package/css/pico.css +1 -1
- package/css/pico.min.css +1 -1
- package/package.json +2 -2
- package/src/pico.blades.css +1 -1
- package/src/pico.css +1 -1
package/README.md
CHANGED
|
@@ -88,14 +88,14 @@ Alternatively, you can use [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@
|
|
|
88
88
|
<!--prettier-ignore-->
|
|
89
89
|
```html
|
|
90
90
|
<link rel="stylesheet" href="
|
|
91
|
-
https://cdn.jsdelivr.net/npm/@anyblades/pico@^2.2.0-
|
|
91
|
+
https://cdn.jsdelivr.net/npm/@anyblades/pico@^2.2.0-beta/css/pico.blades.min.css
|
|
92
92
|
"/>
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
### Install with NPM
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
npm install @anyblades/pico@
|
|
98
|
+
npm install @anyblades/pico@beta @anyblades/blades
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
Then, import Pico+*Bl*ades into your CSS:
|
package/css/pico.blades.css
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/*!
|
|
3
|
-
* Pico CSS ✨ v2.2
|
|
3
|
+
* Pico CSS ✨ v2.2.0 + Blades CSS 🥷 v0.28.0
|
|
4
4
|
* Copyright 2026 (https://blades.ninja/css/pico/)
|
|
5
5
|
* Licensed under MIT
|
|
6
6
|
*/
|
|
7
7
|
/*!
|
|
8
|
-
* Pico CSS ✨ v2.2
|
|
8
|
+
* Pico CSS ✨ v2.2.0
|
|
9
9
|
* Copyright 2019-2025 (https://picocss.com)
|
|
10
10
|
* Copyright 2026 (https://blades.ninja/css/pico/)
|
|
11
11
|
* Licensed under MIT
|
|
@@ -3012,7 +3012,7 @@ textarea,
|
|
|
3012
3012
|
/* Follows https://github.com/picocss/pico/blob/main/scss/_index.scss */
|
|
3013
3013
|
/* Layout */
|
|
3014
3014
|
/* Extends https://github.com/picocss/pico/blob/main/scss/layout/
|
|
3015
|
-
|
|
3015
|
+
\3c !--section:docs-->
|
|
3016
3016
|
|
|
3017
3017
|
### Auto-columns
|
|
3018
3018
|
|
|
@@ -3055,9 +3055,9 @@ Useful for tables of contents and long lists.
|
|
|
3055
3055
|
padding-top: 50vh;
|
|
3056
3056
|
}
|
|
3057
3057
|
/*```
|
|
3058
|
-
|
|
3058
|
+
\3c !--section--> */
|
|
3059
3059
|
/*
|
|
3060
|
-
|
|
3060
|
+
\3c !--section:code-->
|
|
3061
3061
|
```css */
|
|
3062
3062
|
.breakout,
|
|
3063
3063
|
.breakout-all {
|
|
@@ -3134,17 +3134,17 @@ Useful for tables of contents and long lists.
|
|
|
3134
3134
|
transform: translateX(-50%);
|
|
3135
3135
|
}
|
|
3136
3136
|
/*```
|
|
3137
|
-
|
|
3137
|
+
\3c !--section:summary-->
|
|
3138
3138
|
|
|
3139
3139
|
The `.breakout` layout allows images, tables, and other figures to automatically extend or bleed beyond their parent container’s width.
|
|
3140
3140
|
|
|
3141
|
-
|
|
3141
|
+
\3c !--section:docs-->
|
|
3142
3142
|
|
|
3143
|
-
### Demo
|
|
3143
|
+
### Demo \3c !-- inside parent .breakout -->
|
|
3144
3144
|
|
|
3145
3145
|
Break out a wide image from the text flow:
|
|
3146
3146
|
|
|
3147
|
-
<div
|
|
3147
|
+
<div>\3c !-- Dummy div to avoid p tag in Markdown --></div><img
|
|
3148
3148
|
src="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='3000' height='300'><rect width='100%' height='100%' fill='gray'/></svg>">
|
|
3149
3149
|
|
|
3150
3150
|
Or table:
|
|
@@ -3173,10 +3173,10 @@ Or anything else:
|
|
|
3173
3173
|
<h2>Heading 2</h2><h3>Heading 3</h3><h4>Heading 4</h4><h5>Heading 5</h5><h6>Heading 6</h6>
|
|
3174
3174
|
<hr>
|
|
3175
3175
|
|
|
3176
|
-
|
|
3176
|
+
\3c !--section--> */
|
|
3177
3177
|
/* Content */
|
|
3178
3178
|
/* Extends https://github.com/picocss/pico/blob/main/scss/content/_typography.scss
|
|
3179
|
-
|
|
3179
|
+
\3c !--section:docs-->
|
|
3180
3180
|
|
|
3181
3181
|
### Heading anchors
|
|
3182
3182
|
|
|
@@ -3280,9 +3280,9 @@ ul.unlist > li, ul.unlist-all > li, .unlist-all ul > li, ol.unlist > li, ol.unli
|
|
|
3280
3280
|
}
|
|
3281
3281
|
/*```
|
|
3282
3282
|
</details>
|
|
3283
|
-
|
|
3283
|
+
\3c !--section--> */
|
|
3284
3284
|
/* Extends https://github.com/picocss/pico/blob/main/scss/content/_link.scss
|
|
3285
|
-
|
|
3285
|
+
\3c !--section:code-->
|
|
3286
3286
|
```css */
|
|
3287
3287
|
/* Use inline flex only if link contains an icon */
|
|
3288
3288
|
a:has(> i) {
|
|
@@ -3312,12 +3312,12 @@ a > i.fa-lg {
|
|
|
3312
3312
|
line-height: normal;
|
|
3313
3313
|
}
|
|
3314
3314
|
/*```
|
|
3315
|
-
|
|
3315
|
+
\3c !--section:summary-->
|
|
3316
3316
|
|
|
3317
3317
|
Use *Bl*ades `<i>`-helper to wrap emojis, favicons, or simply drop Font Awesome icons inside links.
|
|
3318
3318
|
It automatically handles sizing and alignment while preventing underline on icons.
|
|
3319
3319
|
|
|
3320
|
-
|
|
3320
|
+
\3c !--section:docs-->
|
|
3321
3321
|
|
|
3322
3322
|
<article class="breakout-item">
|
|
3323
3323
|
|
|
@@ -3338,9 +3338,9 @@ How we made it: https://codepen.io/editor/anydigital/pen/019d2b94-5616-75dc-a23e
|
|
|
3338
3338
|
|
|
3339
3339
|
**PRO** example of automatic favicons for `11ty`: https://blades.ninja/build-awesome-11ty/processors/#auto-link-favicons
|
|
3340
3340
|
|
|
3341
|
-
|
|
3341
|
+
\3c !--section--> */
|
|
3342
3342
|
/* Extends https://github.com/picocss/pico/blob/main/scss/content/_table.scss
|
|
3343
|
-
|
|
3343
|
+
\3c !--section:docs-->
|
|
3344
3344
|
|
|
3345
3345
|
### Column expanders
|
|
3346
3346
|
|
|
@@ -3353,7 +3353,7 @@ Place `<hr>` element inside `<th>` column to expand it horizontally:
|
|
|
3353
3353
|
| (012) 345-6789 | (012) 345-6789 |
|
|
3354
3354
|
</article>
|
|
3355
3355
|
|
|
3356
|
-
Living examples of big tables with `<hr>`-expanders:
|
|
3356
|
+
Living examples of big tables with `<hr>`-expanders: \3c !--A-Z-->
|
|
3357
3357
|
- https://blades.ninja/ai/ide/
|
|
3358
3358
|
- https://blades.ninja/build-awesome-11ty/starters/
|
|
3359
3359
|
- https://blades.ninja/css/frameworks/
|
|
@@ -3391,13 +3391,13 @@ th hr.x2 {
|
|
|
3391
3391
|
|
|
3392
3392
|
Living example: https://bladeswitch.com/#minimal-dependencies table
|
|
3393
3393
|
|
|
3394
|
-
|
|
3394
|
+
\3c !--section--> */
|
|
3395
3395
|
table.borderless th,
|
|
3396
3396
|
table.borderless td {
|
|
3397
3397
|
border: none;
|
|
3398
3398
|
}
|
|
3399
3399
|
/*
|
|
3400
|
-
|
|
3400
|
+
\3c !--section:code-->
|
|
3401
3401
|
```css */
|
|
3402
3402
|
table.responsive,
|
|
3403
3403
|
.breakout > table:not(.does-not-exist),
|
|
@@ -3429,12 +3429,12 @@ table.responsive th,
|
|
|
3429
3429
|
/*```
|
|
3430
3430
|
`table:not(.does-not-exist)` trick (inspired by postcss) is used here to increase specificity against selectors like `&:is(table, .table)`
|
|
3431
3431
|
|
|
3432
|
-
|
|
3432
|
+
\3c !--section:summary-->
|
|
3433
3433
|
|
|
3434
3434
|
`.responsive` makes a table full-bleed and scroll on mobile, without a need for a redundant wrapper (finally).
|
|
3435
3435
|
Tables inside https://blades.ninja/css/breakout/ are responsive by default.
|
|
3436
3436
|
|
|
3437
|
-
|
|
3437
|
+
\3c !--section:docs-->
|
|
3438
3438
|
|
|
3439
3439
|
### Demo table
|
|
3440
3440
|
|
|
@@ -3446,15 +3446,15 @@ Tables inside https://blades.ninja/css/breakout/ are responsive by default.
|
|
|
3446
3446
|
|
|
3447
3447
|
---
|
|
3448
3448
|
|
|
3449
|
-
Living examples:
|
|
3449
|
+
Living examples: \3c !--A-Z-->
|
|
3450
3450
|
- https://blades.ninja/ai/ide/
|
|
3451
3451
|
- https://blades.ninja/build-awesome-11ty/starters/
|
|
3452
3452
|
- https://blades.ninja/css/frameworks/
|
|
3453
3453
|
- https://blades.ninja/ssg/
|
|
3454
3454
|
|
|
3455
|
-
|
|
3455
|
+
\3c !--section--> */
|
|
3456
3456
|
/* Extends https://github.com/picocss/pico/blob/main/scss/content/_code.scss
|
|
3457
|
-
|
|
3457
|
+
\3c !--section:docs-->
|
|
3458
3458
|
|
|
3459
3459
|
### Code
|
|
3460
3460
|
|
|
@@ -3502,10 +3502,10 @@ code:where(pre > *) {
|
|
|
3502
3502
|
}
|
|
3503
3503
|
/*```
|
|
3504
3504
|
</details>
|
|
3505
|
-
|
|
3505
|
+
\3c !--section--> */
|
|
3506
3506
|
/* Forms */
|
|
3507
3507
|
/* Moved here from https://github.com/anyblades/float-label-css for easier maintenance
|
|
3508
|
-
|
|
3508
|
+
\3c !--section:docs-->
|
|
3509
3509
|
|
|
3510
3510
|
First, we target either:
|
|
3511
3511
|
1. `<label>` which `:has` inner form inputs (classless approach)
|
|
@@ -3562,10 +3562,10 @@ label:has(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea
|
|
|
3562
3562
|
The `:has(*:placeholder-shown:not(:focus))` trick allows this input state information to *propagate* to the parent level. This enables modern CSS to target inner float label (`<span>` or `<label>`) regardless of its position relative to the input field.
|
|
3563
3563
|
|
|
3564
3564
|
Historically, this was not possible: the float label had to be placed after the input field to be targeted using the `input:focus + label` selector.
|
|
3565
|
-
|
|
3565
|
+
\3c !--section--> */
|
|
3566
3566
|
/* Utilities */
|
|
3567
3567
|
/* Extends https://github.com/picocss/pico/tree/main/scss/utilities
|
|
3568
|
-
|
|
3568
|
+
\3c !--section:docs-->
|
|
3569
3569
|
|
|
3570
3570
|
### Auto-dark
|
|
3571
3571
|
|
|
@@ -3616,13 +3616,13 @@ Historically, this was not possible: the float label had to be placed after the
|
|
|
3616
3616
|
}
|
|
3617
3617
|
/*```
|
|
3618
3618
|
</details>
|
|
3619
|
-
|
|
3619
|
+
\3c !--section--> */
|
|
3620
3620
|
/* Fix the scrollbar color when inverted by https://tailwindcss.com/docs/filter-invert */
|
|
3621
3621
|
.invert ::-webkit-scrollbar {
|
|
3622
3622
|
filter: invert(1) !important;
|
|
3623
3623
|
}
|
|
3624
3624
|
/*
|
|
3625
|
-
|
|
3625
|
+
\3c !--section:code-->
|
|
3626
3626
|
```css */
|
|
3627
3627
|
/* Default/fallback state */
|
|
3628
3628
|
label:has(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea, select) > span,
|
|
@@ -3749,4 +3749,4 @@ table pre {
|
|
|
3749
3749
|
text-decoration-style: dotted;
|
|
3750
3750
|
}
|
|
3751
3751
|
/*```
|
|
3752
|
-
|
|
3752
|
+
\3c !--section--> */
|
package/css/pico.blades.min.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@charset "UTF-8";/*!
|
|
2
|
-
* Pico CSS ✨ v2.2
|
|
2
|
+
* Pico CSS ✨ v2.2.0 + Blades CSS 🥷 v0.28.0
|
|
3
3
|
* Copyright 2026 (https://blades.ninja/css/pico/)
|
|
4
4
|
* Licensed under MIT
|
|
5
5
|
*//*!
|
|
6
|
-
* Pico CSS ✨ v2.2
|
|
6
|
+
* Pico CSS ✨ v2.2.0
|
|
7
7
|
* Copyright 2019-2025 (https://picocss.com)
|
|
8
8
|
* Copyright 2026 (https://blades.ninja/css/pico/)
|
|
9
9
|
* Licensed under MIT
|
package/css/pico.css
CHANGED
package/css/pico.min.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anyblades/pico",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Minimal CSS Framework for semantic HTML",
|
|
5
5
|
"author": "Lucas Larroche",
|
|
6
6
|
"contributors": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"done": "echo '\\033[32m[@anyblades/pico] ✨ Done\\033[0m'"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@anyblades/blades": "^0.28.0
|
|
53
|
+
"@anyblades/blades": "^0.28.0",
|
|
54
54
|
"autoprefixer": "^10.4.21",
|
|
55
55
|
"caniuse-lite": "1.0.30001704",
|
|
56
56
|
"clean-css-cli": "^5.6.3",
|
package/src/pico.blades.css
CHANGED