@anyblades/pico 2.1.1-alpha → 2.2.0-alpha

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.
@@ -0,0 +1,604 @@
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: left;
464
+ text-align: start;
465
+ }
466
+
467
+ tfoot th,
468
+ tfoot td {
469
+ border-top: var(--pico-border-width) solid var(--pico-table-border-color);
470
+ border-bottom: 0;
471
+ }
472
+
473
+ table.striped tbody tr:nth-child(odd) th,
474
+ table.striped tbody tr:nth-child(odd) td {
475
+ background-color: var(--pico-table-row-stripped-background-color);
476
+ }
477
+
478
+ /**
479
+ * Embedded content
480
+ */
481
+ :where(audio, canvas, iframe, img, svg, video) {
482
+ vertical-align: middle;
483
+ }
484
+
485
+ audio,
486
+ video {
487
+ display: inline-block;
488
+ }
489
+
490
+ audio:not([controls]) {
491
+ display: none;
492
+ height: 0;
493
+ }
494
+
495
+ :where(iframe) {
496
+ border-style: none;
497
+ }
498
+
499
+ img {
500
+ max-width: 100%;
501
+ height: auto;
502
+ border-style: none;
503
+ }
504
+
505
+ :where(svg:not([fill])) {
506
+ fill: currentColor;
507
+ }
508
+
509
+ svg:not(:root),
510
+ svg:not(:host) {
511
+ overflow: hidden;
512
+ }
513
+
514
+ /**
515
+ * Code
516
+ */
517
+ pre,
518
+ code,
519
+ kbd,
520
+ samp {
521
+ font-size: 0.875em;
522
+ font-family: var(--pico-font-family);
523
+ }
524
+
525
+ pre code,
526
+ pre samp {
527
+ font-size: inherit;
528
+ font-family: inherit;
529
+ }
530
+
531
+ pre {
532
+ -ms-overflow-style: scrollbar;
533
+ overflow: auto;
534
+ }
535
+
536
+ pre,
537
+ code,
538
+ kbd,
539
+ samp {
540
+ border-radius: var(--pico-border-radius);
541
+ background: var(--pico-code-background-color);
542
+ color: var(--pico-code-color);
543
+ font-weight: var(--pico-font-weight);
544
+ line-height: initial;
545
+ }
546
+
547
+ code,
548
+ kbd,
549
+ samp {
550
+ display: inline-block;
551
+ padding: 0.375rem;
552
+ }
553
+
554
+ pre {
555
+ display: block;
556
+ margin-bottom: var(--pico-spacing);
557
+ overflow-x: auto;
558
+ }
559
+ pre > code,
560
+ pre > samp {
561
+ display: block;
562
+ padding: var(--pico-spacing);
563
+ background: none;
564
+ line-height: var(--pico-line-height);
565
+ }
566
+
567
+ kbd {
568
+ background-color: var(--pico-code-kbd-background-color);
569
+ color: var(--pico-code-kbd-color);
570
+ vertical-align: baseline;
571
+ }
572
+
573
+ /**
574
+ * Figure
575
+ */
576
+ figure {
577
+ display: block;
578
+ margin: 0;
579
+ padding: 0;
580
+ }
581
+ figure figcaption {
582
+ padding: calc(var(--pico-spacing) * 0.5) 0;
583
+ color: var(--pico-muted-color);
584
+ }
585
+
586
+ /**
587
+ * Misc
588
+ */
589
+ hr {
590
+ height: 0;
591
+ margin: var(--pico-typography-spacing-vertical) 0;
592
+ border: 0;
593
+ border-top: 1px solid var(--pico-muted-border-color);
594
+ color: inherit;
595
+ }
596
+
597
+ [hidden],
598
+ template {
599
+ display: none !important;
600
+ }
601
+
602
+ canvas {
603
+ display: inline-block;
604
+ }