@skeletonlabs/skeleton 5.0.0-next.3 → 5.0.0-next.5
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/package.json +1 -1
- package/src/base/globals.css +48 -34
- package/src/index.css +5 -0
- package/src/themes/cerberus.css +5 -5
- package/src/utilities/badges.css +37 -12
- package/src/utilities/buttons.css +55 -57
- package/src/utilities/cards.css +4 -3
- package/src/utilities/chips.css +36 -19
- package/src/utilities/dialogs.css +88 -0
- package/src/utilities/disclosures.css +57 -0
- package/src/utilities/dividers.css +3 -2
- package/src/utilities/form-core.css +30 -2
- package/src/utilities/form-groups.css +18 -126
- package/src/utilities/form-inputs.css +19 -10
- package/src/utilities/form-meter.css +58 -0
- package/src/utilities/form-progress.css +1 -1
- package/src/utilities/form-radios-checks.css +0 -2
- package/src/utilities/form-selects.css +9 -38
- package/src/utilities/form-textareas.css +16 -7
- package/src/utilities/iconography.css +54 -0
- package/src/utilities/masks.css +69 -0
- package/src/utilities/presets.css +1 -1
- package/src/utilities/tables.css +20 -12
- package/src/utilities/typography.css +101 -9
package/src/utilities/tables.css
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* Components: Tables */
|
|
2
2
|
|
|
3
|
+
/* IMPORTANT: :where() is used to give user-land styles precedence. */
|
|
4
|
+
|
|
3
5
|
@utility table-wrap {
|
|
4
6
|
width: 100%;
|
|
5
7
|
overflow: auto;
|
|
@@ -14,24 +16,24 @@
|
|
|
14
16
|
|
|
15
17
|
/* Head --- */
|
|
16
18
|
|
|
17
|
-
& thead {
|
|
19
|
+
& :where(thead) {
|
|
18
20
|
color: var(--color-surface-700-300);
|
|
19
21
|
border-bottom-width: 1px;
|
|
20
|
-
border-color: var(--color-surface-
|
|
22
|
+
border-color: var(--color-surface-300-700);
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
& th {
|
|
25
|
+
& :where(th) {
|
|
24
26
|
text-align: left;
|
|
25
27
|
font-weight: 400;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
/* Body --- */
|
|
29
31
|
|
|
30
|
-
& tbody {
|
|
31
|
-
& > :not(:last-child) {
|
|
32
|
-
border-color: var(--color-surface-
|
|
32
|
+
& :where(tbody) {
|
|
33
|
+
& > :where(:not(:last-child)) {
|
|
34
|
+
border-color: var(--color-surface-300-700);
|
|
33
35
|
}
|
|
34
|
-
& > :not(:last-child) {
|
|
36
|
+
& > :where(:not(:last-child)) {
|
|
35
37
|
border-top-width: 0px;
|
|
36
38
|
border-bottom-width: 1px;
|
|
37
39
|
}
|
|
@@ -39,27 +41,33 @@
|
|
|
39
41
|
|
|
40
42
|
/* Foot --- */
|
|
41
43
|
|
|
42
|
-
& tfoot {
|
|
44
|
+
& :where(tfoot) {
|
|
43
45
|
border-top-width: 1px;
|
|
44
|
-
border-color: var(--color-surface-
|
|
46
|
+
border-color: var(--color-surface-300-700);
|
|
45
47
|
background-color: var(--color-surface-100-900);
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
/* Cells */
|
|
49
51
|
|
|
50
|
-
& th {
|
|
52
|
+
& :where(th) {
|
|
51
53
|
padding: --spacing(2);
|
|
52
54
|
}
|
|
53
55
|
|
|
54
|
-
& td {
|
|
56
|
+
& :where(td) {
|
|
55
57
|
padding: --spacing(2);
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
/* Caption */
|
|
59
61
|
|
|
60
|
-
& caption {
|
|
62
|
+
& :where(caption) {
|
|
61
63
|
color: var(--color-surface-600-400);
|
|
62
64
|
font-size: var(--text-xs);
|
|
63
65
|
line-height: var(--text-xs--line-height);
|
|
64
66
|
}
|
|
65
67
|
}
|
|
68
|
+
|
|
69
|
+
@utility table-zebra {
|
|
70
|
+
& :where(tbody tr:nth-child(odd)) {
|
|
71
|
+
background-color: color-mix(in oklab, var(--color-surface-100-900) 25%, transparent);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* Components: Typography */
|
|
2
2
|
|
|
3
|
+
/* Headings --- */
|
|
4
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements */
|
|
5
|
+
|
|
3
6
|
@utility h1 {
|
|
4
7
|
color: var(--typo-heading--color-light);
|
|
5
8
|
font-family: var(--typo-heading--font-family);
|
|
@@ -151,6 +154,9 @@
|
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
156
|
|
|
157
|
+
/* Anchor --- */
|
|
158
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a */
|
|
159
|
+
|
|
154
160
|
@utility anchor {
|
|
155
161
|
color: var(--typo-anchor--color-light);
|
|
156
162
|
font-family: var(--typo-anchor--font-family);
|
|
@@ -201,27 +207,44 @@
|
|
|
201
207
|
}
|
|
202
208
|
}
|
|
203
209
|
|
|
210
|
+
/* Blockquote --- */
|
|
211
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote */
|
|
212
|
+
|
|
204
213
|
@utility blockquote {
|
|
205
|
-
border-left-width:
|
|
206
|
-
border-left-color: var(--color-
|
|
214
|
+
border-left-width: 2px;
|
|
215
|
+
border-left-color: light-dark(var(--color-brand-light), var(--color-brand-dark));
|
|
216
|
+
display: flex;
|
|
217
|
+
flex-direction: column;
|
|
218
|
+
gap: --spacing(4);
|
|
207
219
|
padding-left: --spacing(4);
|
|
208
220
|
font-style: italic;
|
|
209
221
|
}
|
|
210
222
|
|
|
223
|
+
/* Keyboard Input --- */
|
|
224
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd */
|
|
225
|
+
|
|
211
226
|
@utility kbd {
|
|
212
|
-
background-color: var(--color-surface-
|
|
227
|
+
background-color: var(--color-surface-100-900);
|
|
213
228
|
border-width: 1px;
|
|
229
|
+
border-right-width: 2px;
|
|
230
|
+
border-bottom-width: 3px;
|
|
214
231
|
border-color: var(--color-surface-600-400);
|
|
215
|
-
border-radius:
|
|
216
|
-
color: var(--color-surface-contrast-
|
|
232
|
+
border-radius: 4px;
|
|
233
|
+
color: var(--color-surface-contrast-100);
|
|
217
234
|
font-family: var(--font-mono);
|
|
218
235
|
font-size: var(--text-sm);
|
|
219
236
|
white-space: nowrap;
|
|
220
237
|
overflow-x: auto;
|
|
221
|
-
padding-inline: --spacing(1.
|
|
222
|
-
|
|
238
|
+
padding-inline: --spacing(1.25);
|
|
239
|
+
|
|
240
|
+
@variant dark {
|
|
241
|
+
color: var(--color-surface-contrast-900);
|
|
242
|
+
}
|
|
223
243
|
}
|
|
224
244
|
|
|
245
|
+
/* Preformatted Text --- */
|
|
246
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre */
|
|
247
|
+
|
|
225
248
|
@utility pre {
|
|
226
249
|
background-color: rgba(0, 0, 0, 0.85);
|
|
227
250
|
backdrop-filter: blur(var(--blur-sm));
|
|
@@ -233,8 +256,13 @@
|
|
|
233
256
|
overflow-x: auto;
|
|
234
257
|
}
|
|
235
258
|
|
|
236
|
-
|
|
237
|
-
|
|
259
|
+
/* Code --- */
|
|
260
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code */
|
|
261
|
+
|
|
262
|
+
/* Affects <code>, but not <pre><code></code></pre> */
|
|
263
|
+
/* This enables the use of presets-* styling for standalone <code> */
|
|
264
|
+
@layer base {
|
|
265
|
+
code {
|
|
238
266
|
background-color: var(--color-primary-100-900);
|
|
239
267
|
border-radius: var(--radius-base);
|
|
240
268
|
color: var(--color-primary-contrast-50-950);
|
|
@@ -245,6 +273,20 @@
|
|
|
245
273
|
padding-block: --spacing(0.75);
|
|
246
274
|
overflow-x: auto;
|
|
247
275
|
}
|
|
276
|
+
|
|
277
|
+
/* Reset when code is inside pre or .ec-line */
|
|
278
|
+
pre code,
|
|
279
|
+
.ec-line code {
|
|
280
|
+
background-color: unset;
|
|
281
|
+
border-radius: unset;
|
|
282
|
+
color: unset;
|
|
283
|
+
font-family: unset;
|
|
284
|
+
font-size: unset;
|
|
285
|
+
white-space: unset;
|
|
286
|
+
padding-inline: unset;
|
|
287
|
+
padding-block: unset;
|
|
288
|
+
overflow-x: unset;
|
|
289
|
+
}
|
|
248
290
|
}
|
|
249
291
|
|
|
250
292
|
/* Insertions / Deletions --- */
|
|
@@ -291,9 +333,59 @@
|
|
|
291
333
|
}
|
|
292
334
|
}
|
|
293
335
|
|
|
336
|
+
/* Mark --- */
|
|
337
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark */
|
|
338
|
+
|
|
294
339
|
@utility mark {
|
|
295
340
|
color: var(--color-tertiary-contrast-500);
|
|
296
341
|
background-color: var(--color-tertiary-500);
|
|
297
342
|
border-radius: var(--radius-sm);
|
|
298
343
|
padding-inline: --spacing(1);
|
|
299
344
|
}
|
|
345
|
+
|
|
346
|
+
/* Abbreviation --- */
|
|
347
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr */
|
|
348
|
+
|
|
349
|
+
@utility abbr {
|
|
350
|
+
font-weight: bold;
|
|
351
|
+
text-decoration: underline dotted;
|
|
352
|
+
text-decoration-color: var(--color-surface-600-400);
|
|
353
|
+
text-underline-offset: --spacing(1);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* Citation --- */
|
|
357
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite */
|
|
358
|
+
|
|
359
|
+
@utility cite {
|
|
360
|
+
font-style: italic;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* Quote --- */
|
|
364
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q */
|
|
365
|
+
|
|
366
|
+
@utility quote {
|
|
367
|
+
font-style: italic;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* Subscript / Superscript --- */
|
|
371
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub */
|
|
372
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup */
|
|
373
|
+
|
|
374
|
+
@utility sub {
|
|
375
|
+
font-size: var(--text-xs);
|
|
376
|
+
line-height: 0;
|
|
377
|
+
vertical-align: sub;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@utility sup {
|
|
381
|
+
font-size: var(--text-xs);
|
|
382
|
+
line-height: 0;
|
|
383
|
+
vertical-align: super;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* Time --- */
|
|
387
|
+
/* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time */
|
|
388
|
+
|
|
389
|
+
@utility time {
|
|
390
|
+
font-weight: bold;
|
|
391
|
+
}
|