@zazz-ui/core 0.2.0 → 0.3.0
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/CHANGELOG.md +36 -0
- package/README.md +2 -2
- package/dist/sri.json +10 -10
- package/dist/zazz.css +1 -1
- package/examples/components.html +1 -6
- package/package.json +1 -1
- package/src/base/_layers.css +14 -4
- package/src/base/_layout.css +5 -2
- package/src/base/_typography.css +24 -6
- package/src/base/_utilities.css +509 -391
- package/src/base/_variables.css +22 -81
- package/src/base/_view-transitions.css +1 -1
- package/src/index.css +10 -4
- package/src/primitives/badge/badge.css +10 -9
- package/src/primitives/button/button.css +12 -12
- package/src/primitives/carousel/carousel.html +1 -1
- package/src/primitives/tooltip/tooltip-disabled.html +1 -6
- package/src/primitives/tooltip/tooltip-sides.html +3 -22
- package/src/primitives/tooltip/tooltip-with-kbd.html +1 -6
- package/src/primitives/tooltip/tooltip.html +1 -6
package/examples/components.html
CHANGED
|
@@ -446,12 +446,7 @@
|
|
|
446
446
|
<button type="button" class="ui-button" interestfor="tooltip-components-1">
|
|
447
447
|
Hover or focus
|
|
448
448
|
</button>
|
|
449
|
-
<div
|
|
450
|
-
data-slot="tooltip-content"
|
|
451
|
-
id="tooltip-components-1"
|
|
452
|
-
popover="hint"
|
|
453
|
-
data-use-inverted-menu="false"
|
|
454
|
-
>
|
|
449
|
+
<div data-slot="tooltip-content" id="tooltip-components-1" popover="hint">
|
|
455
450
|
Add to library
|
|
456
451
|
<span data-slot="tooltip-arrow" aria-hidden="true"></span>
|
|
457
452
|
</div>
|
package/package.json
CHANGED
package/src/base/_layers.css
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* layers.css — Cascade layer order (must load first).
|
|
3
3
|
*
|
|
4
|
-
* @layer variables, reset, legacy, zazz,
|
|
5
|
-
* @sublayers
|
|
4
|
+
* @layer variables, reset, vendors, legacy, zazz, overrides
|
|
5
|
+
* @sublayers legacy.imports, legacy.components, legacy.utilities,
|
|
6
|
+
* legacy.migrations; zazz.components, zazz.plugins, zazz.utilities
|
|
7
|
+
*
|
|
8
|
+
* Never import styles into bare `legacy` or `zazz`: un-sublayered rules form
|
|
9
|
+
* an implicit final sublayer that outranks every named sublayer (a whole-file
|
|
10
|
+
* legacy import would beat its own migration shims; bare zazz CSS would beat
|
|
11
|
+
* utilities). Always target a sublayer.
|
|
6
12
|
*/
|
|
7
13
|
|
|
8
|
-
@layer variables, reset, legacy, zazz,
|
|
14
|
+
@layer variables, reset, vendors, legacy, zazz, overrides;
|
|
15
|
+
|
|
16
|
+
@layer legacy {
|
|
17
|
+
@layer imports, components, utilities, migrations;
|
|
18
|
+
}
|
|
9
19
|
|
|
10
20
|
@layer zazz {
|
|
11
|
-
@layer components, utilities;
|
|
21
|
+
@layer components, plugins, utilities;
|
|
12
22
|
}
|
package/src/base/_layout.css
CHANGED
|
@@ -408,12 +408,15 @@
|
|
|
408
408
|
--_article: var(--article-xl);
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
+
/* full/bleed mirror the band container semantics: full spans the available
|
|
412
|
+
width but keeps the gutters; bleed runs edge to edge. */
|
|
411
413
|
:where(:is(.container, [class*=":container"])[data-variant="article"])[data-container="full"] {
|
|
412
|
-
--_article:
|
|
414
|
+
--_article: 100%;
|
|
413
415
|
}
|
|
414
416
|
|
|
415
417
|
:where(:is(.container, [class*=":container"])[data-variant="article"])[data-container="bleed"] {
|
|
416
|
-
--_article:
|
|
418
|
+
--_article: 100%;
|
|
419
|
+
inline-size: 100%;
|
|
417
420
|
}
|
|
418
421
|
|
|
419
422
|
/* Responsive article variants — reading width from the breakpoint up (min) or only
|
package/src/base/_typography.css
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
@layer variables {
|
|
14
14
|
:root {
|
|
15
15
|
--ui-prose-figcaption-margin: var(--gap-xs) 0 0 0;
|
|
16
|
+
/* 0 preserves the figcaption-margin spacing; a length adds flex gap on top */
|
|
17
|
+
--ui-prose-figcaption-gap: 0px;
|
|
16
18
|
--ui-prose-img-radius: var(--radius-md);
|
|
17
19
|
--ui-prose-img-border: none;
|
|
18
20
|
--ui-prose-link-color: var(--primary);
|
|
@@ -31,9 +33,9 @@
|
|
|
31
33
|
|
|
32
34
|
:where(.ui-prose h1) {
|
|
33
35
|
font-family: var(--font-family-heading);
|
|
36
|
+
font-weight: var(--font-weight-heading);
|
|
34
37
|
font-size: var(--font-size-h1);
|
|
35
38
|
line-height: var(--leading-h1);
|
|
36
|
-
font-weight: var(--font-weight-heading);
|
|
37
39
|
letter-spacing: var(--tracking-h1);
|
|
38
40
|
text-wrap: balance;
|
|
39
41
|
font-optical-sizing: auto;
|
|
@@ -41,9 +43,9 @@
|
|
|
41
43
|
|
|
42
44
|
:where(.ui-prose h2) {
|
|
43
45
|
font-family: var(--font-family-heading);
|
|
46
|
+
font-weight: var(--font-weight-heading);
|
|
44
47
|
font-size: var(--font-size-h2);
|
|
45
48
|
line-height: var(--leading-h2);
|
|
46
|
-
font-weight: var(--font-weight-heading);
|
|
47
49
|
letter-spacing: var(--tracking-h2);
|
|
48
50
|
text-wrap: balance;
|
|
49
51
|
font-optical-sizing: auto;
|
|
@@ -51,9 +53,9 @@
|
|
|
51
53
|
|
|
52
54
|
:where(.ui-prose h3) {
|
|
53
55
|
font-family: var(--font-family-heading);
|
|
56
|
+
font-weight: var(--font-weight-heading);
|
|
54
57
|
font-size: var(--font-size-h3);
|
|
55
58
|
line-height: var(--leading-h3);
|
|
56
|
-
font-weight: var(--font-weight-heading);
|
|
57
59
|
letter-spacing: var(--tracking-h3);
|
|
58
60
|
text-wrap: balance;
|
|
59
61
|
font-optical-sizing: auto;
|
|
@@ -61,9 +63,9 @@
|
|
|
61
63
|
|
|
62
64
|
:where(.ui-prose h4) {
|
|
63
65
|
font-family: var(--font-family-heading);
|
|
66
|
+
font-weight: var(--font-weight-heading);
|
|
64
67
|
font-size: var(--font-size-h4);
|
|
65
68
|
line-height: var(--leading-h4);
|
|
66
|
-
font-weight: var(--font-weight-heading);
|
|
67
69
|
letter-spacing: var(--tracking-h4);
|
|
68
70
|
text-wrap: balance;
|
|
69
71
|
font-optical-sizing: auto;
|
|
@@ -71,9 +73,9 @@
|
|
|
71
73
|
|
|
72
74
|
:where(.ui-prose h5) {
|
|
73
75
|
font-family: var(--font-family-heading);
|
|
76
|
+
font-weight: var(--font-weight-heading);
|
|
74
77
|
font-size: var(--font-size-h5);
|
|
75
78
|
line-height: var(--leading-h5);
|
|
76
|
-
font-weight: var(--font-weight-heading);
|
|
77
79
|
letter-spacing: var(--tracking-h5);
|
|
78
80
|
text-wrap: balance;
|
|
79
81
|
font-optical-sizing: auto;
|
|
@@ -81,9 +83,9 @@
|
|
|
81
83
|
|
|
82
84
|
:where(.ui-prose h6) {
|
|
83
85
|
font-family: var(--font-family-heading);
|
|
86
|
+
font-weight: var(--font-weight-heading);
|
|
84
87
|
font-size: var(--font-size-h6);
|
|
85
88
|
line-height: var(--leading-h6);
|
|
86
|
-
font-weight: var(--font-weight-heading);
|
|
87
89
|
letter-spacing: var(--tracking-h6);
|
|
88
90
|
text-wrap: balance;
|
|
89
91
|
font-optical-sizing: auto;
|
|
@@ -492,4 +494,20 @@
|
|
|
492
494
|
:where(.italic) {
|
|
493
495
|
font-style: italic;
|
|
494
496
|
}
|
|
497
|
+
|
|
498
|
+
:where(.underline) {
|
|
499
|
+
text-decoration-line: underline;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
:where(.overline) {
|
|
503
|
+
text-decoration-line: overline;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
:where(.line-through) {
|
|
507
|
+
text-decoration-line: line-through;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
:where(.no-underline) {
|
|
511
|
+
text-decoration-line: none;
|
|
512
|
+
}
|
|
495
513
|
}
|