@anyblades/blades 2.2.2 → 2.2.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.
- package/README.md +13 -13
- package/assets/blades.css +11 -15
- package/assets/blades.standalone.core.css +13 -19
- package/assets/blades.standalone.css +13 -19
- package/assets/breakout.css +10 -3
- package/assets/responsive-table.css +1 -1
- package/blades.gemspec +1 -1
- package/package.json +1 -1
- package/src/breakout.css +7 -3
- package/src/content/_code.css +0 -15
- package/src/responsive-table.css +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<big>Fully compatible and actively maintained successor to Pico CSS.</big>
|
|
8
8
|
|
|
9
|
-
Includes [Float labels](
|
|
9
|
+
Includes [Float labels](//blades.ninja/css/float-label/), [Breakout layout](//blades.ninja/css/breakout/) and other modern helpers. Simply switch `pico.css` to `blades.css` or use `blades.standalone.css` with other frameworks.
|
|
10
10
|
|
|
11
11
|
<!--section:gh-only-->
|
|
12
12
|
|
|
@@ -157,23 +157,23 @@ Living example: https://github.com/anyblades/build-awesome-starter/blob/main/_st
|
|
|
157
157
|
|
|
158
158
|
<!--section:info-->
|
|
159
159
|
|
|
160
|
-
## <sup>Featured by</sup><!--A
|
|
160
|
+
## <sup>Featured by</sup><!--awesome,sites,social/Z-A-->
|
|
161
161
|
|
|
162
|
-
-
|
|
163
|
-
- [
|
|
164
|
-
- [
|
|
165
|
-
- [
|
|
166
|
-
-
|
|
167
|
-
- [
|
|
168
|
-
- [https://
|
|
169
|
-
- [
|
|
170
|
-
- [
|
|
162
|
+
- https://github.com/uhub/awesome-css
|
|
163
|
+
- [classless-css](https://github.com/dbohdan/classless-css#components:~:text=float%20label) [#float-label](//blades.ninja/css/float-label/){.faded}
|
|
164
|
+
- [awesome-css-frameworks-and-ui-libraries](https://github.com/gabrielizalo/awesome-css-frameworks-and-ui-libraries/tree/master/Lightweight)
|
|
165
|
+
- [awesome-11ty-build-awesome](https://github.com/anyblades/awesome-11ty-build-awesome)
|
|
166
|
+
- https://dummy.my/frameworks/
|
|
167
|
+
- [sveltiacms.app](https://sveltiacms.app/en/docs/start#starter-templates)
|
|
168
|
+
- [https://trendshift.io/](https://trendshift.io/repositories/29875) [#pico-fork](//blades.ninja/css/pico/){.faded}
|
|
169
|
+
- [@pauleveritt](https://fosstodon.org/@pauleveritt/116387278969347700)
|
|
170
|
+
- [@githubsignals](https://www.youtube.com/shorts/FxtvnBCse8w)
|
|
171
171
|
|
|
172
172
|
<!--{.markerless .columns}-->
|
|
173
173
|
|
|
174
174
|
## <sup>Credits</sup>
|
|
175
175
|
|
|
176
|
-
- https://picocss.com/
|
|
177
|
-
- https://11ty.dev/ for [this site generation](https://github.com/anyblades/blades.ninja)
|
|
176
|
+
- https://picocss.com/ for [inspiration](//blades.ninja/css/pico/)
|
|
177
|
+
- https://11ty.dev/ for [this site generation ↗](https://github.com/anyblades/blades.ninja)
|
|
178
178
|
|
|
179
179
|
<!--{.markerless}-->
|
package/assets/blades.css
CHANGED
|
@@ -530,6 +530,13 @@ How it works:
|
|
|
530
530
|
padding-inline: 10%;
|
|
531
531
|
max-width: calc(10% + 65ch + 10%);
|
|
532
532
|
}
|
|
533
|
+
@media (width < 768px) {
|
|
534
|
+
.breakout,
|
|
535
|
+
.breakout-all {
|
|
536
|
+
padding-inline: 1rem;
|
|
537
|
+
max-width: calc(1rem + 65ch + 1rem)
|
|
538
|
+
}
|
|
539
|
+
}
|
|
533
540
|
/* Breakout direct children only */
|
|
534
541
|
.breakout > *:is(
|
|
535
542
|
table,
|
|
@@ -552,7 +559,7 @@ How it works:
|
|
|
552
559
|
width: -moz-fit-content;
|
|
553
560
|
width: fit-content;
|
|
554
561
|
min-width: 100%;
|
|
555
|
-
max-width: 125
|
|
562
|
+
max-width: min(125%, 100dvw);
|
|
556
563
|
margin-left: 50%;
|
|
557
564
|
transform: translateX(-50%);
|
|
558
565
|
}
|
|
@@ -562,7 +569,7 @@ How it works:
|
|
|
562
569
|
}
|
|
563
570
|
/* Max out the width of the element */
|
|
564
571
|
.breakout > *.breakout-item-max, .breakout-all > *.breakout-item-max {
|
|
565
|
-
width: 125
|
|
572
|
+
width: min(125%, 100dvw) !important; /* !important is for cases like figure.breakout-item-max @TODO */
|
|
566
573
|
}
|
|
567
574
|
.breakout-all > *:is(h2, h3, h4, h5, h6, hr):not([class]) {
|
|
568
575
|
position: relative;
|
|
@@ -593,7 +600,7 @@ How it works:
|
|
|
593
600
|
overflow: visible;
|
|
594
601
|
}
|
|
595
602
|
.breakout-all > *:is(hr)::before {
|
|
596
|
-
width:
|
|
603
|
+
width: 100dvw;
|
|
597
604
|
left: 50%;
|
|
598
605
|
height: 100%;
|
|
599
606
|
transform: translateX(-50%);
|
|
@@ -897,7 +904,7 @@ table.responsive,
|
|
|
897
904
|
width: -moz-max-content;
|
|
898
905
|
width: max-content;
|
|
899
906
|
min-width: auto;
|
|
900
|
-
max-width:
|
|
907
|
+
max-width: 100dvw;
|
|
901
908
|
padding-inline: 7.5%;
|
|
902
909
|
|
|
903
910
|
/* Let them scroll */
|
|
@@ -975,17 +982,6 @@ code[data-caption]::before {
|
|
|
975
982
|
code:where(pre > *) {
|
|
976
983
|
padding: 0;
|
|
977
984
|
}
|
|
978
|
-
/* Extends https://github.com/PrismJS/prism/blob/master/plugins/treeview/prism-treeview.css */
|
|
979
|
-
.token.treeview-part .entry-line {
|
|
980
|
-
width: 2.5em !important;
|
|
981
|
-
opacity: 25%;
|
|
982
|
-
}
|
|
983
|
-
.token.treeview-part .entry-name:last-child {
|
|
984
|
-
opacity: 50%;
|
|
985
|
-
}
|
|
986
|
-
.token.treeview-part .entry-name:last-child::before {
|
|
987
|
-
display: none !important;
|
|
988
|
-
}
|
|
989
985
|
/*```
|
|
990
986
|
\3c !--section--> */
|
|
991
987
|
/* Forms */
|
|
@@ -65,6 +65,15 @@ How it works:
|
|
|
65
65
|
max-width: calc(10% + 65ch + 10%);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
@media (width < 768px) {
|
|
69
|
+
|
|
70
|
+
.breakout,
|
|
71
|
+
.breakout-all {
|
|
72
|
+
padding-inline: 1rem;
|
|
73
|
+
max-width: calc(1rem + 65ch + 1rem)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
68
77
|
/* Breakout direct children only */
|
|
69
78
|
|
|
70
79
|
.breakout > *:is(
|
|
@@ -88,7 +97,7 @@ How it works:
|
|
|
88
97
|
width: -moz-fit-content;
|
|
89
98
|
width: fit-content;
|
|
90
99
|
min-width: 100%;
|
|
91
|
-
max-width: 125
|
|
100
|
+
max-width: min(125%, 100dvw);
|
|
92
101
|
margin-left: 50%;
|
|
93
102
|
transform: translateX(-50%);
|
|
94
103
|
}
|
|
@@ -102,7 +111,7 @@ How it works:
|
|
|
102
111
|
/* Max out the width of the element */
|
|
103
112
|
|
|
104
113
|
.breakout > *.breakout-item-max, .breakout-all > *.breakout-item-max {
|
|
105
|
-
width: 125
|
|
114
|
+
width: min(125%, 100dvw) !important; /* !important is for cases like figure.breakout-item-max @TODO */
|
|
106
115
|
}
|
|
107
116
|
|
|
108
117
|
.breakout-all > *:is(h2, h3, h4, h5, h6, hr):not([class]) {
|
|
@@ -140,7 +149,7 @@ How it works:
|
|
|
140
149
|
}
|
|
141
150
|
|
|
142
151
|
.breakout-all > *:is(hr)::before {
|
|
143
|
-
width:
|
|
152
|
+
width: 100dvw;
|
|
144
153
|
left: 50%;
|
|
145
154
|
height: 100%;
|
|
146
155
|
transform: translateX(-50%);
|
|
@@ -480,7 +489,7 @@ table.responsive,
|
|
|
480
489
|
width: -moz-max-content;
|
|
481
490
|
width: max-content;
|
|
482
491
|
min-width: auto;
|
|
483
|
-
max-width:
|
|
492
|
+
max-width: 100dvw;
|
|
484
493
|
padding-inline: 7.5%;
|
|
485
494
|
|
|
486
495
|
/* Let them scroll */
|
|
@@ -568,21 +577,6 @@ code:where(pre > *) {
|
|
|
568
577
|
padding: 0;
|
|
569
578
|
}
|
|
570
579
|
|
|
571
|
-
/* Extends https://github.com/PrismJS/prism/blob/master/plugins/treeview/prism-treeview.css */
|
|
572
|
-
|
|
573
|
-
.token.treeview-part .entry-line {
|
|
574
|
-
width: 2.5em !important;
|
|
575
|
-
opacity: 25%;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.token.treeview-part .entry-name:last-child {
|
|
579
|
-
opacity: 50%;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.token.treeview-part .entry-name:last-child::before {
|
|
583
|
-
display: none !important;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
580
|
/*```
|
|
587
581
|
\3c !--section--> */
|
|
588
582
|
|
|
@@ -65,6 +65,15 @@ How it works:
|
|
|
65
65
|
max-width: calc(10% + 65ch + 10%);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
@media (width < 768px) {
|
|
69
|
+
|
|
70
|
+
.breakout,
|
|
71
|
+
.breakout-all {
|
|
72
|
+
padding-inline: 1rem;
|
|
73
|
+
max-width: calc(1rem + 65ch + 1rem)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
68
77
|
/* Breakout direct children only */
|
|
69
78
|
|
|
70
79
|
.breakout > *:is(
|
|
@@ -88,7 +97,7 @@ How it works:
|
|
|
88
97
|
width: -moz-fit-content;
|
|
89
98
|
width: fit-content;
|
|
90
99
|
min-width: 100%;
|
|
91
|
-
max-width: 125
|
|
100
|
+
max-width: min(125%, 100dvw);
|
|
92
101
|
margin-left: 50%;
|
|
93
102
|
transform: translateX(-50%);
|
|
94
103
|
}
|
|
@@ -102,7 +111,7 @@ How it works:
|
|
|
102
111
|
/* Max out the width of the element */
|
|
103
112
|
|
|
104
113
|
.breakout > *.breakout-item-max, .breakout-all > *.breakout-item-max {
|
|
105
|
-
width: 125
|
|
114
|
+
width: min(125%, 100dvw) !important; /* !important is for cases like figure.breakout-item-max @TODO */
|
|
106
115
|
}
|
|
107
116
|
|
|
108
117
|
.breakout-all > *:is(h2, h3, h4, h5, h6, hr):not([class]) {
|
|
@@ -140,7 +149,7 @@ How it works:
|
|
|
140
149
|
}
|
|
141
150
|
|
|
142
151
|
.breakout-all > *:is(hr)::before {
|
|
143
|
-
width:
|
|
152
|
+
width: 100dvw;
|
|
144
153
|
left: 50%;
|
|
145
154
|
height: 100%;
|
|
146
155
|
transform: translateX(-50%);
|
|
@@ -480,7 +489,7 @@ table.responsive,
|
|
|
480
489
|
width: -moz-max-content;
|
|
481
490
|
width: max-content;
|
|
482
491
|
min-width: auto;
|
|
483
|
-
max-width:
|
|
492
|
+
max-width: 100dvw;
|
|
484
493
|
padding-inline: 7.5%;
|
|
485
494
|
|
|
486
495
|
/* Let them scroll */
|
|
@@ -568,21 +577,6 @@ code:where(pre > *) {
|
|
|
568
577
|
padding: 0;
|
|
569
578
|
}
|
|
570
579
|
|
|
571
|
-
/* Extends https://github.com/PrismJS/prism/blob/master/plugins/treeview/prism-treeview.css */
|
|
572
|
-
|
|
573
|
-
.token.treeview-part .entry-line {
|
|
574
|
-
width: 2.5em !important;
|
|
575
|
-
opacity: 25%;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.token.treeview-part .entry-name:last-child {
|
|
579
|
-
opacity: 50%;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
.token.treeview-part .entry-name:last-child::before {
|
|
583
|
-
display: none !important;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
580
|
/*```
|
|
587
581
|
\3c !--section--> */
|
|
588
582
|
|
package/assets/breakout.css
CHANGED
|
@@ -7,6 +7,13 @@
|
|
|
7
7
|
padding-inline: 10%;
|
|
8
8
|
max-width: calc(10% + 65ch + 10%);
|
|
9
9
|
}
|
|
10
|
+
@media (width < 768px) {
|
|
11
|
+
.breakout,
|
|
12
|
+
.breakout-all {
|
|
13
|
+
padding-inline: 1rem;
|
|
14
|
+
max-width: calc(1rem + 65ch + 1rem)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
10
17
|
/* Breakout direct children only */
|
|
11
18
|
.breakout > *:is(
|
|
12
19
|
table,
|
|
@@ -29,7 +36,7 @@
|
|
|
29
36
|
width: -moz-fit-content;
|
|
30
37
|
width: fit-content;
|
|
31
38
|
min-width: 100%;
|
|
32
|
-
max-width: 125
|
|
39
|
+
max-width: min(125%, 100dvw);
|
|
33
40
|
margin-left: 50%;
|
|
34
41
|
transform: translateX(-50%);
|
|
35
42
|
}
|
|
@@ -39,7 +46,7 @@
|
|
|
39
46
|
}
|
|
40
47
|
/* Max out the width of the element */
|
|
41
48
|
.breakout > *.breakout-item-max, .breakout-all > *.breakout-item-max {
|
|
42
|
-
width: 125
|
|
49
|
+
width: min(125%, 100dvw) !important; /* !important is for cases like figure.breakout-item-max @TODO */
|
|
43
50
|
}
|
|
44
51
|
.breakout-all > *:is(h2, h3, h4, h5, h6, hr):not([class]) {
|
|
45
52
|
position: relative;
|
|
@@ -70,7 +77,7 @@
|
|
|
70
77
|
overflow: visible;
|
|
71
78
|
}
|
|
72
79
|
.breakout-all > *:is(hr)::before {
|
|
73
|
-
width:
|
|
80
|
+
width: 100dvw;
|
|
74
81
|
left: 50%;
|
|
75
82
|
height: 100%;
|
|
76
83
|
transform: translateX(-50%);
|
package/blades.gemspec
CHANGED
package/package.json
CHANGED
package/src/breakout.css
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
/* Prepare the container for breakout elements */
|
|
7
7
|
padding-inline: 10%;
|
|
8
8
|
max-width: calc(10% + 65ch + 10%);
|
|
9
|
+
@media (width < 768px) {
|
|
10
|
+
padding-inline: 1rem;
|
|
11
|
+
max-width: calc(1rem + 65ch + 1rem);
|
|
12
|
+
}
|
|
9
13
|
|
|
10
14
|
/* Breakout direct children only */
|
|
11
15
|
& > * {
|
|
@@ -20,7 +24,7 @@
|
|
|
20
24
|
) {
|
|
21
25
|
width: fit-content;
|
|
22
26
|
min-width: 100%;
|
|
23
|
-
max-width: 125
|
|
27
|
+
max-width: min(125%, 100dvw);
|
|
24
28
|
margin-left: 50%;
|
|
25
29
|
transform: translateX(-50%);
|
|
26
30
|
}
|
|
@@ -32,7 +36,7 @@
|
|
|
32
36
|
|
|
33
37
|
/* Max out the width of the element */
|
|
34
38
|
&.breakout-item-max {
|
|
35
|
-
width: 125
|
|
39
|
+
width: min(125%, 100dvw) !important; /* !important is for cases like figure.breakout-item-max @TODO */
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
}
|
|
@@ -74,7 +78,7 @@
|
|
|
74
78
|
overflow: visible;
|
|
75
79
|
|
|
76
80
|
&::before {
|
|
77
|
-
width:
|
|
81
|
+
width: 100dvw;
|
|
78
82
|
left: 50%;
|
|
79
83
|
height: 100%;
|
|
80
84
|
transform: translateX(-50%);
|
package/src/content/_code.css
CHANGED
|
@@ -38,20 +38,5 @@ code {
|
|
|
38
38
|
padding: 0;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
/* Extends https://github.com/PrismJS/prism/blob/master/plugins/treeview/prism-treeview.css */
|
|
43
|
-
.token.treeview-part {
|
|
44
|
-
.entry-line {
|
|
45
|
-
width: 2.5em !important;
|
|
46
|
-
opacity: 25%;
|
|
47
|
-
}
|
|
48
|
-
.entry-name:last-child {
|
|
49
|
-
opacity: 50%;
|
|
50
|
-
|
|
51
|
-
&::before {
|
|
52
|
-
display: none !important;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
41
|
/*```
|
|
57
42
|
<!--section--> */
|