@zazz-ui/core 0.9.1 → 0.10.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/AUTHORING.md +21 -16
- package/CHANGELOG.md +89 -0
- package/README.md +3 -3
- package/dist/sri.json +85 -84
- package/dist/zazz.css +1 -1
- package/editor/zazz.css-data.json +9042 -1944
- package/editor/zazz.html-data.json +31 -41
- package/editor/zazz.language-data.json +468 -233
- package/editor/zazz.lint-data.json +412 -396
- package/package.json +2 -3
- package/src/base/_defaults.css +59 -40
- package/src/base/_layers.css +5 -2
- package/src/base/_properties-2xl.css +10 -0
- package/src/base/_properties-active.css +8 -0
- package/src/base/_properties-checked.css +8 -0
- package/src/base/_properties-current.css +8 -0
- package/src/base/_properties-disabled.css +8 -0
- package/src/base/_properties-focus-visible.css +8 -0
- package/src/base/_properties-focus-within.css +8 -0
- package/src/base/_properties-hover.css +8 -0
- package/src/base/_properties-lg.css +10 -0
- package/src/base/_properties-md.css +10 -0
- package/src/base/_properties-open.css +8 -0
- package/src/base/_properties-sm.css +10 -0
- package/src/base/_properties-starting.css +4 -0
- package/src/base/_properties-stuck.css +4 -0
- package/src/base/_properties-xl.css +10 -0
- package/src/base/_properties.css +55 -15
- package/src/base/_reset.css +8 -4
- package/src/base/_typography.css +26 -9
- package/src/base/_utilities-box.css +63 -59
- package/src/base/_utilities-color.css +55 -8
- package/src/base/_utilities-effects.css +8 -0
- package/src/base/_utilities-flow.css +28 -5
- package/src/base/_utilities-pseudo.css +4 -0
- package/src/base/_utilities-spacing.css +8 -8
- package/src/base/_utilities-sr.css +98 -0
- package/src/base/_utilities-tier-2xl.css +5 -0
- package/src/base/_utilities-tier-active.css +5 -1
- package/src/base/_utilities-tier-checked.css +5 -1
- package/src/base/_utilities-tier-current.css +5 -1
- package/src/base/_utilities-tier-disabled.css +5 -1
- package/src/base/_utilities-tier-focus-visible.css +5 -1
- package/src/base/_utilities-tier-focus-within.css +5 -1
- package/src/base/_utilities-tier-hover.css +5 -1
- package/src/base/_utilities-tier-lg.css +5 -0
- package/src/base/_utilities-tier-md.css +5 -0
- package/src/base/_utilities-tier-open.css +5 -1
- package/src/base/_utilities-tier-sm.css +5 -0
- package/src/base/_utilities-tier-starting.css +2 -0
- package/src/base/_utilities-tier-stuck.css +3 -0
- package/src/base/_utilities-tier-xl.css +5 -0
- package/src/base/_utilities-typography.css +263 -3
- package/src/base/_variables.css +123 -57
- package/src/base/kit-styling.d.ts.map +1 -1
- package/src/base/kit-styling.js +90 -86
- package/src/base/kit-styling.ts +90 -86
- package/src/base/utilities.d.ts +23 -8
- package/src/base/utilities.d.ts.map +1 -1
- package/src/base/utilities.js +78 -3
- package/src/base/utilities.ts +95 -11
- package/src/head.d.ts.map +1 -1
- package/src/head.js +4 -5
- package/src/head.ts +4 -5
- package/src/index.css +3 -2
- package/src/manifest.d.ts.map +1 -1
- package/src/manifest.js +13 -3
- package/src/manifest.ts +13 -3
- package/src/primitives/alert-dialog/alert-dialog.css +1 -1
- package/src/primitives/autocomplete/autocomplete.css +4 -2
- package/src/primitives/avatar/avatar.html +4 -6
- package/src/primitives/badge/badge.css +63 -56
- package/src/primitives/breadcrumbs/breadcrumbs.html +1 -7
- package/src/primitives/button/button.css +44 -57
- package/src/primitives/button-group/button-group.css +4 -0
- package/src/primitives/callout/callout.css +22 -43
- package/src/primitives/card/card-subgrid.html +2 -3
- package/src/primitives/card/card.css +4 -0
- package/src/primitives/card/card.html +2 -3
- package/src/primitives/checkbox/checkbox.css +4 -0
- package/src/primitives/combobox/combobox.css +8 -1
- package/src/primitives/command/command-actions.d.ts.map +1 -1
- package/src/primitives/command/command-actions.js +4 -9
- package/src/primitives/command/command-actions.ts +4 -9
- package/src/primitives/debug/audit-core.d.ts +1 -1
- package/src/primitives/debug/audit-core.d.ts.map +1 -1
- package/src/primitives/debug/audit-core.js +30 -3
- package/src/primitives/debug/audit-core.ts +40 -2
- package/src/primitives/dialog/dialog-with-form.html +1 -1
- package/src/primitives/dialog/dialog.css +19 -4
- package/src/primitives/fields/fields.css +11 -5
- package/src/primitives/group/group.css +18 -0
- package/src/primitives/group/group.html +26 -0
- package/src/primitives/input/input.css +14 -8
- package/src/primitives/input-group/input-group-password-group.html +1 -1
- package/src/primitives/input-group/input-group.css +12 -8
- package/src/primitives/kbd/kbd.css +4 -0
- package/src/primitives/lightbox/lightbox.css +13 -0
- package/src/primitives/lightbox/lightbox.html +2 -1
- package/src/primitives/menu/menu.css +3 -1
- package/src/primitives/meter/meter.css +10 -3
- package/src/primitives/navigation-menu/navigation-menu.css +5 -0
- package/src/primitives/navigation-menu/navigation-menu.html +2 -2
- package/src/primitives/otp/otp.css +4 -0
- package/src/primitives/password-group/password-group.css +13 -9
- package/src/primitives/password-group/password-group.html +1 -1
- package/src/primitives/popover/popover.css +6 -0
- package/src/primitives/progress/progress.css +5 -0
- package/src/primitives/radio/radio.css +3 -0
- package/src/primitives/select/select.css +17 -9
- package/src/primitives/slider/slider.css +8 -0
- package/src/primitives/switch/switch.css +56 -20
- package/src/primitives/tabs/tabs.css +18 -0
- package/src/primitives/textarea/textarea.css +19 -10
- package/src/primitives/toaster/toaster.css +8 -4
- package/src/primitives/toggle/toggle.css +10 -6
- package/src/primitives/toggle-group/toggle-group.css +4 -0
- package/src/primitives/tooltip/tooltip.css +4 -0
- package/src/primitives/utilities/pile.html +2 -3
- package/src/base/_switches.css +0 -148
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
--_template-rows-open: var(--template-rows--open);
|
|
11
11
|
--_space-x-open: var(--space-x--open);
|
|
12
12
|
--_space-y-open: var(--space-y--open);
|
|
13
|
+
--_text-wrap-open: var(--text-wrap--open);
|
|
13
14
|
--_text-decoration-open: var(--text-decoration--open);
|
|
14
15
|
--_text-open: var(--text--open);
|
|
15
16
|
--_bg-open: var(--bg--open);
|
|
@@ -38,13 +39,14 @@
|
|
|
38
39
|
--_scale-open: var(--scale--open);
|
|
39
40
|
--_translate-open: var(--translate--open);
|
|
40
41
|
--_rotate-open: var(--rotate--open);
|
|
42
|
+
--_animation-open: var(--animation--open);
|
|
41
43
|
--_transition-open: var(--transition--open);
|
|
42
44
|
--_transition-duration-open: var(--transition-duration--open);
|
|
43
45
|
--_transition-delay-open: var(--transition-delay--open);
|
|
44
46
|
--_radius-open: var(--radius--open);
|
|
45
47
|
--_z-open: var(--z--open);
|
|
46
48
|
}
|
|
47
|
-
:where([data-ui~="group"]:is([open], :popover-open, [aria-expanded="true"]) [style*="--group-"]) {
|
|
49
|
+
:where(:where(ui-group, [data-ui~="group"]):is([open], :popover-open, [aria-expanded="true"]) [style*="--group-"]) {
|
|
48
50
|
--_anchor-name-g-open: var(--group-anchor-name--open);
|
|
49
51
|
--_position-anchor-g-open: var(--group-position-anchor--open);
|
|
50
52
|
--_position-area-g-open: var(--group-position-area--open);
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
--_template-rows-g-open: var(--group-template-rows--open);
|
|
53
55
|
--_space-x-g-open: var(--group-space-x--open);
|
|
54
56
|
--_space-y-g-open: var(--group-space-y--open);
|
|
57
|
+
--_text-wrap-g-open: var(--group-text-wrap--open);
|
|
55
58
|
--_text-decoration-g-open: var(--group-text-decoration--open);
|
|
56
59
|
--_text-g-open: var(--group-text--open);
|
|
57
60
|
--_bg-g-open: var(--group-bg--open);
|
|
@@ -80,6 +83,7 @@
|
|
|
80
83
|
--_scale-g-open: var(--group-scale--open);
|
|
81
84
|
--_translate-g-open: var(--group-translate--open);
|
|
82
85
|
--_rotate-g-open: var(--group-rotate--open);
|
|
86
|
+
--_animation-g-open: var(--group-animation--open);
|
|
83
87
|
--_transition-g-open: var(--group-transition--open);
|
|
84
88
|
--_transition-duration-g-open: var(--group-transition-duration--open);
|
|
85
89
|
--_transition-delay-g-open: var(--group-transition-delay--open);
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
--_text-sm: var(--text--sm);
|
|
84
84
|
--_bg-sm: var(--bg--sm);
|
|
85
85
|
--_bg-alpha-sm: var(--bg-alpha--sm);
|
|
86
|
+
--_divide-sm: var(--divide--sm);
|
|
87
|
+
--_divide-x-sm: var(--divide-x--sm);
|
|
88
|
+
--_divide-y-sm: var(--divide-y--sm);
|
|
86
89
|
--_border-color-sm: var(--border-color--sm);
|
|
87
90
|
--_border-width-sm: var(--border-width--sm);
|
|
88
91
|
--_border-style-sm: var(--border-style--sm);
|
|
@@ -100,6 +103,7 @@
|
|
|
100
103
|
--_ring-offset-sm: var(--ring-offset--sm);
|
|
101
104
|
--_ring-offset-color-sm: var(--ring-offset-color--sm);
|
|
102
105
|
--_focus-ring-sm: var(--focus-ring--sm);
|
|
106
|
+
--_animation-sm: var(--animation--sm);
|
|
103
107
|
--_transition-duration-sm: var(--transition-duration--sm);
|
|
104
108
|
--_transition-delay-sm: var(--transition-delay--sm);
|
|
105
109
|
--_radius-sm: var(--radius--sm);
|
|
@@ -107,6 +111,7 @@
|
|
|
107
111
|
--_radius-b-sm: var(--radius-b--sm);
|
|
108
112
|
--_radius-l-sm: var(--radius-l--sm);
|
|
109
113
|
--_radius-r-sm: var(--radius-r--sm);
|
|
114
|
+
--_isolation-sm: var(--isolation--sm);
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--_template-rows-starting: var(--template-rows--starting);
|
|
12
12
|
--_space-x-starting: var(--space-x--starting);
|
|
13
13
|
--_space-y-starting: var(--space-y--starting);
|
|
14
|
+
--_text-wrap-starting: var(--text-wrap--starting);
|
|
14
15
|
--_text-decoration-starting: var(--text-decoration--starting);
|
|
15
16
|
--_text-starting: var(--text--starting);
|
|
16
17
|
--_bg-starting: var(--bg--starting);
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
--_scale-starting: var(--scale--starting);
|
|
40
41
|
--_translate-starting: var(--translate--starting);
|
|
41
42
|
--_rotate-starting: var(--rotate--starting);
|
|
43
|
+
--_animation-starting: var(--animation--starting);
|
|
42
44
|
--_transition-starting: var(--transition--starting);
|
|
43
45
|
--_transition-duration-starting: var(--transition-duration--starting);
|
|
44
46
|
--_transition-delay-starting: var(--transition-delay--starting);
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@supports (container-type: scroll-state) {
|
|
6
6
|
:where([style*=": sticky"], [style*="--stuck-state:"]) {
|
|
7
7
|
container-type: scroll-state;
|
|
8
|
+
--_stuck-type: scroll-state;
|
|
8
9
|
--_stuck-side: var(--stuck-state, top);
|
|
9
10
|
}
|
|
10
11
|
:where(ui-layout > *, [data-ui~="layout"] > *):where([style*=": sticky"], [style*="--stuck-state:"]) {
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
--_template-rows-stuck: var(--_stuck-on) var(--template-rows--stuck);
|
|
92
93
|
--_space-x-stuck: var(--_stuck-on) var(--space-x--stuck);
|
|
93
94
|
--_space-y-stuck: var(--_stuck-on) var(--space-y--stuck);
|
|
95
|
+
--_text-wrap-stuck: var(--_stuck-on) var(--text-wrap--stuck);
|
|
94
96
|
--_text-decoration-stuck: var(--_stuck-on) var(--text-decoration--stuck);
|
|
95
97
|
--_text-stuck: var(--_stuck-on) var(--text--stuck);
|
|
96
98
|
--_bg-stuck: var(--_stuck-on) var(--bg--stuck);
|
|
@@ -119,6 +121,7 @@
|
|
|
119
121
|
--_scale-stuck: var(--_stuck-on) var(--scale--stuck);
|
|
120
122
|
--_translate-stuck: var(--_stuck-on) var(--translate--stuck);
|
|
121
123
|
--_rotate-stuck: var(--_stuck-on) var(--rotate--stuck);
|
|
124
|
+
--_animation-stuck: var(--_stuck-on) var(--animation--stuck);
|
|
122
125
|
--_transition-stuck: var(--_stuck-on) var(--transition--stuck);
|
|
123
126
|
--_transition-duration-stuck: var(--_stuck-on) var(--transition-duration--stuck);
|
|
124
127
|
--_transition-delay-stuck: var(--_stuck-on) var(--transition-delay--stuck);
|
|
@@ -83,6 +83,9 @@
|
|
|
83
83
|
--_text-xl: var(--text--xl);
|
|
84
84
|
--_bg-xl: var(--bg--xl);
|
|
85
85
|
--_bg-alpha-xl: var(--bg-alpha--xl);
|
|
86
|
+
--_divide-xl: var(--divide--xl);
|
|
87
|
+
--_divide-x-xl: var(--divide-x--xl);
|
|
88
|
+
--_divide-y-xl: var(--divide-y--xl);
|
|
86
89
|
--_border-color-xl: var(--border-color--xl);
|
|
87
90
|
--_border-width-xl: var(--border-width--xl);
|
|
88
91
|
--_border-style-xl: var(--border-style--xl);
|
|
@@ -100,6 +103,7 @@
|
|
|
100
103
|
--_ring-offset-xl: var(--ring-offset--xl);
|
|
101
104
|
--_ring-offset-color-xl: var(--ring-offset-color--xl);
|
|
102
105
|
--_focus-ring-xl: var(--focus-ring--xl);
|
|
106
|
+
--_animation-xl: var(--animation--xl);
|
|
103
107
|
--_transition-duration-xl: var(--transition-duration--xl);
|
|
104
108
|
--_transition-delay-xl: var(--transition-delay--xl);
|
|
105
109
|
--_radius-xl: var(--radius--xl);
|
|
@@ -107,6 +111,7 @@
|
|
|
107
111
|
--_radius-b-xl: var(--radius-b--xl);
|
|
108
112
|
--_radius-l-xl: var(--radius-l--xl);
|
|
109
113
|
--_radius-r-xl: var(--radius-r--xl);
|
|
114
|
+
--_isolation-xl: var(--isolation--xl);
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
}
|
|
@@ -94,12 +94,272 @@
|
|
|
94
94
|
text-transform: var(--_text-transform-resolved);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
:where([style*="--text-wrap:"], [style*="--text-wrap--"]) {
|
|
98
|
-
--_text-wrap-resolved: var(--_text-wrap-2xl, var(--_text-wrap-xl, var(--_text-wrap-lg, var(--_text-wrap-md, var(--_text-wrap-sm, var(--_text-wrap))))));
|
|
97
|
+
:where([style*="--text-wrap:"], [style*="--text-wrap--"], [style*="--group-text-wrap--"]) {
|
|
98
|
+
--_text-wrap-resolved: var(--_text-wrap-starting, var(--_text-wrap-disabled, var(--_text-wrap-active, var(--_text-wrap-focus-visible, var(--_text-wrap-focus-within, var(--_text-wrap-hover, var(--_text-wrap-checked, var(--_text-wrap-current, var(--_text-wrap-open, var(--_text-wrap-g-disabled, var(--_text-wrap-g-active, var(--_text-wrap-g-focus-visible, var(--_text-wrap-g-focus-within, var(--_text-wrap-g-hover, var(--_text-wrap-g-checked, var(--_text-wrap-g-current, var(--_text-wrap-g-open, var(--_text-wrap-stuck, var(--_text-wrap-2xl, var(--_text-wrap-xl, var(--_text-wrap-lg, var(--_text-wrap-md, var(--_text-wrap-sm, var(--_text-wrap))))))))))))))))))))))));
|
|
99
|
+
--_text-wrap-a: var(--_text-wrap-resolved, wrap);
|
|
100
|
+
--_text-wrap-b: var(--_text-wrap-a);
|
|
99
101
|
}
|
|
100
102
|
:where([style*="--text-wrap:"]) {
|
|
101
103
|
--_text-wrap: var(--text-wrap);
|
|
102
|
-
text-wrap: var(--_text-wrap-
|
|
104
|
+
text-wrap: var(--_text-wrap-b);
|
|
105
|
+
}
|
|
106
|
+
:where([style*="--text-wrap--stuck: truncate"]) {
|
|
107
|
+
--_text-wrap-stuck: var(--_stuck-on) truncate;
|
|
108
|
+
--_text-wrap-stuck-clip: var(--_stuck-on) hidden;
|
|
109
|
+
--_text-wrap-stuck-end: var(--_stuck-on) ellipsis;
|
|
110
|
+
overflow: var(--_text-wrap-stuck-clip, revert-layer);
|
|
111
|
+
text-overflow: var(--_text-wrap-stuck-end, revert-layer);
|
|
112
|
+
}
|
|
113
|
+
:where([style*="--text-wrap: truncate"]) {
|
|
114
|
+
--_text-wrap: truncate;
|
|
115
|
+
text-wrap: var(--_text-wrap-b);
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
}
|
|
119
|
+
@container (width >= 40rem) {
|
|
120
|
+
:where([style*="--text-wrap--sm:"]) {
|
|
121
|
+
--_text-wrap-sm: var(--text-wrap--sm, wrap);
|
|
122
|
+
overflow: revert-layer;
|
|
123
|
+
text-overflow: revert-layer;
|
|
124
|
+
}
|
|
125
|
+
:where([style*="--text-wrap--sm: truncate"]) {
|
|
126
|
+
--_text-wrap-sm: truncate;
|
|
127
|
+
text-wrap: var(--_text-wrap-b);
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
@container (width >= 48rem) {
|
|
133
|
+
:where([style*="--text-wrap--md:"]) {
|
|
134
|
+
--_text-wrap-md: var(--text-wrap--md, wrap);
|
|
135
|
+
overflow: revert-layer;
|
|
136
|
+
text-overflow: revert-layer;
|
|
137
|
+
}
|
|
138
|
+
:where([style*="--text-wrap--md: truncate"]) {
|
|
139
|
+
--_text-wrap-md: truncate;
|
|
140
|
+
text-wrap: var(--_text-wrap-b);
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
@container (width >= 64rem) {
|
|
146
|
+
:where([style*="--text-wrap--lg:"]) {
|
|
147
|
+
--_text-wrap-lg: var(--text-wrap--lg, wrap);
|
|
148
|
+
overflow: revert-layer;
|
|
149
|
+
text-overflow: revert-layer;
|
|
150
|
+
}
|
|
151
|
+
:where([style*="--text-wrap--lg: truncate"]) {
|
|
152
|
+
--_text-wrap-lg: truncate;
|
|
153
|
+
text-wrap: var(--_text-wrap-b);
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
@container (width >= 80rem) {
|
|
159
|
+
:where([style*="--text-wrap--xl:"]) {
|
|
160
|
+
--_text-wrap-xl: var(--text-wrap--xl, wrap);
|
|
161
|
+
overflow: revert-layer;
|
|
162
|
+
text-overflow: revert-layer;
|
|
163
|
+
}
|
|
164
|
+
:where([style*="--text-wrap--xl: truncate"]) {
|
|
165
|
+
--_text-wrap-xl: truncate;
|
|
166
|
+
text-wrap: var(--_text-wrap-b);
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
text-overflow: ellipsis;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
@container (width >= 96rem) {
|
|
172
|
+
:where([style*="--text-wrap--2xl:"]) {
|
|
173
|
+
--_text-wrap-2xl: var(--text-wrap--2xl, wrap);
|
|
174
|
+
overflow: revert-layer;
|
|
175
|
+
text-overflow: revert-layer;
|
|
176
|
+
}
|
|
177
|
+
:where([style*="--text-wrap--2xl: truncate"]) {
|
|
178
|
+
--_text-wrap-2xl: truncate;
|
|
179
|
+
text-wrap: var(--_text-wrap-b);
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
text-overflow: ellipsis;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
:where(:where(ui-group, [data-ui~="group"]):is([open], :popover-open, [aria-expanded="true"]) [style*="--group-text-wrap--open:"]) {
|
|
185
|
+
--_text-wrap-g-open: var(--group-text-wrap--open, wrap);
|
|
186
|
+
overflow: revert-layer;
|
|
187
|
+
text-overflow: revert-layer;
|
|
188
|
+
}
|
|
189
|
+
:where(:where(ui-group, [data-ui~="group"]):is([open], :popover-open, [aria-expanded="true"]) [style*="--group-text-wrap--open: truncate"]) {
|
|
190
|
+
--_text-wrap-g-open: truncate;
|
|
191
|
+
text-wrap: var(--_text-wrap-b);
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
text-overflow: ellipsis;
|
|
194
|
+
}
|
|
195
|
+
:where(:where(ui-group, [data-ui~="group"]):is([aria-current]:not([aria-current="false"])) [style*="--group-text-wrap--current:"]) {
|
|
196
|
+
--_text-wrap-g-current: var(--group-text-wrap--current, wrap);
|
|
197
|
+
overflow: revert-layer;
|
|
198
|
+
text-overflow: revert-layer;
|
|
199
|
+
}
|
|
200
|
+
:where(:where(ui-group, [data-ui~="group"]):is([aria-current]:not([aria-current="false"])) [style*="--group-text-wrap--current: truncate"]) {
|
|
201
|
+
--_text-wrap-g-current: truncate;
|
|
202
|
+
text-wrap: var(--_text-wrap-b);
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
text-overflow: ellipsis;
|
|
205
|
+
}
|
|
206
|
+
:where(:where(ui-group, [data-ui~="group"]):is(:checked, [aria-checked="true"]) [style*="--group-text-wrap--checked:"]) {
|
|
207
|
+
--_text-wrap-g-checked: var(--group-text-wrap--checked, wrap);
|
|
208
|
+
overflow: revert-layer;
|
|
209
|
+
text-overflow: revert-layer;
|
|
210
|
+
}
|
|
211
|
+
:where(:where(ui-group, [data-ui~="group"]):is(:checked, [aria-checked="true"]) [style*="--group-text-wrap--checked: truncate"]) {
|
|
212
|
+
--_text-wrap-g-checked: truncate;
|
|
213
|
+
text-wrap: var(--_text-wrap-b);
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
text-overflow: ellipsis;
|
|
216
|
+
}
|
|
217
|
+
@media (hover: hover) {
|
|
218
|
+
:where(:where(ui-group, [data-ui~="group"]):hover [style*="--group-text-wrap--hover:"]) {
|
|
219
|
+
--_text-wrap-g-hover: var(--group-text-wrap--hover, wrap);
|
|
220
|
+
overflow: revert-layer;
|
|
221
|
+
text-overflow: revert-layer;
|
|
222
|
+
}
|
|
223
|
+
:where(:where(ui-group, [data-ui~="group"]):hover [style*="--group-text-wrap--hover: truncate"]) {
|
|
224
|
+
--_text-wrap-g-hover: truncate;
|
|
225
|
+
text-wrap: var(--_text-wrap-b);
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
:where(:where(ui-group, [data-ui~="group"]):focus-within [style*="--group-text-wrap--focus-within:"]) {
|
|
231
|
+
--_text-wrap-g-focus-within: var(--group-text-wrap--focus-within, wrap);
|
|
232
|
+
overflow: revert-layer;
|
|
233
|
+
text-overflow: revert-layer;
|
|
234
|
+
}
|
|
235
|
+
:where(:where(ui-group, [data-ui~="group"]):focus-within [style*="--group-text-wrap--focus-within: truncate"]) {
|
|
236
|
+
--_text-wrap-g-focus-within: truncate;
|
|
237
|
+
text-wrap: var(--_text-wrap-b);
|
|
238
|
+
overflow: hidden;
|
|
239
|
+
text-overflow: ellipsis;
|
|
240
|
+
}
|
|
241
|
+
:where(:where(ui-group, [data-ui~="group"]):focus-visible [style*="--group-text-wrap--focus-visible:"]) {
|
|
242
|
+
--_text-wrap-g-focus-visible: var(--group-text-wrap--focus-visible, wrap);
|
|
243
|
+
overflow: revert-layer;
|
|
244
|
+
text-overflow: revert-layer;
|
|
245
|
+
}
|
|
246
|
+
:where(:where(ui-group, [data-ui~="group"]):focus-visible [style*="--group-text-wrap--focus-visible: truncate"]) {
|
|
247
|
+
--_text-wrap-g-focus-visible: truncate;
|
|
248
|
+
text-wrap: var(--_text-wrap-b);
|
|
249
|
+
overflow: hidden;
|
|
250
|
+
text-overflow: ellipsis;
|
|
251
|
+
}
|
|
252
|
+
:where(:where(ui-group, [data-ui~="group"]):active [style*="--group-text-wrap--active:"]) {
|
|
253
|
+
--_text-wrap-g-active: var(--group-text-wrap--active, wrap);
|
|
254
|
+
overflow: revert-layer;
|
|
255
|
+
text-overflow: revert-layer;
|
|
256
|
+
}
|
|
257
|
+
:where(:where(ui-group, [data-ui~="group"]):active [style*="--group-text-wrap--active: truncate"]) {
|
|
258
|
+
--_text-wrap-g-active: truncate;
|
|
259
|
+
text-wrap: var(--_text-wrap-b);
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
text-overflow: ellipsis;
|
|
262
|
+
}
|
|
263
|
+
:where(:where(ui-group, [data-ui~="group"]):is(:disabled, [aria-disabled="true"]) [style*="--group-text-wrap--disabled:"]) {
|
|
264
|
+
--_text-wrap-g-disabled: var(--group-text-wrap--disabled, wrap);
|
|
265
|
+
overflow: revert-layer;
|
|
266
|
+
text-overflow: revert-layer;
|
|
267
|
+
}
|
|
268
|
+
:where(:where(ui-group, [data-ui~="group"]):is(:disabled, [aria-disabled="true"]) [style*="--group-text-wrap--disabled: truncate"]) {
|
|
269
|
+
--_text-wrap-g-disabled: truncate;
|
|
270
|
+
text-wrap: var(--_text-wrap-b);
|
|
271
|
+
overflow: hidden;
|
|
272
|
+
text-overflow: ellipsis;
|
|
273
|
+
}
|
|
274
|
+
:where(:is([open], :popover-open, [aria-expanded="true"])[style*="--text-wrap--open:"]) {
|
|
275
|
+
--_text-wrap-open: var(--text-wrap--open, wrap);
|
|
276
|
+
overflow: revert-layer;
|
|
277
|
+
text-overflow: revert-layer;
|
|
278
|
+
}
|
|
279
|
+
:where(:is([open], :popover-open, [aria-expanded="true"])[style*="--text-wrap--open: truncate"]) {
|
|
280
|
+
--_text-wrap-open: truncate;
|
|
281
|
+
text-wrap: var(--_text-wrap-b);
|
|
282
|
+
overflow: hidden;
|
|
283
|
+
text-overflow: ellipsis;
|
|
284
|
+
}
|
|
285
|
+
:where(:is([aria-current]:not([aria-current="false"]))[style*="--text-wrap--current:"]) {
|
|
286
|
+
--_text-wrap-current: var(--text-wrap--current, wrap);
|
|
287
|
+
overflow: revert-layer;
|
|
288
|
+
text-overflow: revert-layer;
|
|
289
|
+
}
|
|
290
|
+
:where(:is([aria-current]:not([aria-current="false"]))[style*="--text-wrap--current: truncate"]) {
|
|
291
|
+
--_text-wrap-current: truncate;
|
|
292
|
+
text-wrap: var(--_text-wrap-b);
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
text-overflow: ellipsis;
|
|
295
|
+
}
|
|
296
|
+
:where(:is(:checked, [aria-checked="true"])[style*="--text-wrap--checked:"]) {
|
|
297
|
+
--_text-wrap-checked: var(--text-wrap--checked, wrap);
|
|
298
|
+
overflow: revert-layer;
|
|
299
|
+
text-overflow: revert-layer;
|
|
300
|
+
}
|
|
301
|
+
:where(:is(:checked, [aria-checked="true"])[style*="--text-wrap--checked: truncate"]) {
|
|
302
|
+
--_text-wrap-checked: truncate;
|
|
303
|
+
text-wrap: var(--_text-wrap-b);
|
|
304
|
+
overflow: hidden;
|
|
305
|
+
text-overflow: ellipsis;
|
|
306
|
+
}
|
|
307
|
+
@media (hover: hover) {
|
|
308
|
+
:where(:hover[style*="--text-wrap--hover:"]) {
|
|
309
|
+
--_text-wrap-hover: var(--text-wrap--hover, wrap);
|
|
310
|
+
overflow: revert-layer;
|
|
311
|
+
text-overflow: revert-layer;
|
|
312
|
+
}
|
|
313
|
+
:where(:hover[style*="--text-wrap--hover: truncate"]) {
|
|
314
|
+
--_text-wrap-hover: truncate;
|
|
315
|
+
text-wrap: var(--_text-wrap-b);
|
|
316
|
+
overflow: hidden;
|
|
317
|
+
text-overflow: ellipsis;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
:where(:focus-within[style*="--text-wrap--focus-within:"]) {
|
|
321
|
+
--_text-wrap-focus-within: var(--text-wrap--focus-within, wrap);
|
|
322
|
+
overflow: revert-layer;
|
|
323
|
+
text-overflow: revert-layer;
|
|
324
|
+
}
|
|
325
|
+
:where(:focus-within[style*="--text-wrap--focus-within: truncate"]) {
|
|
326
|
+
--_text-wrap-focus-within: truncate;
|
|
327
|
+
text-wrap: var(--_text-wrap-b);
|
|
328
|
+
overflow: hidden;
|
|
329
|
+
text-overflow: ellipsis;
|
|
330
|
+
}
|
|
331
|
+
:where(:focus-visible[style*="--text-wrap--focus-visible:"]) {
|
|
332
|
+
--_text-wrap-focus-visible: var(--text-wrap--focus-visible, wrap);
|
|
333
|
+
overflow: revert-layer;
|
|
334
|
+
text-overflow: revert-layer;
|
|
335
|
+
}
|
|
336
|
+
:where(:focus-visible[style*="--text-wrap--focus-visible: truncate"]) {
|
|
337
|
+
--_text-wrap-focus-visible: truncate;
|
|
338
|
+
text-wrap: var(--_text-wrap-b);
|
|
339
|
+
overflow: hidden;
|
|
340
|
+
text-overflow: ellipsis;
|
|
341
|
+
}
|
|
342
|
+
:where(:active[style*="--text-wrap--active:"]) {
|
|
343
|
+
--_text-wrap-active: var(--text-wrap--active, wrap);
|
|
344
|
+
overflow: revert-layer;
|
|
345
|
+
text-overflow: revert-layer;
|
|
346
|
+
}
|
|
347
|
+
:where(:active[style*="--text-wrap--active: truncate"]) {
|
|
348
|
+
--_text-wrap-active: truncate;
|
|
349
|
+
text-wrap: var(--_text-wrap-b);
|
|
350
|
+
overflow: hidden;
|
|
351
|
+
text-overflow: ellipsis;
|
|
352
|
+
}
|
|
353
|
+
:where(:is(:disabled, [aria-disabled="true"])[style*="--text-wrap--disabled:"]) {
|
|
354
|
+
--_text-wrap-disabled: var(--text-wrap--disabled, wrap);
|
|
355
|
+
overflow: revert-layer;
|
|
356
|
+
text-overflow: revert-layer;
|
|
357
|
+
}
|
|
358
|
+
:where(:is(:disabled, [aria-disabled="true"])[style*="--text-wrap--disabled: truncate"]) {
|
|
359
|
+
--_text-wrap-disabled: truncate;
|
|
360
|
+
text-wrap: var(--_text-wrap-b);
|
|
361
|
+
overflow: hidden;
|
|
362
|
+
text-overflow: ellipsis;
|
|
103
363
|
}
|
|
104
364
|
|
|
105
365
|
:where([style*="--line-clamp:"], [style*="--line-clamp--"]) {
|
package/src/base/_variables.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @layer variables
|
|
5
5
|
* @requires _layers.css, _typography.css (--fluid, which --spacing reads)
|
|
6
6
|
* @uses light-dark() — theme roles re-resolve per color-scheme (system,
|
|
7
|
-
* data-
|
|
7
|
+
* data-theme="dark" | "light"); tokens stay unregistered on purpose
|
|
8
8
|
* @uses oklch(from …) — shade/tint scales and shadow alphas
|
|
9
9
|
* @uses color-mix() — focus ring (--color-ring)
|
|
10
10
|
* @uses interpolate-size: allow-keywords — discrete block-size animations (details, etc.)
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
interpolate-size: allow-keywords;
|
|
50
50
|
|
|
51
51
|
/* ==========================================================================
|
|
52
|
-
* Theme — light/dark via light-dark(); follows color-scheme (system +
|
|
52
|
+
* Theme — light/dark via light-dark(); follows color-scheme (system + data-theme)
|
|
53
53
|
* ========================================================================== */
|
|
54
54
|
|
|
55
55
|
/* base */
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
|
|
71
71
|
/* overlay */
|
|
72
72
|
--color-muted: light-dark(var(--color-shade-50), var(--color-tint-100));
|
|
73
|
-
--color-muted-foreground: light-dark(var(--color-shade-600), var(--color-tint-
|
|
73
|
+
--color-muted-foreground: light-dark(var(--color-shade-600), var(--color-tint-700));
|
|
74
74
|
--color-faded: light-dark(var(--color-tint-400), var(--color-shade-100));
|
|
75
|
-
--color-faded-foreground: light-dark(var(--color-tint-
|
|
75
|
+
--color-faded-foreground: light-dark(var(--color-tint-700), var(--color-shade-700));
|
|
76
76
|
|
|
77
77
|
/* brand */
|
|
78
78
|
--color-primary: light-dark(var(--color-primary-950), var(--color-primary-50));
|
|
@@ -88,15 +88,17 @@
|
|
|
88
88
|
--shadow-angle turns it for an element and its subtree */
|
|
89
89
|
--default-shadow-angle: 0deg;
|
|
90
90
|
|
|
91
|
-
/* status
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
--color-
|
|
95
|
-
--color-
|
|
96
|
-
--color-
|
|
97
|
-
--color-
|
|
98
|
-
--color-
|
|
99
|
-
--color-
|
|
91
|
+
/* status: each role is a pale surface, and its -foreground the same hue at
|
|
92
|
+
AA contrast on that surface. -foreground is also the ink for status text,
|
|
93
|
+
borders, rings, and accents that sit on other surfaces. */
|
|
94
|
+
--color-info: light-dark(oklch(0.955 0.02 242), oklch(0.33 0.06 242));
|
|
95
|
+
--color-info-foreground: light-dark(oklch(0.45 0.105 242), oklch(0.82 0.09 242));
|
|
96
|
+
--color-success: light-dark(oklch(0.955 0.03 164), oklch(0.33 0.055 164));
|
|
97
|
+
--color-success-foreground: light-dark(oklch(0.43 0.085 164), oklch(0.84 0.13 164));
|
|
98
|
+
--color-warning: light-dark(oklch(0.955 0.03 58), oklch(0.34 0.06 58));
|
|
99
|
+
--color-warning-foreground: light-dark(oklch(0.47 0.105 58), oklch(0.86 0.09 58));
|
|
100
|
+
--color-destructive: light-dark(oklch(0.95 0.025 27), oklch(0.33 0.08 27));
|
|
101
|
+
--color-destructive-foreground: light-dark(oklch(0.48 0.17 27), oklch(0.76 0.13 27));
|
|
100
102
|
|
|
101
103
|
/* ==========================================================================
|
|
102
104
|
* Corporate — brand color scales (50–950)
|
|
@@ -160,34 +162,39 @@
|
|
|
160
162
|
--color-neutral-950: oklch(0.198 0.008 285.68);
|
|
161
163
|
--color-black: oklch(0 0 0);
|
|
162
164
|
|
|
163
|
-
/* shade — darkened overlays (derived from neutral-950)
|
|
165
|
+
/* shade — darkened overlays (derived from neutral-950). The alphas are solved
|
|
166
|
+
for even perceived lightness steps over white, so they don't match the stop
|
|
167
|
+
numbers; browsers composite in gamma-encoded sRGB, where even alpha steps
|
|
168
|
+
look uneven. */
|
|
164
169
|
--color-shade-none: oklch(from var(--color-neutral-950) l c h / 0);
|
|
165
|
-
--color-shade-50: oklch(from var(--color-neutral-950) l c h / 0.
|
|
166
|
-
--color-shade-100: oklch(from var(--color-neutral-950) l c h / 0.
|
|
167
|
-
--color-shade-200: oklch(from var(--color-neutral-950) l c h / 0.
|
|
168
|
-
--color-shade-300: oklch(from var(--color-neutral-950) l c h / 0.
|
|
169
|
-
--color-shade-400: oklch(from var(--color-neutral-950) l c h / 0.
|
|
170
|
-
--color-shade-500: oklch(from var(--color-neutral-950) l c h / 0.
|
|
171
|
-
--color-shade-600: oklch(from var(--color-neutral-950) l c h / 0.
|
|
172
|
-
--color-shade-700: oklch(from var(--color-neutral-950) l c h / 0.
|
|
173
|
-
--color-shade-800: oklch(from var(--color-neutral-950) l c h / 0.
|
|
174
|
-
--color-shade-900: oklch(from var(--color-neutral-950) l c h / 0.
|
|
170
|
+
--color-shade-50: oklch(from var(--color-neutral-950) l c h / 0.055);
|
|
171
|
+
--color-shade-100: oklch(from var(--color-neutral-950) l c h / 0.115);
|
|
172
|
+
--color-shade-200: oklch(from var(--color-neutral-950) l c h / 0.225);
|
|
173
|
+
--color-shade-300: oklch(from var(--color-neutral-950) l c h / 0.335);
|
|
174
|
+
--color-shade-400: oklch(from var(--color-neutral-950) l c h / 0.44);
|
|
175
|
+
--color-shade-500: oklch(from var(--color-neutral-950) l c h / 0.545);
|
|
176
|
+
--color-shade-600: oklch(from var(--color-neutral-950) l c h / 0.645);
|
|
177
|
+
--color-shade-700: oklch(from var(--color-neutral-950) l c h / 0.74);
|
|
178
|
+
--color-shade-800: oklch(from var(--color-neutral-950) l c h / 0.835);
|
|
179
|
+
--color-shade-900: oklch(from var(--color-neutral-950) l c h / 0.92);
|
|
175
180
|
--color-shade-950: oklch(from var(--color-neutral-950) l c h / 0.96);
|
|
176
181
|
--color-shade-full: oklch(from var(--color-neutral-950) l c h / 1);
|
|
177
182
|
|
|
178
|
-
/* tint — faded overlays (derived from white)
|
|
183
|
+
/* tint — faded overlays (derived from white). Solved the same way over the dark
|
|
184
|
+
background; the curve differs from shade's because lightening runs the other
|
|
185
|
+
way up the same lightness response. */
|
|
179
186
|
--color-tint-none: oklch(from var(--color-white) l c h / 0);
|
|
180
|
-
--color-tint-50: oklch(from var(--color-white) l c h / 0.
|
|
181
|
-
--color-tint-100: oklch(from var(--color-white) l c h / 0.
|
|
182
|
-
--color-tint-200: oklch(from var(--color-white) l c h / 0.
|
|
183
|
-
--color-tint-300: oklch(from var(--color-white) l c h / 0.
|
|
184
|
-
--color-tint-400: oklch(from var(--color-white) l c h / 0.
|
|
185
|
-
--color-tint-500: oklch(from var(--color-white) l c h / 0.
|
|
186
|
-
--color-tint-600: oklch(from var(--color-white) l c h / 0.
|
|
187
|
-
--color-tint-700: oklch(from var(--color-white) l c h / 0.
|
|
188
|
-
--color-tint-800: oklch(from var(--color-white) l c h / 0.
|
|
189
|
-
--color-tint-900: oklch(from var(--color-white) l c h / 0.
|
|
190
|
-
--color-tint-950: oklch(from var(--color-white) l c h / 0.
|
|
187
|
+
--color-tint-50: oklch(from var(--color-white) l c h / 0.04);
|
|
188
|
+
--color-tint-100: oklch(from var(--color-white) l c h / 0.085);
|
|
189
|
+
--color-tint-200: oklch(from var(--color-white) l c h / 0.17);
|
|
190
|
+
--color-tint-300: oklch(from var(--color-white) l c h / 0.265);
|
|
191
|
+
--color-tint-400: oklch(from var(--color-white) l c h / 0.36);
|
|
192
|
+
--color-tint-500: oklch(from var(--color-white) l c h / 0.46);
|
|
193
|
+
--color-tint-600: oklch(from var(--color-white) l c h / 0.56);
|
|
194
|
+
--color-tint-700: oklch(from var(--color-white) l c h / 0.67);
|
|
195
|
+
--color-tint-800: oklch(from var(--color-white) l c h / 0.775);
|
|
196
|
+
--color-tint-900: oklch(from var(--color-white) l c h / 0.885);
|
|
197
|
+
--color-tint-950: oklch(from var(--color-white) l c h / 0.945);
|
|
191
198
|
--color-tint-full: oklch(from var(--color-white) l c h / 1);
|
|
192
199
|
|
|
193
200
|
/* ==========================================================================
|
|
@@ -346,6 +353,7 @@
|
|
|
346
353
|
|
|
347
354
|
/* modifiers */
|
|
348
355
|
--radius-multiplier: 1;
|
|
356
|
+
--radius-corner-shape: superellipse(1.3);
|
|
349
357
|
|
|
350
358
|
/* semantic */
|
|
351
359
|
--radius-none: 0rem;
|
|
@@ -452,31 +460,45 @@
|
|
|
452
460
|
|
|
453
461
|
/* ==========================================================================
|
|
454
462
|
* Animations — spring easing, duration
|
|
463
|
+
* --spring-easing is a critically damped spring from rest: no bounce, settled
|
|
464
|
+
* to within 0.1% at the end of --spring-duration. --bezier-easing is its closest fit.
|
|
455
465
|
* ========================================================================== */
|
|
456
466
|
|
|
457
467
|
--spring-easing: linear(
|
|
458
468
|
0,
|
|
459
|
-
0.
|
|
460
|
-
0.
|
|
461
|
-
0.
|
|
462
|
-
0.
|
|
463
|
-
0.
|
|
464
|
-
0.
|
|
465
|
-
0.
|
|
466
|
-
0.
|
|
467
|
-
0.
|
|
468
|
-
0.
|
|
469
|
-
0.
|
|
470
|
-
0.
|
|
471
|
-
0.
|
|
469
|
+
0.005 1.1%,
|
|
470
|
+
0.02 2.3%,
|
|
471
|
+
0.044 3.6%,
|
|
472
|
+
0.082 5.1%,
|
|
473
|
+
0.16 7.7%,
|
|
474
|
+
0.364 13.8%,
|
|
475
|
+
0.462 16.9%,
|
|
476
|
+
0.556 20.2%,
|
|
477
|
+
0.637 23.4%,
|
|
478
|
+
0.706 26.8%,
|
|
479
|
+
0.766 30.1%,
|
|
480
|
+
0.818 33.8%,
|
|
481
|
+
0.861 37.5%,
|
|
482
|
+
0.899 42%,
|
|
483
|
+
0.93 46.9%,
|
|
484
|
+
0.954 52.3%,
|
|
485
|
+
0.971 58.6%,
|
|
486
|
+
0.983 65.5%,
|
|
487
|
+
0.991 73.8%,
|
|
472
488
|
1
|
|
473
489
|
);
|
|
474
|
-
--bezier-easing: cubic-bezier(0.
|
|
475
|
-
--spring-duration: 0.
|
|
490
|
+
--bezier-easing: cubic-bezier(0.32, 0.66, 0.1, 1);
|
|
491
|
+
--spring-duration: 0.25s;
|
|
476
492
|
|
|
477
|
-
/*
|
|
478
|
-
--default-transition-timing-function: var(--spring-easing
|
|
479
|
-
|
|
493
|
+
/* the spring is declared first: the editor data reads the first definition */
|
|
494
|
+
--default-transition-timing-function: var(--spring-easing);
|
|
495
|
+
|
|
496
|
+
/* falls back to cubic-bezier when linear() easing is unsupported */
|
|
497
|
+
@supports not (transition-timing-function: linear(0, 1)) {
|
|
498
|
+
--default-transition-timing-function: var(--bezier-easing);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
--default-transition-duration: var(--spring-duration);
|
|
480
502
|
--default-transition-property-colors:
|
|
481
503
|
text-decoration-color, background-color, border-color, color, fill, stroke;
|
|
482
504
|
--default-transition-property-transforms: transform, translate, scale, rotate;
|
|
@@ -523,12 +545,56 @@
|
|
|
523
545
|
--default-transition:
|
|
524
546
|
var(--default-transition-colors), var(--default-transition-transforms),
|
|
525
547
|
var(--default-transition-effects), var(--default-transition-content);
|
|
548
|
+
|
|
549
|
+
/* looping animations for `--animation`. `--spin` is constant motion, so it runs
|
|
550
|
+
linear; `--spin`, `--ping`, and `--bounce` animate `transform`, so the `--rotate`,
|
|
551
|
+
`--scale`, and `--translate` utilities still compose with them */
|
|
552
|
+
--default-animation: 1s var(--default-transition-timing-function) infinite;
|
|
553
|
+
--spin: spin 1s linear infinite;
|
|
554
|
+
--ping: ping var(--default-animation);
|
|
555
|
+
--pulse: pulse 2s var(--default-transition-timing-function) infinite;
|
|
556
|
+
--bounce: bounce var(--default-animation);
|
|
526
557
|
}
|
|
527
558
|
|
|
528
559
|
@media (prefers-reduced-motion: reduce) {
|
|
529
560
|
:root {
|
|
530
561
|
--default-transition-duration: 0s;
|
|
531
|
-
--default-transition-timing-function: ease-
|
|
562
|
+
--default-transition-timing-function: ease-out;
|
|
563
|
+
|
|
564
|
+
/* `--animation` reads this first, so reduced motion stops any value */
|
|
565
|
+
--_motion-off: none;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/* In this layer, the lowest, so a page's own keyframes of the same name win. */
|
|
570
|
+
@keyframes spin {
|
|
571
|
+
to {
|
|
572
|
+
transform: rotate(360deg);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
@keyframes ping {
|
|
577
|
+
75%,
|
|
578
|
+
100% {
|
|
579
|
+
transform: scale(2);
|
|
580
|
+
opacity: 0;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@keyframes pulse {
|
|
585
|
+
50% {
|
|
586
|
+
opacity: 0.5;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
@keyframes bounce {
|
|
591
|
+
0%,
|
|
592
|
+
100% {
|
|
593
|
+
transform: translateY(-25%);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
50% {
|
|
597
|
+
transform: none;
|
|
532
598
|
}
|
|
533
599
|
}
|
|
534
600
|
|
|
@@ -556,12 +622,12 @@
|
|
|
556
622
|
* the ancestor, so re-assert them at each scope boundary.
|
|
557
623
|
*/
|
|
558
624
|
|
|
559
|
-
[data-
|
|
625
|
+
[data-theme="dark"] {
|
|
560
626
|
color-scheme: dark;
|
|
561
627
|
color: var(--color-foreground);
|
|
562
628
|
}
|
|
563
629
|
|
|
564
|
-
[data-
|
|
630
|
+
[data-theme="light"] {
|
|
565
631
|
color-scheme: light;
|
|
566
632
|
color: var(--color-foreground);
|
|
567
633
|
}
|