@anyblades/blades 3.0.0 → 3.1.0-alpha.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.
Files changed (57) hide show
  1. package/README.md +79 -12
  2. package/css/blades.css +219 -419
  3. package/css/blades.min.css +41 -30
  4. package/css/pico.conditional.css +219 -419
  5. package/css/pico.conditional.min.css +41 -30
  6. package/css/pico.css +219 -419
  7. package/css/pico.layered.css +2990 -0
  8. package/css/pico.layered.min.css +118 -0
  9. package/css/pico.min.css +41 -30
  10. package/package.json +27 -7
  11. package/src/pico/_index.css +4 -4
  12. package/src/pico/_utilities.css +0 -21
  13. package/src/pico/_variables.css +76 -386
  14. package/src/pico/components/_accordion.css +82 -0
  15. package/src/pico/components/_card.css +45 -0
  16. package/src/pico/components/_dropdown.css +188 -0
  17. package/src/pico/components/_group.css +205 -0
  18. package/src/pico/components/_index.css +9 -0
  19. package/src/pico/components/_loading.css +40 -0
  20. package/src/pico/components/_modal.css +157 -0
  21. package/src/pico/components/_nav.css +114 -0
  22. package/src/pico/components/_progress.css +73 -0
  23. package/src/pico/components/_tooltip.css +173 -0
  24. package/src/pico/content/_button.css +205 -0
  25. package/src/pico/content/_code.css +61 -0
  26. package/src/pico/content/_embedded-content.css +37 -0
  27. package/src/pico/content/_figure.css +12 -0
  28. package/src/pico/content/_index.css +8 -0
  29. package/src/pico/content/_link.css +81 -0
  30. package/src/pico/content/_misc.css +19 -0
  31. package/src/pico/content/_table.css +30 -0
  32. package/src/pico/content/_typography.css +156 -0
  33. package/src/pico/forms/_basics.css +335 -0
  34. package/src/pico/forms/_checkbox-radio-switch.css +161 -0
  35. package/src/pico/forms/_index.css +7 -0
  36. package/src/pico/forms/_input-color.css +17 -0
  37. package/src/pico/forms/_input-datetime.css +54 -0
  38. package/src/pico/forms/_input-file.css +26 -0
  39. package/src/pico/forms/_input-range.css +118 -0
  40. package/src/pico/forms/_input-search.css +63 -0
  41. package/src/pico/layout/_container.css +39 -0
  42. package/src/pico/layout/_document.css +36 -0
  43. package/src/pico/layout/_grid.css +19 -0
  44. package/src/pico/layout/_index.css +6 -0
  45. package/src/pico/layout/_landmarks.css +17 -0
  46. package/src/pico/layout/_overflow-auto.css +6 -0
  47. package/src/pico/layout/_section.css +6 -0
  48. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -25
  49. package/.github/ISSUE_TEMPLATE/config.yml +0 -8
  50. package/CODE_OF_CONDUCT.md +0 -92
  51. package/context7.json +0 -4
  52. package/css/postcss.config.js +0 -23
  53. package/index.html +0 -63
  54. package/src/pico/_components.css +0 -974
  55. package/src/pico/_content.css +0 -608
  56. package/src/pico/_forms.css +0 -747
  57. package/src/pico/_layout.css +0 -128
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Link
3
+ */
4
+ :where(a:not([role="button"])),
5
+ [role="link"] {
6
+ --pico-color: var(--pico-primary);
7
+ --pico-background-color: transparent;
8
+ --pico-underline: var(--pico-primary-underline);
9
+ outline: none;
10
+ background-color: var(--pico-background-color);
11
+ color: var(--pico-color);
12
+ -webkit-text-decoration: var(--pico-text-decoration);
13
+ text-decoration: var(--pico-text-decoration);
14
+ text-decoration-color: var(--pico-underline);
15
+ text-underline-offset: 0.125em;
16
+ transition:
17
+ background-color var(--pico-transition),
18
+ color var(--pico-transition),
19
+ box-shadow var(--pico-transition),
20
+ -webkit-text-decoration var(--pico-transition);
21
+ transition:
22
+ background-color var(--pico-transition),
23
+ color var(--pico-transition),
24
+ text-decoration var(--pico-transition),
25
+ box-shadow var(--pico-transition);
26
+ transition:
27
+ background-color var(--pico-transition),
28
+ color var(--pico-transition),
29
+ text-decoration var(--pico-transition),
30
+ box-shadow var(--pico-transition),
31
+ -webkit-text-decoration var(--pico-transition);
32
+ }
33
+ :where(a:not([role="button"])):is(
34
+ [aria-current]:not([aria-current="false"]),
35
+ :hover,
36
+ :active,
37
+ :focus
38
+ ),
39
+ [role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
40
+ --pico-color: var(--pico-primary-hover);
41
+ --pico-underline: var(--pico-primary-hover-underline);
42
+ --pico-text-decoration: underline;
43
+ }
44
+ :where(a:not([role="button"])):focus-visible,
45
+ [role="link"]:focus-visible {
46
+ box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
47
+ }
48
+ :where(a:not([role="button"])).secondary,
49
+ [role="link"].secondary {
50
+ --pico-color: var(--pico-secondary);
51
+ --pico-underline: var(--pico-secondary-underline);
52
+ }
53
+ :where(a:not([role="button"])).secondary:is(
54
+ [aria-current]:not([aria-current="false"]),
55
+ :hover,
56
+ :active,
57
+ :focus
58
+ ),
59
+ [role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
60
+ --pico-color: var(--pico-secondary-hover);
61
+ --pico-underline: var(--pico-secondary-hover-underline);
62
+ }
63
+ :where(a:not([role="button"])).contrast,
64
+ [role="link"].contrast {
65
+ --pico-color: var(--pico-contrast);
66
+ --pico-underline: var(--pico-contrast-underline);
67
+ }
68
+ :where(a:not([role="button"])).contrast:is(
69
+ [aria-current]:not([aria-current="false"]),
70
+ :hover,
71
+ :active,
72
+ :focus
73
+ ),
74
+ [role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
75
+ --pico-color: var(--pico-contrast-hover);
76
+ --pico-underline: var(--pico-contrast-hover-underline);
77
+ }
78
+
79
+ a[role="button"] {
80
+ display: inline-block;
81
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Misc
3
+ */
4
+ hr {
5
+ height: 0;
6
+ margin: var(--pico-typography-spacing-vertical) 0;
7
+ border: 0;
8
+ border-top: 1px solid var(--pico-muted-border-color);
9
+ color: inherit;
10
+ }
11
+
12
+ [hidden],
13
+ template {
14
+ display: none !important;
15
+ }
16
+
17
+ canvas {
18
+ display: inline-block;
19
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Table
3
+ */
4
+ :where(table) {
5
+ width: 100%;
6
+ border-collapse: collapse;
7
+ border-spacing: 0;
8
+ text-indent: 0;
9
+ }
10
+
11
+ th,
12
+ td {
13
+ padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
14
+ border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);
15
+ background-color: var(--pico-background-color);
16
+ color: var(--pico-color);
17
+ font-weight: var(--pico-font-weight);
18
+ text-align: start;
19
+ }
20
+
21
+ tfoot th,
22
+ tfoot td {
23
+ border-top: var(--pico-border-width) solid var(--pico-table-border-color);
24
+ border-bottom: 0;
25
+ }
26
+
27
+ table.striped tbody tr:nth-child(odd) th,
28
+ table.striped tbody tr:nth-child(odd) td {
29
+ background-color: var(--pico-table-row-stripped-background-color);
30
+ }
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Typography
3
+ */
4
+ b,
5
+ strong {
6
+ font-weight: bolder;
7
+ }
8
+
9
+ sub,
10
+ sup {
11
+ position: relative;
12
+ font-size: 0.75em;
13
+ line-height: 0;
14
+ vertical-align: baseline;
15
+ }
16
+
17
+ sub {
18
+ bottom: -0.25em;
19
+ }
20
+
21
+ sup {
22
+ top: -0.5em;
23
+ }
24
+
25
+ address,
26
+ blockquote,
27
+ dl,
28
+ ol,
29
+ p,
30
+ pre,
31
+ table,
32
+ ul {
33
+ margin-top: 0;
34
+ margin-bottom: var(--pico-typography-spacing-vertical);
35
+ color: var(--pico-color);
36
+ font-style: normal;
37
+ font-weight: var(--pico-font-weight);
38
+ }
39
+
40
+ h1,
41
+ h2,
42
+ h3,
43
+ h4,
44
+ h5,
45
+ h6 {
46
+ margin-top: 0;
47
+ margin-bottom: var(--pico-typography-spacing-vertical);
48
+ color: var(--pico-color);
49
+ font-weight: var(--pico-font-weight);
50
+ font-size: var(--pico-font-size);
51
+ line-height: var(--pico-line-height);
52
+ font-family: var(--pico-font-family);
53
+ }
54
+
55
+ h1 {
56
+ --pico-color: var(--pico-h1-color);
57
+ }
58
+
59
+ h2 {
60
+ --pico-color: var(--pico-h2-color);
61
+ }
62
+
63
+ h3 {
64
+ --pico-color: var(--pico-h3-color);
65
+ }
66
+
67
+ h4 {
68
+ --pico-color: var(--pico-h4-color);
69
+ }
70
+
71
+ h5 {
72
+ --pico-color: var(--pico-h5-color);
73
+ }
74
+
75
+ h6 {
76
+ --pico-color: var(--pico-h6-color);
77
+ }
78
+
79
+ :where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul)
80
+ ~ :is(h1, h2, h3, h4, h5, h6) {
81
+ margin-top: var(--pico-typography-spacing-top);
82
+ }
83
+
84
+ p {
85
+ margin-bottom: var(--pico-typography-spacing-vertical);
86
+ }
87
+
88
+ hgroup {
89
+ margin-bottom: var(--pico-typography-spacing-vertical);
90
+ }
91
+ hgroup > * {
92
+ margin-top: 0;
93
+ margin-bottom: 0;
94
+ }
95
+ hgroup > *:not(:first-child):last-child {
96
+ --pico-color: var(--pico-muted-color);
97
+ --pico-font-weight: unset;
98
+ font-size: 1rem;
99
+ }
100
+
101
+ :where(ol, ul) li {
102
+ margin-bottom: calc(var(--pico-typography-spacing-vertical) * 0.25);
103
+ }
104
+
105
+ :where(dl, ol, ul) :where(dl, ol, ul) {
106
+ margin: 0;
107
+ margin-top: calc(var(--pico-typography-spacing-vertical) * 0.25);
108
+ }
109
+
110
+ ul li {
111
+ list-style: square;
112
+ }
113
+
114
+ mark {
115
+ padding: 0.125rem 0.25rem;
116
+ background-color: var(--pico-mark-background-color);
117
+ color: var(--pico-mark-color);
118
+ vertical-align: baseline;
119
+ }
120
+
121
+ blockquote {
122
+ display: block;
123
+ margin: var(--pico-typography-spacing-vertical) 0;
124
+ padding: var(--pico-spacing);
125
+ border-right: none;
126
+ border-left: 0.25rem solid var(--pico-blockquote-border-color);
127
+ border-inline-start: 0.25rem solid var(--pico-blockquote-border-color);
128
+ border-inline-end: none;
129
+ }
130
+ blockquote footer {
131
+ margin-top: calc(var(--pico-typography-spacing-vertical) * 0.5);
132
+ color: var(--pico-blockquote-footer-color);
133
+ }
134
+
135
+ abbr[title] {
136
+ border-bottom: 1px dotted;
137
+ text-decoration: none;
138
+ cursor: help;
139
+ }
140
+
141
+ ins {
142
+ color: var(--pico-ins-color);
143
+ text-decoration: none;
144
+ }
145
+
146
+ del {
147
+ color: var(--pico-del-color);
148
+ }
149
+
150
+ ::-moz-selection {
151
+ background-color: var(--pico-text-selection-color);
152
+ }
153
+
154
+ ::selection {
155
+ background-color: var(--pico-text-selection-color);
156
+ }
@@ -0,0 +1,335 @@
1
+ /**
2
+ * Basics form elements
3
+ */
4
+ input,
5
+ optgroup,
6
+ select,
7
+ textarea {
8
+ margin: 0;
9
+ font-size: 1rem;
10
+ line-height: var(--pico-line-height);
11
+ font-family: inherit;
12
+ letter-spacing: inherit;
13
+ }
14
+
15
+ input {
16
+ overflow: visible;
17
+ }
18
+
19
+ select {
20
+ text-transform: none;
21
+ }
22
+
23
+ legend {
24
+ max-width: 100%;
25
+ padding: 0;
26
+ color: inherit;
27
+ white-space: normal;
28
+ }
29
+
30
+ textarea {
31
+ overflow: auto;
32
+ }
33
+
34
+ [type="checkbox"],
35
+ [type="radio"] {
36
+ padding: 0;
37
+ }
38
+
39
+ ::-webkit-inner-spin-button,
40
+ ::-webkit-outer-spin-button {
41
+ height: auto;
42
+ }
43
+
44
+ [type="search"] {
45
+ -webkit-appearance: textfield;
46
+ outline-offset: -2px;
47
+ }
48
+
49
+ [type="search"]::-webkit-search-decoration {
50
+ -webkit-appearance: none;
51
+ }
52
+
53
+ ::-webkit-file-upload-button {
54
+ -webkit-appearance: button;
55
+ font: inherit;
56
+ }
57
+
58
+ ::-moz-focus-inner {
59
+ padding: 0;
60
+ border-style: none;
61
+ }
62
+
63
+ :-moz-focusring {
64
+ outline: none;
65
+ }
66
+
67
+ :-moz-ui-invalid {
68
+ box-shadow: none;
69
+ }
70
+
71
+ ::-ms-expand {
72
+ display: none;
73
+ }
74
+
75
+ [type="file"],
76
+ [type="range"] {
77
+ padding: 0;
78
+ border-width: 0;
79
+ }
80
+
81
+ input:not([type="checkbox"], [type="radio"], [type="range"]) {
82
+ height: calc(
83
+ 1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 +
84
+ var(--pico-border-width) * 2
85
+ );
86
+ }
87
+
88
+ fieldset {
89
+ width: 100%;
90
+ min-width: 0;
91
+ margin: 0;
92
+ margin-bottom: var(--pico-spacing);
93
+ padding: 0;
94
+ border: 0;
95
+ }
96
+
97
+ label,
98
+ fieldset legend {
99
+ display: block;
100
+ margin-bottom: calc(var(--pico-spacing) * 0.375);
101
+ color: var(--pico-color);
102
+ font-weight: var(--pico-form-label-font-weight, var(--pico-font-weight));
103
+ }
104
+
105
+ fieldset legend {
106
+ margin-bottom: calc(var(--pico-spacing) * 0.5);
107
+ }
108
+
109
+ input:not([type="checkbox"], [type="radio"]),
110
+ button[type="submit"],
111
+ select,
112
+ textarea {
113
+ width: 100%;
114
+ }
115
+
116
+ input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
117
+ select,
118
+ textarea {
119
+ -webkit-appearance: none;
120
+ -moz-appearance: none;
121
+ appearance: none;
122
+ padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
123
+ }
124
+
125
+ input,
126
+ select,
127
+ textarea {
128
+ --pico-background-color: var(--pico-form-element-background-color);
129
+ --pico-border-color: var(--pico-form-element-border-color);
130
+ --pico-color: var(--pico-form-element-color);
131
+ --pico-box-shadow: none;
132
+ border: var(--pico-border-width) solid var(--pico-border-color);
133
+ border-radius: var(--pico-border-radius);
134
+ outline: none;
135
+ background-color: var(--pico-background-color);
136
+ box-shadow: var(--pico-box-shadow);
137
+ color: var(--pico-color);
138
+ font-weight: var(--pico-font-weight);
139
+ transition:
140
+ background-color var(--pico-transition),
141
+ border-color var(--pico-transition),
142
+ color var(--pico-transition),
143
+ box-shadow var(--pico-transition);
144
+ }
145
+
146
+ input:not(
147
+ [type="submit"],
148
+ [type="button"],
149
+ [type="reset"],
150
+ [type="checkbox"],
151
+ [type="radio"],
152
+ [readonly]
153
+ ):is(:active, :focus),
154
+ :where(select, textarea):not([readonly]):is(:active, :focus) {
155
+ --pico-background-color: var(--pico-form-element-active-background-color);
156
+ }
157
+
158
+ input:not([type="submit"], [type="button"], [type="reset"], [role="switch"], [readonly]):is(
159
+ :active,
160
+ :focus
161
+ ),
162
+ :where(select, textarea):not([readonly]):is(:active, :focus) {
163
+ --pico-border-color: var(--pico-form-element-active-border-color);
164
+ }
165
+
166
+ input:not(
167
+ [type="submit"],
168
+ [type="button"],
169
+ [type="reset"],
170
+ [type="range"],
171
+ [type="file"],
172
+ [readonly]
173
+ ):focus,
174
+ :where(select, textarea):not([readonly]):focus {
175
+ --pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
176
+ }
177
+
178
+ input:not([type="submit"], [type="button"], [type="reset"])[disabled],
179
+ select[disabled],
180
+ textarea[disabled],
181
+ label[aria-disabled="true"],
182
+ :where(fieldset[disabled])
183
+ :is(input:not([type="submit"], [type="button"], [type="reset"]), select, textarea) {
184
+ opacity: var(--pico-form-element-disabled-opacity);
185
+ pointer-events: none;
186
+ }
187
+
188
+ label[aria-disabled="true"] input[disabled] {
189
+ opacity: 1;
190
+ }
191
+
192
+ :where(input, select, textarea):not(
193
+ [type="checkbox"],
194
+ [type="radio"],
195
+ [type="date"],
196
+ [type="datetime-local"],
197
+ [type="month"],
198
+ [type="time"],
199
+ [type="week"],
200
+ [type="range"]
201
+ )[aria-invalid] {
202
+ padding-right: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem) !important;
203
+ padding-left: var(--pico-form-element-spacing-horizontal);
204
+ padding-inline-start: var(--pico-form-element-spacing-horizontal) !important;
205
+ padding-inline-end: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem) !important;
206
+ background-position: center right 0.75rem;
207
+ background-size: 1rem auto;
208
+ background-repeat: no-repeat;
209
+ }
210
+ :where(input, select, textarea):not(
211
+ [type="checkbox"],
212
+ [type="radio"],
213
+ [type="date"],
214
+ [type="datetime-local"],
215
+ [type="month"],
216
+ [type="time"],
217
+ [type="week"],
218
+ [type="range"]
219
+ )[aria-invalid="false"]:not(select) {
220
+ background-image: var(--pico-icon-valid);
221
+ }
222
+ :where(input, select, textarea):not(
223
+ [type="checkbox"],
224
+ [type="radio"],
225
+ [type="date"],
226
+ [type="datetime-local"],
227
+ [type="month"],
228
+ [type="time"],
229
+ [type="week"],
230
+ [type="range"]
231
+ )[aria-invalid="true"]:not(select) {
232
+ background-image: var(--pico-icon-invalid);
233
+ }
234
+ :where(input, select, textarea)[aria-invalid="false"] {
235
+ --pico-border-color: var(--pico-form-element-valid-border-color);
236
+ }
237
+ :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus) {
238
+ --pico-border-color: var(--pico-form-element-valid-active-border-color) !important;
239
+ }
240
+ :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus):not(
241
+ [type="checkbox"],
242
+ [type="radio"]
243
+ ) {
244
+ --pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-valid-focus-color) !important;
245
+ }
246
+ :where(input, select, textarea)[aria-invalid="true"] {
247
+ --pico-border-color: var(--pico-form-element-invalid-border-color);
248
+ }
249
+ :where(input, select, textarea)[aria-invalid="true"]:is(:active, :focus) {
250
+ --pico-border-color: var(--pico-form-element-invalid-active-border-color) !important;
251
+ }
252
+ :where(input, select, textarea)[aria-invalid="true"]:is(:active, :focus):not(
253
+ [type="checkbox"],
254
+ [type="radio"]
255
+ ) {
256
+ --pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-invalid-focus-color) !important;
257
+ }
258
+
259
+ [dir="rtl"]
260
+ :where(input, select, textarea):not([type="checkbox"], [type="radio"]):is(
261
+ [aria-invalid],
262
+ [aria-invalid="true"],
263
+ [aria-invalid="false"]
264
+ ) {
265
+ background-position: center left 0.75rem;
266
+ }
267
+
268
+ input::placeholder,
269
+ input::-webkit-input-placeholder,
270
+ textarea::placeholder,
271
+ textarea::-webkit-input-placeholder,
272
+ select:invalid {
273
+ color: var(--pico-form-element-placeholder-color);
274
+ opacity: 1;
275
+ }
276
+
277
+ input:not([type="checkbox"], [type="radio"]),
278
+ select,
279
+ textarea {
280
+ margin-bottom: var(--pico-spacing);
281
+ }
282
+
283
+ select::-ms-expand {
284
+ border: 0;
285
+ background-color: transparent;
286
+ }
287
+ select:not([multiple], [size]) {
288
+ padding-right: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem);
289
+ padding-left: var(--pico-form-element-spacing-horizontal);
290
+ padding-inline-start: var(--pico-form-element-spacing-horizontal);
291
+ padding-inline-end: calc(var(--pico-form-element-spacing-horizontal) + 1.5rem);
292
+ background-image: var(--pico-icon-chevron);
293
+ background-position: center right 0.75rem;
294
+ background-size: 1rem auto;
295
+ background-repeat: no-repeat;
296
+ }
297
+ select[multiple] option:checked {
298
+ background: var(--pico-form-element-selected-background-color);
299
+ color: var(--pico-form-element-color);
300
+ }
301
+
302
+ [dir="rtl"] select:not([multiple], [size]) {
303
+ background-position: center left 0.75rem;
304
+ }
305
+
306
+ textarea {
307
+ display: block;
308
+ resize: vertical;
309
+ }
310
+ textarea[aria-invalid] {
311
+ --pico-icon-height: calc(
312
+ 1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 +
313
+ var(--pico-border-width) * 2
314
+ );
315
+ background-position: top right 0.75rem !important;
316
+ background-size: 1rem var(--pico-icon-height) !important;
317
+ }
318
+
319
+ :where(input, select, textarea, fieldset, .grid) + small {
320
+ display: block;
321
+ width: 100%;
322
+ margin-top: calc(var(--pico-spacing) * -0.75);
323
+ margin-bottom: var(--pico-spacing);
324
+ color: var(--pico-muted-color);
325
+ }
326
+ :where(input, select, textarea, fieldset, .grid)[aria-invalid="false"] + small {
327
+ color: var(--pico-ins-color);
328
+ }
329
+ :where(input, select, textarea, fieldset, .grid)[aria-invalid="true"] + small {
330
+ color: var(--pico-del-color);
331
+ }
332
+
333
+ label > :where(input, select, textarea) {
334
+ margin-top: calc(var(--pico-spacing) * 0.25);
335
+ }