@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
@@ -1,608 +0,0 @@
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
- }
157
-
158
- /**
159
- * Link
160
- */
161
- :where(a:not([role="button"])),
162
- [role="link"] {
163
- --pico-color: var(--pico-primary);
164
- --pico-background-color: transparent;
165
- --pico-underline: var(--pico-primary-underline);
166
- outline: none;
167
- background-color: var(--pico-background-color);
168
- color: var(--pico-color);
169
- -webkit-text-decoration: var(--pico-text-decoration);
170
- text-decoration: var(--pico-text-decoration);
171
- text-decoration-color: var(--pico-underline);
172
- text-underline-offset: 0.125em;
173
- transition:
174
- background-color var(--pico-transition),
175
- color var(--pico-transition),
176
- box-shadow var(--pico-transition),
177
- -webkit-text-decoration var(--pico-transition);
178
- transition:
179
- background-color var(--pico-transition),
180
- color var(--pico-transition),
181
- text-decoration var(--pico-transition),
182
- box-shadow var(--pico-transition);
183
- transition:
184
- background-color var(--pico-transition),
185
- color var(--pico-transition),
186
- text-decoration var(--pico-transition),
187
- box-shadow var(--pico-transition),
188
- -webkit-text-decoration var(--pico-transition);
189
- }
190
- :where(a:not([role="button"])):is(
191
- [aria-current]:not([aria-current="false"]),
192
- :hover,
193
- :active,
194
- :focus
195
- ),
196
- [role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
197
- --pico-color: var(--pico-primary-hover);
198
- --pico-underline: var(--pico-primary-hover-underline);
199
- --pico-text-decoration: underline;
200
- }
201
- :where(a:not([role="button"])):focus-visible,
202
- [role="link"]:focus-visible {
203
- box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
204
- }
205
- :where(a:not([role="button"])).secondary,
206
- [role="link"].secondary {
207
- --pico-color: var(--pico-secondary);
208
- --pico-underline: var(--pico-secondary-underline);
209
- }
210
- :where(a:not([role="button"])).secondary:is(
211
- [aria-current]:not([aria-current="false"]),
212
- :hover,
213
- :active,
214
- :focus
215
- ),
216
- [role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
217
- --pico-color: var(--pico-secondary-hover);
218
- --pico-underline: var(--pico-secondary-hover-underline);
219
- }
220
- :where(a:not([role="button"])).contrast,
221
- [role="link"].contrast {
222
- --pico-color: var(--pico-contrast);
223
- --pico-underline: var(--pico-contrast-underline);
224
- }
225
- :where(a:not([role="button"])).contrast:is(
226
- [aria-current]:not([aria-current="false"]),
227
- :hover,
228
- :active,
229
- :focus
230
- ),
231
- [role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
232
- --pico-color: var(--pico-contrast-hover);
233
- --pico-underline: var(--pico-contrast-hover-underline);
234
- }
235
-
236
- a[role="button"] {
237
- display: inline-block;
238
- }
239
-
240
- /**
241
- * Button
242
- */
243
- button {
244
- margin: 0;
245
- overflow: visible;
246
- font-family: inherit;
247
- text-transform: none;
248
- }
249
-
250
- button,
251
- [type="submit"],
252
- [type="reset"],
253
- [type="button"] {
254
- -webkit-appearance: button;
255
- }
256
-
257
- button,
258
- [type="submit"],
259
- [type="reset"],
260
- [type="button"],
261
- [type="file"]::file-selector-button,
262
- [role="button"] {
263
- --pico-background-color: var(--pico-primary-background);
264
- --pico-border-color: var(--pico-primary-border);
265
- --pico-color: var(--pico-primary-inverse);
266
- --pico-box-shadow: var(--pico-button-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
267
- padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
268
- border: var(--pico-border-width) solid var(--pico-border-color);
269
- border-radius: var(--pico-border-radius);
270
- outline: none;
271
- background-color: var(--pico-background-color);
272
- box-shadow: var(--pico-box-shadow);
273
- color: var(--pico-color);
274
- font-weight: var(--pico-font-weight);
275
- font-size: 1rem;
276
- line-height: var(--pico-line-height);
277
- text-align: center;
278
- text-decoration: none;
279
- cursor: pointer;
280
- -webkit-user-select: none;
281
- -moz-user-select: none;
282
- user-select: none;
283
- transition:
284
- background-color var(--pico-transition),
285
- border-color var(--pico-transition),
286
- color var(--pico-transition),
287
- box-shadow var(--pico-transition);
288
- }
289
- button:is([aria-current]:not([aria-current="false"])),
290
- button:is(:hover, :active, :focus),
291
- [type="submit"]:is([aria-current]:not([aria-current="false"])),
292
- [type="submit"]:is(:hover, :active, :focus),
293
- [type="reset"]:is([aria-current]:not([aria-current="false"])),
294
- [type="reset"]:is(:hover, :active, :focus),
295
- [type="button"]:is([aria-current]:not([aria-current="false"])),
296
- [type="button"]:is(:hover, :active, :focus),
297
- [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])),
298
- [type="file"]::file-selector-button:is(:hover, :active, :focus),
299
- [role="button"]:is([aria-current]:not([aria-current="false"])),
300
- [role="button"]:is(:hover, :active, :focus) {
301
- --pico-background-color: var(--pico-primary-hover-background);
302
- --pico-border-color: var(--pico-primary-hover-border);
303
- --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
304
- --pico-color: var(--pico-primary-inverse);
305
- }
306
- button:focus,
307
- button:is([aria-current]:not([aria-current="false"])):focus,
308
- [type="submit"]:focus,
309
- [type="submit"]:is([aria-current]:not([aria-current="false"])):focus,
310
- [type="reset"]:focus,
311
- [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
312
- [type="button"]:focus,
313
- [type="button"]:is([aria-current]:not([aria-current="false"])):focus,
314
- [type="file"]::file-selector-button:focus,
315
- [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus,
316
- [role="button"]:focus,
317
- [role="button"]:is([aria-current]:not([aria-current="false"])):focus {
318
- --pico-box-shadow:
319
- var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
320
- 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
321
- }
322
-
323
- [type="submit"],
324
- [type="reset"],
325
- [type="button"] {
326
- margin-bottom: var(--pico-spacing);
327
- }
328
-
329
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary,
330
- [type="reset"],
331
- [type="file"]::file-selector-button {
332
- --pico-background-color: var(--pico-secondary-background);
333
- --pico-border-color: var(--pico-secondary-border);
334
- --pico-color: var(--pico-secondary-inverse);
335
- cursor: pointer;
336
- }
337
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
338
- [aria-current]:not([aria-current="false"]),
339
- :hover,
340
- :active,
341
- :focus
342
- ),
343
- [type="reset"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus),
344
- [type="file"]::file-selector-button:is(
345
- [aria-current]:not([aria-current="false"]),
346
- :hover,
347
- :active,
348
- :focus
349
- ) {
350
- --pico-background-color: var(--pico-secondary-hover-background);
351
- --pico-border-color: var(--pico-secondary-hover-border);
352
- --pico-color: var(--pico-secondary-inverse);
353
- }
354
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:focus,
355
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
356
- [aria-current]:not([aria-current="false"])
357
- ):focus,
358
- [type="reset"]:focus,
359
- [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
360
- [type="file"]::file-selector-button:focus,
361
- [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus {
362
- --pico-box-shadow:
363
- var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
364
- 0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
365
- }
366
-
367
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast {
368
- --pico-background-color: var(--pico-contrast-background);
369
- --pico-border-color: var(--pico-contrast-border);
370
- --pico-color: var(--pico-contrast-inverse);
371
- }
372
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
373
- [aria-current]:not([aria-current="false"]),
374
- :hover,
375
- :active,
376
- :focus
377
- ) {
378
- --pico-background-color: var(--pico-contrast-hover-background);
379
- --pico-border-color: var(--pico-contrast-hover-border);
380
- --pico-color: var(--pico-contrast-inverse);
381
- }
382
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:focus,
383
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
384
- [aria-current]:not([aria-current="false"])
385
- ):focus {
386
- --pico-box-shadow:
387
- var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
388
- 0 0 0 var(--pico-outline-width) var(--pico-contrast-focus);
389
- }
390
-
391
- :is(button, [type="submit"], [type="button"], [role="button"]).outline,
392
- [type="reset"].outline {
393
- --pico-background-color: transparent;
394
- --pico-color: var(--pico-primary);
395
- --pico-border-color: var(--pico-primary);
396
- }
397
- :is(button, [type="submit"], [type="button"], [role="button"]).outline:is(
398
- [aria-current]:not([aria-current="false"]),
399
- :hover,
400
- :active,
401
- :focus
402
- ),
403
- [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
404
- --pico-background-color: transparent;
405
- --pico-color: var(--pico-primary-hover);
406
- --pico-border-color: var(--pico-primary-hover);
407
- }
408
-
409
- :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary,
410
- [type="reset"].outline {
411
- --pico-color: var(--pico-secondary);
412
- --pico-border-color: var(--pico-secondary);
413
- }
414
- :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary:is(
415
- [aria-current]:not([aria-current="false"]),
416
- :hover,
417
- :active,
418
- :focus
419
- ),
420
- [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
421
- --pico-color: var(--pico-secondary-hover);
422
- --pico-border-color: var(--pico-secondary-hover);
423
- }
424
-
425
- :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast {
426
- --pico-color: var(--pico-contrast);
427
- --pico-border-color: var(--pico-contrast);
428
- }
429
- :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast:is(
430
- [aria-current]:not([aria-current="false"]),
431
- :hover,
432
- :active,
433
- :focus
434
- ) {
435
- --pico-color: var(--pico-contrast-hover);
436
- --pico-border-color: var(--pico-contrast-hover);
437
- }
438
-
439
- :where(button, [type="submit"], [type="reset"], [type="button"], [role="button"])[disabled],
440
- :where(fieldset[disabled])
441
- :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]) {
442
- opacity: 0.5;
443
- pointer-events: none;
444
- }
445
-
446
- /**
447
- * Table
448
- */
449
- :where(table) {
450
- width: 100%;
451
- border-collapse: collapse;
452
- border-spacing: 0;
453
- text-indent: 0;
454
- }
455
-
456
- th,
457
- td {
458
- padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
459
- border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);
460
- background-color: var(--pico-background-color);
461
- color: var(--pico-color);
462
- font-weight: var(--pico-font-weight);
463
- text-align: start;
464
- }
465
-
466
- tfoot th,
467
- tfoot td {
468
- border-top: var(--pico-border-width) solid var(--pico-table-border-color);
469
- border-bottom: 0;
470
- }
471
-
472
- table.striped tbody tr:nth-child(odd) th,
473
- table.striped tbody tr:nth-child(odd) td {
474
- background-color: var(--pico-table-row-stripped-background-color);
475
- }
476
-
477
- /**
478
- * Embedded content
479
- */
480
- :where(audio, canvas, iframe, img, svg, video) {
481
- vertical-align: middle;
482
- }
483
-
484
- audio,
485
- video {
486
- display: inline-block;
487
- }
488
-
489
- audio:not([controls]) {
490
- display: none;
491
- height: 0;
492
- }
493
-
494
- :where(iframe) {
495
- border-style: none;
496
- }
497
-
498
- img {
499
- &:not([height]) {
500
- max-width: 100%;
501
- height: auto;
502
- }
503
- border-style: none;
504
- }
505
-
506
- :where(svg:not([fill])) {
507
- fill: currentColor;
508
- }
509
-
510
- svg:not(:scope),
511
- svg:not(:host) {
512
- overflow: hidden;
513
- }
514
-
515
- /**
516
- * Code
517
- */
518
- pre,
519
- code,
520
- var,
521
- kbd,
522
- samp {
523
- font-size: 0.875em;
524
- font-family: var(--pico-font-family);
525
- }
526
-
527
- pre code,
528
- pre samp {
529
- font-size: inherit;
530
- font-family: inherit;
531
- }
532
-
533
- pre {
534
- -ms-overflow-style: scrollbar;
535
- overflow: auto;
536
- }
537
-
538
- pre,
539
- code,
540
- var,
541
- kbd,
542
- samp {
543
- border-radius: var(--pico-border-radius);
544
- background: var(--pico-code-background-color);
545
- color: var(--pico-code-color);
546
- font-weight: var(--pico-font-weight);
547
- line-height: initial;
548
- }
549
-
550
- code,
551
- var,
552
- kbd,
553
- samp {
554
- display: inline-block;
555
- padding: 0.375rem;
556
- }
557
-
558
- pre {
559
- display: block;
560
- margin-bottom: var(--pico-spacing);
561
- overflow-x: auto;
562
- }
563
- pre > code,
564
- pre > samp {
565
- display: block;
566
- padding: var(--pico-spacing);
567
- background: none;
568
- line-height: var(--pico-line-height);
569
- }
570
-
571
- kbd {
572
- background-color: var(--pico-code-kbd-background-color);
573
- color: var(--pico-code-kbd-color);
574
- vertical-align: baseline;
575
- }
576
-
577
- /**
578
- * Figure
579
- */
580
- figure {
581
- display: block;
582
- margin: 0;
583
- padding: 0;
584
- }
585
- figure figcaption {
586
- padding: calc(var(--pico-spacing) * 0.5) 0;
587
- color: var(--pico-muted-color);
588
- }
589
-
590
- /**
591
- * Misc
592
- */
593
- hr {
594
- height: 0;
595
- margin: var(--pico-typography-spacing-vertical) 0;
596
- border: 0;
597
- border-top: 1px solid var(--pico-muted-border-color);
598
- color: inherit;
599
- }
600
-
601
- [hidden],
602
- template {
603
- display: none !important;
604
- }
605
-
606
- canvas {
607
- display: inline-block;
608
- }