@anyblades/blades 3.1.0-beta.4 → 3.1.0-beta.6

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 (90) hide show
  1. package/.prettierrc.json +0 -7
  2. package/README.md +20 -10
  3. package/_includes/.prettierrc.json +12 -0
  4. package/_includes/package.json +10 -0
  5. package/css/blades.css +942 -1805
  6. package/css/blades.min.css +11 -1
  7. package/css/blades.ninja.css +1124 -2265
  8. package/css/blades.ninja.min.css +16 -1
  9. package/css/float-label.css +34 -187
  10. package/css/float-label.min.css +1 -1
  11. package/css/layered/blades.layered.css +942 -1805
  12. package/css/layered/blades.layered.min.css +11 -1
  13. package/css/layered/compact.css +10 -31
  14. package/css/layered/components/accordion.css +32 -21
  15. package/css/layered/components/card.css +8 -16
  16. package/css/layered/components/dropdown-popover.css +92 -0
  17. package/css/layered/components/dropdown.css +61 -61
  18. package/css/layered/components/group.css +40 -156
  19. package/css/layered/components/loading.css +28 -35
  20. package/css/layered/components/modal-modern.css +20 -0
  21. package/css/layered/components/modal.css +54 -65
  22. package/css/layered/components/nav.css +36 -36
  23. package/css/layered/components/progress.css +18 -23
  24. package/css/layered/components/timeline.css +10 -0
  25. package/css/layered/components/tooltip.css +88 -103
  26. package/css/layered/components.css +371 -517
  27. package/css/layered/content/button.css +37 -117
  28. package/css/layered/content/code-block.css +20 -0
  29. package/css/layered/content/code.css +11 -26
  30. package/css/layered/content/embedded-content.css +5 -10
  31. package/css/layered/content/figure.css +3 -5
  32. package/css/layered/content/icon.css +33 -0
  33. package/css/layered/content/link.css +18 -40
  34. package/css/layered/content/misc.css +1 -5
  35. package/css/layered/content/table.css +4 -10
  36. package/css/layered/content/typography.css +22 -41
  37. package/css/layered/content.css +102 -254
  38. package/css/layered/forms/basics.css +64 -142
  39. package/css/layered/forms/checkbox-radio-switch.css +46 -75
  40. package/css/layered/forms/float-label/core.css +31 -0
  41. package/css/layered/forms/float-label/theme.css +28 -0
  42. package/css/layered/forms/float-label.css +57 -0
  43. package/css/layered/forms/input-color.css +5 -5
  44. package/css/layered/forms/input-datetime.css +9 -26
  45. package/css/layered/forms/input-file.css +7 -8
  46. package/css/layered/forms/input-range.css +43 -50
  47. package/css/layered/forms/input-search.css +16 -47
  48. package/css/layered/forms.css +197 -355
  49. package/css/layered/layout/columns.css +10 -0
  50. package/css/layered/layout/container.css +13 -13
  51. package/css/layered/layout/document.css +4 -12
  52. package/css/layered/layout/grid.css +6 -8
  53. package/css/layered/layout/landmarks.css +1 -7
  54. package/css/layered/layout/overflow-auto.css +0 -3
  55. package/css/layered/layout/section.css +0 -3
  56. package/css/layered/layout.css +26 -39
  57. package/css/layered/utilities.css +6 -15
  58. package/css/layered/variables-blades.css +11 -0
  59. package/css/layered/variables.css +77 -181
  60. package/css/pico.conditional.css +785 -1368
  61. package/css/pico.conditional.min.css +1 -1
  62. package/css/pico.css +785 -1368
  63. package/css/pico.min.css +1 -1
  64. package/package.json +13 -26
  65. package/src/blades/_index.css +9 -9
  66. package/src/blades/{_dropdown-popover.css → components/_dropdown-popover.css} +3 -3
  67. package/src/blades/forms/float-label/_index.css +2 -0
  68. package/src/blades.css +2 -2
  69. package/src/blades.ninja.css +3 -3
  70. package/src/float-label.css +1 -1
  71. package/src/ninja/_index.css +7 -8
  72. package/src/pico/_index.css +6 -6
  73. package/src/pico/components/_index.css +9 -9
  74. package/src/pico/content/_index.css +8 -8
  75. package/src/pico/forms/_index.css +7 -7
  76. package/src/pico/layout/_index.css +5 -5
  77. package/src/pico.css +2 -2
  78. package/_includes/blades/links.liquid +0 -21
  79. package/_includes/blades/links.njk +0 -9
  80. package/_includes/blades/links.twig +0 -18
  81. package/src/blades/float-label/_index.css +0 -2
  82. package/src/ninja/_page-anchors.css +0 -10
  83. /package/src/blades/{_variables.css → _variables-blades.css} +0 -0
  84. /package/src/blades/{_modal.css → components/_modal-modern.css} +0 -0
  85. /package/src/blades/{_timeline.css → components/_timeline.css} +0 -0
  86. /package/src/blades/{_code.css → content/_code-block.css} +0 -0
  87. /package/src/blades/{_icon.css → content/_icon.css} +0 -0
  88. /package/src/blades/{float-label → forms/float-label}/_core.css +0 -0
  89. /package/src/blades/{float-label → forms/float-label}/_theme.css +0 -0
  90. /package/src/blades/{_columns.css → layout/_columns.css} +0 -0
@@ -1,36 +1,24 @@
1
1
  @layer blades {
2
- /**
3
- * Typography
4
- */
5
- b,
6
- strong {
2
+ b, strong {
7
3
  font-weight: bolder;
8
4
  }
9
5
 
10
- sub,
11
- sup {
12
- position: relative;
13
- font-size: 0.75em;
14
- line-height: 0;
6
+ sub, sup {
15
7
  vertical-align: baseline;
8
+ font-size: .75em;
9
+ line-height: 0;
10
+ position: relative;
16
11
  }
17
12
 
18
13
  sub {
19
- bottom: -0.25em;
14
+ bottom: -.25em;
20
15
  }
21
16
 
22
17
  sup {
23
- top: -0.5em;
18
+ top: -.5em;
24
19
  }
25
20
 
26
- address,
27
- blockquote,
28
- dl,
29
- ol,
30
- p,
31
- pre,
32
- table,
33
- ul {
21
+ address, blockquote, dl, ol, p, pre, table, ul {
34
22
  margin-top: 0;
35
23
  margin-bottom: var(--pico-typography-spacing-vertical);
36
24
  color: var(--pico-color);
@@ -38,12 +26,7 @@ ul {
38
26
  font-weight: var(--pico-font-weight);
39
27
  }
40
28
 
41
- h1,
42
- h2,
43
- h3,
44
- h4,
45
- h5,
46
- h6 {
29
+ h1, h2, h3, h4, h5, h6 {
47
30
  margin-top: 0;
48
31
  margin-bottom: var(--pico-typography-spacing-vertical);
49
32
  color: var(--pico-color);
@@ -77,35 +60,32 @@ h6 {
77
60
  --pico-color: var(--pico-h6-color);
78
61
  }
79
62
 
80
- :where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul)
81
- ~ :is(h1, h2, h3, h4, h5, h6) {
63
+ :where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
82
64
  margin-top: var(--pico-typography-spacing-top);
83
65
  }
84
66
 
85
- p {
67
+ p, hgroup {
86
68
  margin-bottom: var(--pico-typography-spacing-vertical);
87
69
  }
88
70
 
89
- hgroup {
90
- margin-bottom: var(--pico-typography-spacing-vertical);
91
- }
92
71
  hgroup > * {
93
72
  margin-top: 0;
94
73
  margin-bottom: 0;
95
74
  }
96
- hgroup > *:not(:first-child):last-child {
75
+
76
+ hgroup > :not(:first-child):last-child {
97
77
  --pico-color: var(--pico-muted-color);
98
78
  --pico-font-weight: unset;
99
79
  font-size: 1rem;
100
80
  }
101
81
 
102
82
  :where(ol, ul) li {
103
- margin-bottom: calc(var(--pico-typography-spacing-vertical) * 0.25);
83
+ margin-bottom: calc(var(--pico-typography-spacing-vertical) * .25);
104
84
  }
105
85
 
106
86
  :where(dl, ol, ul) :where(dl, ol, ul) {
107
87
  margin: 0;
108
- margin-top: calc(var(--pico-typography-spacing-vertical) * 0.25);
88
+ margin-top: calc(var(--pico-typography-spacing-vertical) * .25);
109
89
  }
110
90
 
111
91
  ul li {
@@ -113,30 +93,31 @@ ul li {
113
93
  }
114
94
 
115
95
  mark {
116
- padding: 0.125rem 0.25rem;
117
96
  background-color: var(--pico-mark-background-color);
118
97
  color: var(--pico-mark-color);
119
98
  vertical-align: baseline;
99
+ padding: .125rem .25rem;
120
100
  }
121
101
 
122
102
  blockquote {
123
- display: block;
124
103
  margin: var(--pico-typography-spacing-vertical) 0;
125
104
  padding: var(--pico-spacing);
126
105
  border-right: none;
127
- border-left: 0.25rem solid var(--pico-blockquote-border-color);
128
- border-inline-start: 0.25rem solid var(--pico-blockquote-border-color);
106
+ border-left: .25rem solid var(--pico-blockquote-border-color);
107
+ border-inline-start: .25rem solid var(--pico-blockquote-border-color);
129
108
  border-inline-end: none;
109
+ display: block;
130
110
  }
111
+
131
112
  blockquote footer {
132
- margin-top: calc(var(--pico-typography-spacing-vertical) * 0.5);
113
+ margin-top: calc(var(--pico-typography-spacing-vertical) * .5);
133
114
  color: var(--pico-blockquote-footer-color);
134
115
  }
135
116
 
136
117
  abbr[title] {
118
+ cursor: help;
137
119
  border-bottom: 1px dotted;
138
120
  text-decoration: none;
139
- cursor: help;
140
121
  }
141
122
 
142
123
  ins {
@@ -156,80 +137,58 @@ del {
156
137
  background-color: var(--pico-text-selection-color);
157
138
  }
158
139
 
159
- /**
160
- * Link
161
- */
162
- :where(a:not([role="button"])),
163
- [role="link"] {
140
+ :where(a:not([role="button"])), [role="link"] {
164
141
  --pico-color: var(--pico-primary);
165
142
  --pico-background-color: transparent;
166
143
  --pico-underline: var(--pico-primary-underline);
167
- outline: none;
168
144
  background-color: var(--pico-background-color);
169
145
  color: var(--pico-color);
170
146
  -webkit-text-decoration: var(--pico-text-decoration);
171
147
  text-decoration: var(--pico-text-decoration);
172
148
  text-decoration-color: var(--pico-underline);
173
- text-underline-offset: 0.125em;
174
- transition:
175
- background-color var(--pico-transition),
149
+ text-underline-offset: .125em;
150
+ transition: background-color var(--pico-transition),
176
151
  color var(--pico-transition),
177
152
  box-shadow var(--pico-transition),
178
153
  -webkit-text-decoration var(--pico-transition);
179
- transition:
180
- background-color var(--pico-transition),
154
+ transition: background-color var(--pico-transition),
181
155
  color var(--pico-transition),
182
156
  text-decoration var(--pico-transition),
183
157
  box-shadow var(--pico-transition);
184
- transition:
185
- background-color var(--pico-transition),
158
+ transition: background-color var(--pico-transition),
186
159
  color var(--pico-transition),
187
160
  text-decoration var(--pico-transition),
188
161
  box-shadow var(--pico-transition),
189
162
  -webkit-text-decoration var(--pico-transition);
163
+ outline: none;
190
164
  }
191
- :where(a:not([role="button"])):is(
192
- [aria-current]:not([aria-current="false"]),
193
- :hover,
194
- :active,
195
- :focus
196
- ),
197
- [role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
165
+
166
+ :where(a:not([role="button"])):is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [role="link"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
198
167
  --pico-color: var(--pico-primary-hover);
199
168
  --pico-underline: var(--pico-primary-hover-underline);
200
169
  --pico-text-decoration: underline;
201
170
  }
202
- :where(a:not([role="button"])):focus-visible,
203
- [role="link"]:focus-visible {
171
+
172
+ :where(a:not([role="button"])):focus-visible, [role="link"]:focus-visible {
204
173
  box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
205
174
  }
206
- :where(a:not([role="button"])).secondary,
207
- [role="link"].secondary {
175
+
176
+ :where(a:not([role="button"])).secondary, [role="link"].secondary {
208
177
  --pico-color: var(--pico-secondary);
209
178
  --pico-underline: var(--pico-secondary-underline);
210
179
  }
211
- :where(a:not([role="button"])).secondary:is(
212
- [aria-current]:not([aria-current="false"]),
213
- :hover,
214
- :active,
215
- :focus
216
- ),
217
- [role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
180
+
181
+ :where(a:not([role="button"])).secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [role="link"].secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
218
182
  --pico-color: var(--pico-secondary-hover);
219
183
  --pico-underline: var(--pico-secondary-hover-underline);
220
184
  }
221
- :where(a:not([role="button"])).contrast,
222
- [role="link"].contrast {
185
+
186
+ :where(a:not([role="button"])).contrast, [role="link"].contrast {
223
187
  --pico-color: var(--pico-contrast);
224
188
  --pico-underline: var(--pico-contrast-underline);
225
189
  }
226
- :where(a:not([role="button"])).contrast:is(
227
- [aria-current]:not([aria-current="false"]),
228
- :hover,
229
- :active,
230
- :focus
231
- ),
232
- [role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
190
+
191
+ :where(a:not([role="button"])).contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [role="link"].contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
233
192
  --pico-color: var(--pico-contrast-hover);
234
193
  --pico-underline: var(--pico-contrast-hover-underline);
235
194
  }
@@ -238,37 +197,25 @@ a[role="button"] {
238
197
  display: inline-block;
239
198
  }
240
199
 
241
- /**
242
- * Button
243
- */
244
200
  button {
201
+ text-transform: none;
245
202
  margin: 0;
246
- overflow: visible;
247
203
  font-family: inherit;
248
- text-transform: none;
204
+ overflow: visible;
249
205
  }
250
206
 
251
- button,
252
- [type="submit"],
253
- [type="reset"],
254
- [type="button"] {
207
+ button, [type="submit"], [type="reset"], [type="button"] {
255
208
  -webkit-appearance: button;
256
209
  }
257
210
 
258
- button,
259
- [type="submit"],
260
- [type="reset"],
261
- [type="button"],
262
- [type="file"]::file-selector-button,
263
- [role="button"] {
211
+ button, [type="submit"], [type="reset"], [type="button"], [type="file"]::file-selector-button, [role="button"] {
264
212
  --pico-background-color: var(--pico-primary-background);
265
213
  --pico-border-color: var(--pico-primary-border);
266
214
  --pico-color: var(--pico-primary-inverse);
267
- --pico-box-shadow: var(--pico-button-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
215
+ --pico-box-shadow: var(--pico-button-box-shadow, 0 0 0 #0000);
268
216
  padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
269
217
  border: var(--pico-border-width) solid var(--pico-border-color);
270
218
  border-radius: var(--pico-border-radius);
271
- outline: none;
272
219
  background-color: var(--pico-background-color);
273
220
  box-shadow: var(--pico-box-shadow);
274
221
  color: var(--pico-color);
@@ -276,92 +223,49 @@ button,
276
223
  font-size: 1rem;
277
224
  line-height: var(--pico-line-height);
278
225
  text-align: center;
279
- text-decoration: none;
280
226
  cursor: pointer;
281
227
  -webkit-user-select: none;
282
228
  -moz-user-select: none;
283
- transition:
284
- background-color var(--pico-transition),
229
+ user-select: none;
230
+ transition: background-color var(--pico-transition),
285
231
  border-color var(--pico-transition),
286
232
  color var(--pico-transition),
287
233
  box-shadow var(--pico-transition);
288
- user-select: none;
234
+ outline: none;
235
+ text-decoration: none;
289
236
  }
290
- button:is([aria-current]:not([aria-current="false"])),
291
- button:is(:hover, :active, :focus),
292
- [type="submit"]:is([aria-current]:not([aria-current="false"])),
293
- [type="submit"]:is(:hover, :active, :focus),
294
- [type="reset"]:is([aria-current]:not([aria-current="false"])),
295
- [type="reset"]:is(:hover, :active, :focus),
296
- [type="button"]:is([aria-current]:not([aria-current="false"])),
297
- [type="button"]:is(:hover, :active, :focus),
298
- [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])),
299
- [type="file"]::file-selector-button:is(:hover, :active, :focus),
300
- [role="button"]:is([aria-current]:not([aria-current="false"])),
301
- [role="button"]:is(:hover, :active, :focus) {
237
+
238
+ button[aria-current]:not([aria-current="false"]), button:is(:hover, :active, :focus), [type="submit"][aria-current]:not([aria-current="false"]), [type="submit"]:is(:hover, :active, :focus), [type="reset"][aria-current]:not([aria-current="false"]), [type="reset"]:is(:hover, :active, :focus), [type="button"][aria-current]:not([aria-current="false"]), [type="button"]:is(:hover, :active, :focus), [type="file"]::file-selector-button:is(), [type="file"]::file-selector-button:is(:hover, :active, :focus), [role="button"][aria-current]:not([aria-current="false"]), [role="button"]:is(:hover, :active, :focus) {
302
239
  --pico-background-color: var(--pico-primary-hover-background);
303
240
  --pico-border-color: var(--pico-primary-hover-border);
304
- --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
241
+ --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000);
305
242
  --pico-color: var(--pico-primary-inverse);
306
243
  }
307
- button:focus,
308
- button:is([aria-current]:not([aria-current="false"])):focus,
309
- [type="submit"]:focus,
310
- [type="submit"]:is([aria-current]:not([aria-current="false"])):focus,
311
- [type="reset"]:focus,
312
- [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
313
- [type="button"]:focus,
314
- [type="button"]:is([aria-current]:not([aria-current="false"])):focus,
315
- [type="file"]::file-selector-button:focus,
316
- [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus,
317
- [role="button"]:focus,
318
- [role="button"]:is([aria-current]:not([aria-current="false"])):focus {
319
- --pico-box-shadow:
320
- var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
244
+
245
+ button:focus, button[aria-current]:not([aria-current="false"]):focus, [type="submit"]:focus, [type="submit"][aria-current]:not([aria-current="false"]):focus, [type="reset"]:focus, [type="reset"][aria-current]:not([aria-current="false"]):focus, [type="button"]:focus, [type="button"][aria-current]:not([aria-current="false"]):focus, [type="file"]::file-selector-button:focus, [type="file"]::file-selector-button:is():focus, [role="button"]:focus, [role="button"][aria-current]:not([aria-current="false"]):focus {
246
+ --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000),
321
247
  0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
322
248
  }
323
249
 
324
- [type="submit"],
325
- [type="reset"],
326
- [type="button"] {
250
+ [type="submit"], [type="reset"], [type="button"] {
327
251
  margin-bottom: var(--pico-spacing);
328
252
  }
329
253
 
330
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary,
331
- [type="reset"],
332
- [type="file"]::file-selector-button {
254
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary, [type="reset"], [type="file"]::file-selector-button {
333
255
  --pico-background-color: var(--pico-secondary-background);
334
256
  --pico-border-color: var(--pico-secondary-border);
335
257
  --pico-color: var(--pico-secondary-inverse);
336
258
  cursor: pointer;
337
259
  }
338
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
339
- [aria-current]:not([aria-current="false"]),
340
- :hover,
341
- :active,
342
- :focus
343
- ),
344
- [type="reset"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus),
345
- [type="file"]::file-selector-button:is(
346
- [aria-current]:not([aria-current="false"]),
347
- :hover,
348
- :active,
349
- :focus
350
- ) {
260
+
261
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="reset"]:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="file"]::file-selector-button:is(:hover, :active, :focus) {
351
262
  --pico-background-color: var(--pico-secondary-hover-background);
352
263
  --pico-border-color: var(--pico-secondary-hover-border);
353
264
  --pico-color: var(--pico-secondary-inverse);
354
265
  }
355
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:focus,
356
- :is(button, [type="submit"], [type="button"], [role="button"]).secondary:is(
357
- [aria-current]:not([aria-current="false"])
358
- ):focus,
359
- [type="reset"]:focus,
360
- [type="reset"]:is([aria-current]:not([aria-current="false"])):focus,
361
- [type="file"]::file-selector-button:focus,
362
- [type="file"]::file-selector-button:is([aria-current]:not([aria-current="false"])):focus {
363
- --pico-box-shadow:
364
- var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
266
+
267
+ :is(button, [type="submit"], [type="button"], [role="button"]).secondary:focus, :is(button, [type="submit"], [type="button"], [role="button"]).secondary[aria-current]:not([aria-current="false"]):focus, [type="reset"]:focus, [type="reset"][aria-current]:not([aria-current="false"]):focus, [type="file"]::file-selector-button:focus, [type="file"]::file-selector-button:is():focus {
268
+ --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000),
365
269
  0 0 0 var(--pico-outline-width) var(--pico-secondary-focus);
366
270
  }
367
271
 
@@ -370,55 +274,36 @@ button:is([aria-current]:not([aria-current="false"])):focus,
370
274
  --pico-border-color: var(--pico-contrast-border);
371
275
  --pico-color: var(--pico-contrast-inverse);
372
276
  }
373
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
374
- [aria-current]:not([aria-current="false"]),
375
- :hover,
376
- :active,
377
- :focus
378
- ) {
277
+
278
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
379
279
  --pico-background-color: var(--pico-contrast-hover-background);
380
280
  --pico-border-color: var(--pico-contrast-hover-border);
381
281
  --pico-color: var(--pico-contrast-inverse);
382
282
  }
383
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:focus,
384
- :is(button, [type="submit"], [type="button"], [role="button"]).contrast:is(
385
- [aria-current]:not([aria-current="false"])
386
- ):focus {
387
- --pico-box-shadow:
388
- var(--pico-button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
283
+
284
+ :is(button, [type="submit"], [type="button"], [role="button"]).contrast:focus, :is(button, [type="submit"], [type="button"], [role="button"]).contrast[aria-current]:not([aria-current="false"]):focus {
285
+ --pico-box-shadow: var(--pico-button-hover-box-shadow, 0 0 0 #0000),
389
286
  0 0 0 var(--pico-outline-width) var(--pico-contrast-focus);
390
287
  }
391
288
 
392
- :is(button, [type="submit"], [type="button"], [role="button"]).outline,
393
- [type="reset"].outline {
289
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline, [type="reset"].outline {
394
290
  --pico-background-color: transparent;
395
291
  --pico-color: var(--pico-primary);
396
292
  --pico-border-color: var(--pico-primary);
397
293
  }
398
- :is(button, [type="submit"], [type="button"], [role="button"]).outline:is(
399
- [aria-current]:not([aria-current="false"]),
400
- :hover,
401
- :active,
402
- :focus
403
- ),
404
- [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
294
+
295
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
405
296
  --pico-background-color: transparent;
406
297
  --pico-color: var(--pico-primary-hover);
407
298
  --pico-border-color: var(--pico-primary-hover);
408
299
  }
409
300
 
410
- :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary,
411
- [type="reset"].outline {
301
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary, [type="reset"].outline {
412
302
  --pico-color: var(--pico-secondary);
413
303
  --pico-border-color: var(--pico-secondary);
414
304
  }
415
- :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary:is(
416
- [aria-current]:not([aria-current="false"]),
417
- :hover,
418
- :active,
419
- :focus
420
- ),
421
- [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
305
+
306
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.secondary:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus), [type="reset"].outline:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
422
307
  --pico-color: var(--pico-secondary-hover);
423
308
  --pico-border-color: var(--pico-secondary-hover);
424
309
  }
@@ -427,35 +312,25 @@ button:is([aria-current]:not([aria-current="false"])):focus,
427
312
  --pico-color: var(--pico-contrast);
428
313
  --pico-border-color: var(--pico-contrast);
429
314
  }
430
- :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast:is(
431
- [aria-current]:not([aria-current="false"]),
432
- :hover,
433
- :active,
434
- :focus
435
- ) {
315
+
316
+ :is(button, [type="submit"], [type="button"], [role="button"]).outline.contrast:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
436
317
  --pico-color: var(--pico-contrast-hover);
437
318
  --pico-border-color: var(--pico-contrast-hover);
438
319
  }
439
320
 
440
- :where(button, [type="submit"], [type="reset"], [type="button"], [role="button"])[disabled],
441
- :where(fieldset[disabled])
442
- :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]) {
443
- opacity: 0.5;
321
+ :where(button, [type="submit"], [type="reset"], [type="button"], [role="button"])[disabled], :where(fieldset[disabled]) :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]) {
322
+ opacity: .5;
444
323
  pointer-events: none;
445
324
  }
446
325
 
447
- /**
448
- * Table
449
- */
450
326
  :where(table) {
451
- width: 100%;
452
327
  border-collapse: collapse;
453
328
  border-spacing: 0;
454
329
  text-indent: 0;
330
+ width: 100%;
455
331
  }
456
332
 
457
- th,
458
- td {
333
+ th, td {
459
334
  padding: calc(var(--pico-spacing) / 2) var(--pico-spacing);
460
335
  border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);
461
336
  background-color: var(--pico-background-color);
@@ -464,44 +339,38 @@ td {
464
339
  text-align: start;
465
340
  }
466
341
 
467
- tfoot th,
468
- tfoot td {
342
+ tfoot th, tfoot td {
469
343
  border-top: var(--pico-border-width) solid var(--pico-table-border-color);
470
344
  border-bottom: 0;
471
345
  }
472
346
 
473
- table.striped tbody tr:nth-child(odd) th,
474
- table.striped tbody tr:nth-child(odd) td {
347
+ table.striped tbody tr:nth-child(odd) th, table.striped tbody tr:nth-child(odd) td {
475
348
  background-color: var(--pico-table-row-stripped-background-color);
476
349
  }
477
350
 
478
- /**
479
- * Embedded content
480
- */
481
351
  :where(audio, canvas, iframe, img, svg, video) {
482
352
  vertical-align: middle;
483
353
  }
484
354
 
485
- audio,
486
- video {
355
+ audio, video {
487
356
  display: inline-block;
488
357
  }
489
358
 
490
359
  audio:not([controls]) {
491
- display: none;
492
360
  height: 0;
361
+ display: none;
493
362
  }
494
363
 
495
364
  :where(iframe) {
496
365
  border-style: none;
497
366
  }
498
367
 
499
- img:not([height]) {
368
+ img {
369
+ &:not([height]) {
500
370
  max-width: 100%;
501
371
  height: auto;
502
372
  }
503
373
 
504
- img {
505
374
  border-style: none;
506
375
  }
507
376
 
@@ -509,25 +378,16 @@ img {
509
378
  fill: currentColor;
510
379
  }
511
380
 
512
- svg:not(:scope),
513
- svg:not(:host) {
381
+ svg:not(:scope), svg:not(:host) {
514
382
  overflow: hidden;
515
383
  }
516
384
 
517
- /**
518
- * Code
519
- */
520
- pre,
521
- code,
522
- var,
523
- kbd,
524
- samp {
525
- font-size: 0.875em;
385
+ pre, code, var, kbd, samp {
386
+ font-size: .875em;
526
387
  font-family: var(--pico-font-family);
527
388
  }
528
389
 
529
- pre code,
530
- pre samp {
390
+ pre code, pre samp {
531
391
  font-size: inherit;
532
392
  font-family: inherit;
533
393
  }
@@ -537,11 +397,7 @@ pre {
537
397
  overflow: auto;
538
398
  }
539
399
 
540
- pre,
541
- code,
542
- var,
543
- kbd,
544
- samp {
400
+ pre, code, var, kbd, samp {
545
401
  border-radius: var(--pico-border-radius);
546
402
  background: var(--pico-code-background-color);
547
403
  color: var(--pico-code-color);
@@ -549,25 +405,22 @@ samp {
549
405
  line-height: initial;
550
406
  }
551
407
 
552
- code,
553
- var,
554
- kbd,
555
- samp {
408
+ code, var, kbd, samp {
409
+ padding: .375rem;
556
410
  display: inline-block;
557
- padding: 0.375rem;
558
411
  }
559
412
 
560
413
  pre {
561
- display: block;
562
414
  margin-bottom: var(--pico-spacing);
415
+ display: block;
563
416
  overflow-x: auto;
564
417
  }
565
- pre > code,
566
- pre > samp {
567
- display: block;
418
+
419
+ pre > code, pre > samp {
568
420
  padding: var(--pico-spacing);
569
- background: none;
570
421
  line-height: var(--pico-line-height);
422
+ background: none;
423
+ display: block;
571
424
  }
572
425
 
573
426
  kbd {
@@ -576,21 +429,17 @@ kbd {
576
429
  vertical-align: baseline;
577
430
  }
578
431
 
579
- /**
580
- * Figure
581
- */
582
432
  figure {
583
- display: block;
584
433
  margin: 0;
585
434
  padding: 0;
435
+ display: block;
586
436
  }
437
+
587
438
  figure figcaption {
588
- padding: calc(var(--pico-spacing) * 0.5) 0;
439
+ padding: calc(var(--pico-spacing) * .5) 0;
589
440
  color: var(--pico-muted-color);
590
441
  }
591
- /**
592
- * Misc
593
- */
442
+
594
443
  hr {
595
444
  height: 0;
596
445
  margin: var(--pico-typography-spacing-vertical) 0;
@@ -599,8 +448,7 @@ hr {
599
448
  color: inherit;
600
449
  }
601
450
 
602
- [hidden],
603
- template {
451
+ [hidden], template {
604
452
  display: none !important;
605
453
  }
606
454