@pimolu/web-styles 0.1.0-beta.7 → 0.1.0-beta.9
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/README.fr.md +125 -125
- package/README.md +6 -6
- package/dist/api-table.css +6 -5
- package/dist/arc-carousel.css +248 -0
- package/dist/carousel.css +5 -1
- package/dist/coverflow-carousel.css +238 -0
- package/dist/layered.css +669 -123
- package/dist/modal.css +186 -0
- package/dist/multi-carousel.css +236 -0
- package/dist/peek-carousel.css +237 -0
- package/dist/pimolu.css +653 -123
- package/dist/pimolu.min.css +1 -1
- package/dist/popover.css +4 -0
- package/dist/stack-carousel.css +237 -0
- package/dist/tabs.css +36 -36
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +231 -0
- package/dist/tokens.css +902 -0
- package/package.json +176 -171
package/dist/layered.css
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--pimolu-color-slate-200: #E2E8F0;
|
|
34
34
|
--pimolu-color-slate-400: #94A3B8;
|
|
35
35
|
--pimolu-color-slate-500: #64748B;
|
|
36
|
+
--pimolu-color-slate-550: #607087;
|
|
36
37
|
--pimolu-color-slate-800: #1E293B;
|
|
37
38
|
--pimolu-color-slate-900: #0F172A;
|
|
38
39
|
--pimolu-color-slate-950: #020617;
|
|
@@ -77,17 +78,17 @@
|
|
|
77
78
|
:root,
|
|
78
79
|
[data-pimolu-theme=light] {
|
|
79
80
|
color-scheme: light;
|
|
80
|
-
--pimolu-background: var(--pimolu-color-
|
|
81
|
-
--pimolu-foreground: var(--pimolu-color-
|
|
82
|
-
--pimolu-surface: var(--pimolu-color-
|
|
83
|
-
--pimolu-surface-foreground: var(--pimolu-color-
|
|
84
|
-
--pimolu-muted: var(--pimolu-color-
|
|
85
|
-
--pimolu-muted-foreground: var(--pimolu-color-
|
|
86
|
-
--pimolu-border: var(--pimolu-color-
|
|
87
|
-
--pimolu-primary: var(--pimolu-color-
|
|
88
|
-
--pimolu-primary-hover: var(--pimolu-color-
|
|
81
|
+
--pimolu-background: var(--pimolu-color-white);
|
|
82
|
+
--pimolu-foreground: var(--pimolu-color-slate-950);
|
|
83
|
+
--pimolu-surface: var(--pimolu-color-slate-50);
|
|
84
|
+
--pimolu-surface-foreground: var(--pimolu-color-slate-900);
|
|
85
|
+
--pimolu-muted: var(--pimolu-color-slate-100);
|
|
86
|
+
--pimolu-muted-foreground: var(--pimolu-color-slate-550);
|
|
87
|
+
--pimolu-border: var(--pimolu-color-slate-200);
|
|
88
|
+
--pimolu-primary: var(--pimolu-color-indigo-600);
|
|
89
|
+
--pimolu-primary-hover: var(--pimolu-color-indigo-700);
|
|
89
90
|
--pimolu-primary-foreground: var(--pimolu-color-white);
|
|
90
|
-
--pimolu-focus-ring: var(--pimolu-color-
|
|
91
|
+
--pimolu-focus-ring: var(--pimolu-color-indigo-500);
|
|
91
92
|
--pimolu-success: var(--pimolu-color-green-700);
|
|
92
93
|
--pimolu-success-hover: var(--pimolu-color-green-800);
|
|
93
94
|
--pimolu-success-foreground: var(--pimolu-color-white);
|
|
@@ -97,23 +98,23 @@
|
|
|
97
98
|
--pimolu-danger: var(--pimolu-color-red-600);
|
|
98
99
|
--pimolu-danger-hover: var(--pimolu-color-red-700);
|
|
99
100
|
--pimolu-danger-foreground: var(--pimolu-color-white);
|
|
100
|
-
--pimolu-control-border: var(--pimolu-color-
|
|
101
|
-
--pimolu-primary-soft: var(--pimolu-color-
|
|
102
|
-
--pimolu-primary-soft-foreground: var(--pimolu-color-
|
|
101
|
+
--pimolu-control-border: var(--pimolu-color-slate-500);
|
|
102
|
+
--pimolu-primary-soft: var(--pimolu-color-slate-100);
|
|
103
|
+
--pimolu-primary-soft-foreground: var(--pimolu-color-indigo-600);
|
|
103
104
|
}
|
|
104
105
|
[data-pimolu-theme=dark] {
|
|
105
106
|
color-scheme: dark;
|
|
106
|
-
--pimolu-background: var(--pimolu-color-
|
|
107
|
-
--pimolu-foreground: var(--pimolu-color-
|
|
108
|
-
--pimolu-surface: var(--pimolu-color-
|
|
109
|
-
--pimolu-surface-foreground: var(--pimolu-color-
|
|
110
|
-
--pimolu-muted: var(--pimolu-color-
|
|
111
|
-
--pimolu-muted-foreground: var(--pimolu-color-
|
|
112
|
-
--pimolu-border: var(--pimolu-color-
|
|
113
|
-
--pimolu-primary: var(--pimolu-color-
|
|
114
|
-
--pimolu-primary-hover: var(--pimolu-color-
|
|
115
|
-
--pimolu-primary-foreground: var(--pimolu-color-
|
|
116
|
-
--pimolu-focus-ring: var(--pimolu-color-
|
|
107
|
+
--pimolu-background: var(--pimolu-color-slate-950);
|
|
108
|
+
--pimolu-foreground: var(--pimolu-color-slate-50);
|
|
109
|
+
--pimolu-surface: var(--pimolu-color-slate-900);
|
|
110
|
+
--pimolu-surface-foreground: var(--pimolu-color-slate-50);
|
|
111
|
+
--pimolu-muted: var(--pimolu-color-slate-800);
|
|
112
|
+
--pimolu-muted-foreground: var(--pimolu-color-slate-400);
|
|
113
|
+
--pimolu-border: var(--pimolu-color-slate-800);
|
|
114
|
+
--pimolu-primary: var(--pimolu-color-indigo-400);
|
|
115
|
+
--pimolu-primary-hover: var(--pimolu-color-indigo-500);
|
|
116
|
+
--pimolu-primary-foreground: var(--pimolu-color-slate-950);
|
|
117
|
+
--pimolu-focus-ring: var(--pimolu-color-indigo-400);
|
|
117
118
|
--pimolu-success: var(--pimolu-color-green-500);
|
|
118
119
|
--pimolu-success-hover: var(--pimolu-color-green-600);
|
|
119
120
|
--pimolu-success-foreground: var(--pimolu-color-slate-950);
|
|
@@ -123,9 +124,9 @@
|
|
|
123
124
|
--pimolu-danger: var(--pimolu-color-red-400);
|
|
124
125
|
--pimolu-danger-hover: var(--pimolu-color-red-500);
|
|
125
126
|
--pimolu-danger-foreground: var(--pimolu-color-slate-950);
|
|
126
|
-
--pimolu-control-border: var(--pimolu-color-
|
|
127
|
-
--pimolu-primary-soft: var(--pimolu-color-
|
|
128
|
-
--pimolu-primary-soft-foreground: var(--pimolu-color-
|
|
127
|
+
--pimolu-control-border: var(--pimolu-color-slate-500);
|
|
128
|
+
--pimolu-primary-soft: var(--pimolu-color-slate-800);
|
|
129
|
+
--pimolu-primary-soft-foreground: var(--pimolu-color-indigo-400);
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
|
|
@@ -180,17 +181,17 @@
|
|
|
180
181
|
/* ../themes/dist/default.css */
|
|
181
182
|
@layer pimolu {
|
|
182
183
|
[data-pimolu-theme=light][data-pimolu-style=default] {
|
|
183
|
-
--pimolu-background: #
|
|
184
|
-
--pimolu-foreground: #
|
|
185
|
-
--pimolu-surface: #
|
|
186
|
-
--pimolu-surface-foreground: #
|
|
187
|
-
--pimolu-muted: #
|
|
188
|
-
--pimolu-muted-foreground: #
|
|
189
|
-
--pimolu-border: #
|
|
190
|
-
--pimolu-primary: #
|
|
191
|
-
--pimolu-primary-hover: #
|
|
184
|
+
--pimolu-background: #FFFFFF;
|
|
185
|
+
--pimolu-foreground: #020617;
|
|
186
|
+
--pimolu-surface: #F8FAFC;
|
|
187
|
+
--pimolu-surface-foreground: #0F172A;
|
|
188
|
+
--pimolu-muted: #F1F5F9;
|
|
189
|
+
--pimolu-muted-foreground: #607087;
|
|
190
|
+
--pimolu-border: #E2E8F0;
|
|
191
|
+
--pimolu-primary: #4F46E5;
|
|
192
|
+
--pimolu-primary-hover: #4338CA;
|
|
192
193
|
--pimolu-primary-foreground: #FFFFFF;
|
|
193
|
-
--pimolu-focus-ring: #
|
|
194
|
+
--pimolu-focus-ring: #6366F1;
|
|
194
195
|
--pimolu-success: #15803D;
|
|
195
196
|
--pimolu-success-hover: #166534;
|
|
196
197
|
--pimolu-success-foreground: #FFFFFF;
|
|
@@ -200,22 +201,22 @@
|
|
|
200
201
|
--pimolu-danger: #DC2626;
|
|
201
202
|
--pimolu-danger-hover: #B91C1C;
|
|
202
203
|
--pimolu-danger-foreground: #FFFFFF;
|
|
203
|
-
--pimolu-control-border: #
|
|
204
|
-
--pimolu-primary-soft: #
|
|
205
|
-
--pimolu-primary-soft-foreground: #
|
|
204
|
+
--pimolu-control-border: #64748B;
|
|
205
|
+
--pimolu-primary-soft: #F1F5F9;
|
|
206
|
+
--pimolu-primary-soft-foreground: #4F46E5;
|
|
206
207
|
}
|
|
207
208
|
[data-pimolu-theme=dark][data-pimolu-style=default] {
|
|
208
|
-
--pimolu-background: #
|
|
209
|
-
--pimolu-foreground: #
|
|
210
|
-
--pimolu-surface: #
|
|
211
|
-
--pimolu-surface-foreground: #
|
|
212
|
-
--pimolu-muted: #
|
|
213
|
-
--pimolu-muted-foreground: #
|
|
214
|
-
--pimolu-border: #
|
|
215
|
-
--pimolu-primary: #
|
|
216
|
-
--pimolu-primary-hover: #
|
|
217
|
-
--pimolu-primary-foreground: #
|
|
218
|
-
--pimolu-focus-ring: #
|
|
209
|
+
--pimolu-background: #020617;
|
|
210
|
+
--pimolu-foreground: #F8FAFC;
|
|
211
|
+
--pimolu-surface: #0F172A;
|
|
212
|
+
--pimolu-surface-foreground: #F8FAFC;
|
|
213
|
+
--pimolu-muted: #1E293B;
|
|
214
|
+
--pimolu-muted-foreground: #94A3B8;
|
|
215
|
+
--pimolu-border: #1E293B;
|
|
216
|
+
--pimolu-primary: #818CF8;
|
|
217
|
+
--pimolu-primary-hover: #6366F1;
|
|
218
|
+
--pimolu-primary-foreground: #020617;
|
|
219
|
+
--pimolu-focus-ring: #818CF8;
|
|
219
220
|
--pimolu-success: #22C55E;
|
|
220
221
|
--pimolu-success-hover: #16A34A;
|
|
221
222
|
--pimolu-success-foreground: #020617;
|
|
@@ -225,22 +226,22 @@
|
|
|
225
226
|
--pimolu-danger: #F87171;
|
|
226
227
|
--pimolu-danger-hover: #EF4444;
|
|
227
228
|
--pimolu-danger-foreground: #020617;
|
|
228
|
-
--pimolu-control-border: #
|
|
229
|
-
--pimolu-primary-soft: #
|
|
230
|
-
--pimolu-primary-soft-foreground: #
|
|
229
|
+
--pimolu-control-border: #64748B;
|
|
230
|
+
--pimolu-primary-soft: #1E293B;
|
|
231
|
+
--pimolu-primary-soft-foreground: #818CF8;
|
|
231
232
|
}
|
|
232
233
|
[data-pimolu-theme=system][data-pimolu-style=default] {
|
|
233
|
-
--pimolu-background: #
|
|
234
|
-
--pimolu-foreground: #
|
|
235
|
-
--pimolu-surface: #
|
|
236
|
-
--pimolu-surface-foreground: #
|
|
237
|
-
--pimolu-muted: #
|
|
238
|
-
--pimolu-muted-foreground: #
|
|
239
|
-
--pimolu-border: #
|
|
240
|
-
--pimolu-primary: #
|
|
241
|
-
--pimolu-primary-hover: #
|
|
234
|
+
--pimolu-background: #FFFFFF;
|
|
235
|
+
--pimolu-foreground: #020617;
|
|
236
|
+
--pimolu-surface: #F8FAFC;
|
|
237
|
+
--pimolu-surface-foreground: #0F172A;
|
|
238
|
+
--pimolu-muted: #F1F5F9;
|
|
239
|
+
--pimolu-muted-foreground: #607087;
|
|
240
|
+
--pimolu-border: #E2E8F0;
|
|
241
|
+
--pimolu-primary: #4F46E5;
|
|
242
|
+
--pimolu-primary-hover: #4338CA;
|
|
242
243
|
--pimolu-primary-foreground: #FFFFFF;
|
|
243
|
-
--pimolu-focus-ring: #
|
|
244
|
+
--pimolu-focus-ring: #6366F1;
|
|
244
245
|
--pimolu-success: #15803D;
|
|
245
246
|
--pimolu-success-hover: #166534;
|
|
246
247
|
--pimolu-success-foreground: #FFFFFF;
|
|
@@ -250,23 +251,23 @@
|
|
|
250
251
|
--pimolu-danger: #DC2626;
|
|
251
252
|
--pimolu-danger-hover: #B91C1C;
|
|
252
253
|
--pimolu-danger-foreground: #FFFFFF;
|
|
253
|
-
--pimolu-control-border: #
|
|
254
|
-
--pimolu-primary-soft: #
|
|
255
|
-
--pimolu-primary-soft-foreground: #
|
|
254
|
+
--pimolu-control-border: #64748B;
|
|
255
|
+
--pimolu-primary-soft: #F1F5F9;
|
|
256
|
+
--pimolu-primary-soft-foreground: #4F46E5;
|
|
256
257
|
}
|
|
257
258
|
@media (prefers-color-scheme: dark) {
|
|
258
259
|
[data-pimolu-theme=system][data-pimolu-style=default] {
|
|
259
|
-
--pimolu-background: #
|
|
260
|
-
--pimolu-foreground: #
|
|
261
|
-
--pimolu-surface: #
|
|
262
|
-
--pimolu-surface-foreground: #
|
|
263
|
-
--pimolu-muted: #
|
|
264
|
-
--pimolu-muted-foreground: #
|
|
265
|
-
--pimolu-border: #
|
|
266
|
-
--pimolu-primary: #
|
|
267
|
-
--pimolu-primary-hover: #
|
|
268
|
-
--pimolu-primary-foreground: #
|
|
269
|
-
--pimolu-focus-ring: #
|
|
260
|
+
--pimolu-background: #020617;
|
|
261
|
+
--pimolu-foreground: #F8FAFC;
|
|
262
|
+
--pimolu-surface: #0F172A;
|
|
263
|
+
--pimolu-surface-foreground: #F8FAFC;
|
|
264
|
+
--pimolu-muted: #1E293B;
|
|
265
|
+
--pimolu-muted-foreground: #94A3B8;
|
|
266
|
+
--pimolu-border: #1E293B;
|
|
267
|
+
--pimolu-primary: #818CF8;
|
|
268
|
+
--pimolu-primary-hover: #6366F1;
|
|
269
|
+
--pimolu-primary-foreground: #020617;
|
|
270
|
+
--pimolu-focus-ring: #818CF8;
|
|
270
271
|
--pimolu-success: #22C55E;
|
|
271
272
|
--pimolu-success-hover: #16A34A;
|
|
272
273
|
--pimolu-success-foreground: #020617;
|
|
@@ -276,9 +277,9 @@
|
|
|
276
277
|
--pimolu-danger: #F87171;
|
|
277
278
|
--pimolu-danger-hover: #EF4444;
|
|
278
279
|
--pimolu-danger-foreground: #020617;
|
|
279
|
-
--pimolu-control-border: #
|
|
280
|
-
--pimolu-primary-soft: #
|
|
281
|
-
--pimolu-primary-soft-foreground: #
|
|
280
|
+
--pimolu-control-border: #64748B;
|
|
281
|
+
--pimolu-primary-soft: #1E293B;
|
|
282
|
+
--pimolu-primary-soft-foreground: #818CF8;
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
285
|
}
|
|
@@ -4427,6 +4428,10 @@
|
|
|
4427
4428
|
.pimolu-popover--match-width {
|
|
4428
4429
|
min-width: 0;
|
|
4429
4430
|
}
|
|
4431
|
+
.pimolu-popover[data-side=left],
|
|
4432
|
+
.pimolu-popover[data-side=right] {
|
|
4433
|
+
min-width: 0;
|
|
4434
|
+
}
|
|
4430
4435
|
.pimolu-popover[data-side=top] {
|
|
4431
4436
|
--pimolu-popover-shift-x: 0px;
|
|
4432
4437
|
--pimolu-popover-shift-y: 6px;
|
|
@@ -4671,6 +4676,195 @@
|
|
|
4671
4676
|
}
|
|
4672
4677
|
}
|
|
4673
4678
|
|
|
4679
|
+
/* src/modal.css */
|
|
4680
|
+
@layer pimolu {
|
|
4681
|
+
.pimolu-modal {
|
|
4682
|
+
position: fixed;
|
|
4683
|
+
inset: 0;
|
|
4684
|
+
z-index: 50;
|
|
4685
|
+
display: grid;
|
|
4686
|
+
place-items: center;
|
|
4687
|
+
box-sizing: border-box;
|
|
4688
|
+
padding: var( --pimolu-spacing-6, 24px );
|
|
4689
|
+
overflow: hidden;
|
|
4690
|
+
}
|
|
4691
|
+
.pimolu-modal__overlay {
|
|
4692
|
+
position: absolute;
|
|
4693
|
+
inset: 0;
|
|
4694
|
+
background: rgba(15, 23, 42, 0.55);
|
|
4695
|
+
}
|
|
4696
|
+
.pimolu-modal__content {
|
|
4697
|
+
--pimolu-modal-width: 32rem;
|
|
4698
|
+
position: relative;
|
|
4699
|
+
z-index: 1;
|
|
4700
|
+
box-sizing: border-box;
|
|
4701
|
+
width: min(100%, var(--pimolu-modal-width));
|
|
4702
|
+
max-height: calc(100vh - 48px);
|
|
4703
|
+
max-height: calc(100dvh - 48px);
|
|
4704
|
+
padding: var(--pimolu-spacing-6, 24px);
|
|
4705
|
+
overflow-y: auto;
|
|
4706
|
+
overscroll-behavior: contain;
|
|
4707
|
+
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
4708
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground) );
|
|
4709
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
4710
|
+
border-radius: var(--pimolu-radius-lg, 12px);
|
|
4711
|
+
box-shadow: var(--pimolu-shadow-raised, none);
|
|
4712
|
+
-webkit-backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
4713
|
+
backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
|
|
4714
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
4715
|
+
font-size: 0.875rem;
|
|
4716
|
+
line-height: 1.5;
|
|
4717
|
+
outline: none;
|
|
4718
|
+
}
|
|
4719
|
+
.pimolu-modal__content--sm {
|
|
4720
|
+
--pimolu-modal-width: 24rem;
|
|
4721
|
+
}
|
|
4722
|
+
.pimolu-modal__content--md {
|
|
4723
|
+
--pimolu-modal-width: 32rem;
|
|
4724
|
+
}
|
|
4725
|
+
.pimolu-modal__content--lg {
|
|
4726
|
+
--pimolu-modal-width: 48rem;
|
|
4727
|
+
}
|
|
4728
|
+
.pimolu-modal__content--xl {
|
|
4729
|
+
--pimolu-modal-width: 64rem;
|
|
4730
|
+
}
|
|
4731
|
+
.pimolu-modal__header {
|
|
4732
|
+
display: grid;
|
|
4733
|
+
gap: 6px;
|
|
4734
|
+
min-width: 0;
|
|
4735
|
+
margin-block-end: var( --pimolu-spacing-4, 16px );
|
|
4736
|
+
}
|
|
4737
|
+
.pimolu-modal__content[data-close-button=true] .pimolu-modal__header {
|
|
4738
|
+
padding-inline-end: var( --pimolu-spacing-8, 32px );
|
|
4739
|
+
}
|
|
4740
|
+
.pimolu-modal__title {
|
|
4741
|
+
margin: 0;
|
|
4742
|
+
color: inherit;
|
|
4743
|
+
font-family: var( --pimolu-font-heading, inherit );
|
|
4744
|
+
font-size: 1.25rem;
|
|
4745
|
+
font-weight: 600;
|
|
4746
|
+
line-height: 1.3;
|
|
4747
|
+
overflow-wrap: anywhere;
|
|
4748
|
+
}
|
|
4749
|
+
.pimolu-modal__description {
|
|
4750
|
+
margin: 0;
|
|
4751
|
+
color: var(--pimolu-muted-foreground);
|
|
4752
|
+
font-size: 0.875rem;
|
|
4753
|
+
line-height: 1.5;
|
|
4754
|
+
overflow-wrap: anywhere;
|
|
4755
|
+
}
|
|
4756
|
+
.pimolu-modal__footer {
|
|
4757
|
+
display: flex;
|
|
4758
|
+
align-items: center;
|
|
4759
|
+
justify-content: flex-end;
|
|
4760
|
+
flex-wrap: wrap;
|
|
4761
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
4762
|
+
margin-block-start: var( --pimolu-spacing-6, 24px );
|
|
4763
|
+
}
|
|
4764
|
+
.pimolu-modal__close {
|
|
4765
|
+
position: absolute;
|
|
4766
|
+
inset-block-start: 12px;
|
|
4767
|
+
inset-inline-end: 12px;
|
|
4768
|
+
display: inline-grid;
|
|
4769
|
+
place-items: center;
|
|
4770
|
+
box-sizing: border-box;
|
|
4771
|
+
width: 32px;
|
|
4772
|
+
height: 32px;
|
|
4773
|
+
padding: 0;
|
|
4774
|
+
border: 0;
|
|
4775
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
4776
|
+
background: transparent;
|
|
4777
|
+
color: var(--pimolu-muted-foreground);
|
|
4778
|
+
line-height: 0;
|
|
4779
|
+
cursor: pointer;
|
|
4780
|
+
}
|
|
4781
|
+
.pimolu-modal__close:hover {
|
|
4782
|
+
background: var(--pimolu-muted);
|
|
4783
|
+
color: var(--pimolu-foreground);
|
|
4784
|
+
}
|
|
4785
|
+
.pimolu-modal__close:focus-visible {
|
|
4786
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
4787
|
+
outline-offset: 2px;
|
|
4788
|
+
}
|
|
4789
|
+
.pimolu-modal[data-state=open] .pimolu-modal__overlay {
|
|
4790
|
+
animation: pimolu-modal-overlay-in 150ms ease-out;
|
|
4791
|
+
}
|
|
4792
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__overlay {
|
|
4793
|
+
animation: pimolu-modal-overlay-out 150ms ease-in forwards;
|
|
4794
|
+
}
|
|
4795
|
+
.pimolu-modal[data-state=open] .pimolu-modal__content {
|
|
4796
|
+
animation: pimolu-modal-content-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
4797
|
+
}
|
|
4798
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__content {
|
|
4799
|
+
animation: pimolu-modal-content-out 150ms ease-in forwards;
|
|
4800
|
+
}
|
|
4801
|
+
@keyframes pimolu-modal-overlay-in {
|
|
4802
|
+
from {
|
|
4803
|
+
opacity: 0;
|
|
4804
|
+
}
|
|
4805
|
+
to {
|
|
4806
|
+
opacity: 1;
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
@keyframes pimolu-modal-overlay-out {
|
|
4810
|
+
from {
|
|
4811
|
+
opacity: 1;
|
|
4812
|
+
}
|
|
4813
|
+
to {
|
|
4814
|
+
opacity: 0;
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
@keyframes pimolu-modal-content-in {
|
|
4818
|
+
from {
|
|
4819
|
+
opacity: 0;
|
|
4820
|
+
transform: translateY(8px) scale(0.97);
|
|
4821
|
+
}
|
|
4822
|
+
to {
|
|
4823
|
+
opacity: 1;
|
|
4824
|
+
transform: translateY(0) scale(1);
|
|
4825
|
+
}
|
|
4826
|
+
}
|
|
4827
|
+
@keyframes pimolu-modal-content-out {
|
|
4828
|
+
from {
|
|
4829
|
+
opacity: 1;
|
|
4830
|
+
transform: scale(1);
|
|
4831
|
+
}
|
|
4832
|
+
to {
|
|
4833
|
+
opacity: 0;
|
|
4834
|
+
transform: scale(0.97);
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
@media (max-width: 600px) {
|
|
4838
|
+
.pimolu-modal {
|
|
4839
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
4840
|
+
}
|
|
4841
|
+
.pimolu-modal__content {
|
|
4842
|
+
max-height: calc(100vh - 32px);
|
|
4843
|
+
max-height: calc(100dvh - 32px);
|
|
4844
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
4845
|
+
}
|
|
4846
|
+
}
|
|
4847
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4848
|
+
.pimolu-modal[data-state=open] .pimolu-modal__overlay,
|
|
4849
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__overlay,
|
|
4850
|
+
.pimolu-modal[data-state=open] .pimolu-modal__content,
|
|
4851
|
+
.pimolu-modal[data-state=closing] .pimolu-modal__content {
|
|
4852
|
+
animation: none;
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
@media (forced-colors: active) {
|
|
4856
|
+
.pimolu-modal__content {
|
|
4857
|
+
border: 1px solid CanvasText;
|
|
4858
|
+
background: Canvas;
|
|
4859
|
+
color: CanvasText;
|
|
4860
|
+
box-shadow: none;
|
|
4861
|
+
}
|
|
4862
|
+
.pimolu-modal__close:focus-visible {
|
|
4863
|
+
outline-color: Highlight;
|
|
4864
|
+
}
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4674
4868
|
/* src/tabs.css */
|
|
4675
4869
|
@layer pimolu {
|
|
4676
4870
|
:root {
|
|
@@ -4700,7 +4894,7 @@
|
|
|
4700
4894
|
min-width: 0;
|
|
4701
4895
|
max-width: 100%;
|
|
4702
4896
|
}
|
|
4703
|
-
.pimolu-tabs--vertical .pimolu-tabs__list-wrap {
|
|
4897
|
+
.pimolu-tabs--vertical > .pimolu-tabs__list-wrap {
|
|
4704
4898
|
grid-column: 1;
|
|
4705
4899
|
grid-row: 1;
|
|
4706
4900
|
}
|
|
@@ -4730,7 +4924,7 @@
|
|
|
4730
4924
|
min-width: 0;
|
|
4731
4925
|
max-width: 100%;
|
|
4732
4926
|
}
|
|
4733
|
-
.pimolu-tabs--vertical .pimolu-tabs__list {
|
|
4927
|
+
.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4734
4928
|
display: flex;
|
|
4735
4929
|
flex: 1 1 auto;
|
|
4736
4930
|
flex-direction: column;
|
|
@@ -4816,7 +5010,7 @@
|
|
|
4816
5010
|
opacity: 0.5;
|
|
4817
5011
|
cursor: not-allowed;
|
|
4818
5012
|
}
|
|
4819
|
-
.pimolu-tabs--vertical .pimolu-tabs__trigger {
|
|
5013
|
+
.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
|
|
4820
5014
|
justify-content: flex-start;
|
|
4821
5015
|
}
|
|
4822
5016
|
.pimolu-tabs__panel {
|
|
@@ -4841,64 +5035,64 @@
|
|
|
4841
5035
|
outline-offset: 2px;
|
|
4842
5036
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
4843
5037
|
}
|
|
4844
|
-
.pimolu-tabs--vertical .pimolu-tabs__panel {
|
|
5038
|
+
.pimolu-tabs--vertical > .pimolu-tabs__panel {
|
|
4845
5039
|
grid-column: 2;
|
|
4846
5040
|
grid-row: 1;
|
|
4847
5041
|
}
|
|
4848
|
-
.pimolu-tabs--line .pimolu-tabs__list {
|
|
5042
|
+
.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4849
5043
|
gap: 8px;
|
|
4850
5044
|
border-block-end: 1px solid var(--pimolu-border);
|
|
4851
5045
|
}
|
|
4852
|
-
.pimolu-tabs--line .pimolu-tabs__trigger {
|
|
5046
|
+
.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
|
|
4853
5047
|
border-radius: 0;
|
|
4854
5048
|
padding-inline: 4px;
|
|
4855
5049
|
}
|
|
4856
|
-
.pimolu-tabs--line .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
5050
|
+
.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
4857
5051
|
background: transparent;
|
|
4858
5052
|
color: var(--pimolu-foreground);
|
|
4859
5053
|
}
|
|
4860
|
-
.pimolu-tabs--line .pimolu-tabs__trigger[data-state=active] {
|
|
5054
|
+
.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
|
|
4861
5055
|
color: var(--pimolu-primary);
|
|
4862
5056
|
box-shadow: inset 0 -2px 0 var(--pimolu-primary);
|
|
4863
5057
|
}
|
|
4864
|
-
.pimolu-tabs--line .pimolu-tabs__trigger[data-state=active]:hover {
|
|
5058
|
+
.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active]:hover {
|
|
4865
5059
|
color: var(--pimolu-primary);
|
|
4866
5060
|
}
|
|
4867
|
-
.pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__list {
|
|
5061
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4868
5062
|
border-block-end: 0;
|
|
4869
5063
|
border-inline-end: 1px solid var(--pimolu-border);
|
|
4870
5064
|
}
|
|
4871
|
-
.pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger {
|
|
5065
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
|
|
4872
5066
|
padding-inline: var(--pimolu-spacing-3, 12px);
|
|
4873
5067
|
}
|
|
4874
|
-
.pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger[data-state=active] {
|
|
5068
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
|
|
4875
5069
|
box-shadow: inset -2px 0 0 var(--pimolu-primary);
|
|
4876
5070
|
}
|
|
4877
|
-
.pimolu-tabs--solid .pimolu-tabs__list {
|
|
5071
|
+
.pimolu-tabs--solid > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4878
5072
|
padding: 4px;
|
|
4879
5073
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
4880
5074
|
background: var(--pimolu-muted);
|
|
4881
5075
|
}
|
|
4882
|
-
.pimolu-tabs--solid .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
5076
|
+
.pimolu-tabs--solid > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
4883
5077
|
color: var(--pimolu-foreground);
|
|
4884
5078
|
background: color-mix(in srgb, var(--pimolu-foreground) 8%, transparent);
|
|
4885
5079
|
}
|
|
4886
|
-
.pimolu-tabs--solid .pimolu-tabs__trigger[data-state=active] {
|
|
5080
|
+
.pimolu-tabs--solid > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
|
|
4887
5081
|
color: var(--pimolu-primary-foreground);
|
|
4888
5082
|
background: var(--pimolu-primary);
|
|
4889
5083
|
}
|
|
4890
|
-
.pimolu-tabs--soft .pimolu-tabs__list {
|
|
5084
|
+
.pimolu-tabs--soft > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4891
5085
|
gap: 6px;
|
|
4892
5086
|
}
|
|
4893
|
-
.pimolu-tabs--soft .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
5087
|
+
.pimolu-tabs--soft > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
4894
5088
|
color: var(--pimolu-foreground);
|
|
4895
5089
|
background: var(--pimolu-muted);
|
|
4896
5090
|
}
|
|
4897
|
-
.pimolu-tabs--soft .pimolu-tabs__trigger[data-state=active] {
|
|
5091
|
+
.pimolu-tabs--soft > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
|
|
4898
5092
|
color: var(--pimolu-primary);
|
|
4899
5093
|
background: color-mix(in srgb, var(--pimolu-primary) 12%, transparent);
|
|
4900
5094
|
}
|
|
4901
|
-
.pimolu-tabs--segmented .pimolu-tabs__list {
|
|
5095
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4902
5096
|
flex: 1 1 auto;
|
|
4903
5097
|
width: 100%;
|
|
4904
5098
|
gap: 0;
|
|
@@ -4907,7 +5101,7 @@
|
|
|
4907
5101
|
border-radius: 999px;
|
|
4908
5102
|
background: var(--pimolu-muted);
|
|
4909
5103
|
}
|
|
4910
|
-
.pimolu-tabs--segmented .pimolu-tabs__trigger {
|
|
5104
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
|
|
4911
5105
|
position: relative;
|
|
4912
5106
|
flex: 1 1 0;
|
|
4913
5107
|
min-width: max-content;
|
|
@@ -4916,25 +5110,25 @@
|
|
|
4916
5110
|
color: var(--pimolu-muted-foreground);
|
|
4917
5111
|
background: transparent;
|
|
4918
5112
|
}
|
|
4919
|
-
.pimolu-tabs--segmented .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
5113
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
|
|
4920
5114
|
color: var(--pimolu-foreground);
|
|
4921
5115
|
background: color-mix(in srgb, var(--pimolu-foreground) 6%, transparent);
|
|
4922
5116
|
}
|
|
4923
|
-
.pimolu-tabs--segmented .pimolu-tabs__trigger[data-state=active] {
|
|
5117
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
|
|
4924
5118
|
color: var(--pimolu-foreground);
|
|
4925
5119
|
background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
|
|
4926
5120
|
box-shadow: var( --pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12) );
|
|
4927
5121
|
}
|
|
4928
|
-
.pimolu-tabs--segmented.pimolu-tabs--vertical .pimolu-tabs__list {
|
|
5122
|
+
.pimolu-tabs--segmented.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4929
5123
|
width: auto;
|
|
4930
5124
|
min-width: 12rem;
|
|
4931
5125
|
border-radius: var(--pimolu-radius-lg, 12px);
|
|
4932
5126
|
}
|
|
4933
|
-
.pimolu-tabs--segmented.pimolu-tabs--vertical .pimolu-tabs__trigger {
|
|
5127
|
+
.pimolu-tabs--segmented.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
|
|
4934
5128
|
flex: 0 0 auto;
|
|
4935
5129
|
justify-content: flex-start;
|
|
4936
5130
|
}
|
|
4937
|
-
.pimolu-tabs--segmented .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
|
|
5131
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
|
|
4938
5132
|
content: "";
|
|
4939
5133
|
position: absolute;
|
|
4940
5134
|
inset-block: 25%;
|
|
@@ -4942,22 +5136,22 @@
|
|
|
4942
5136
|
width: 1px;
|
|
4943
5137
|
background: var(--pimolu-border);
|
|
4944
5138
|
}
|
|
4945
|
-
.pimolu-tabs--segmented .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active]::before,
|
|
4946
|
-
.pimolu-tabs--segmented .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active] + .pimolu-tabs__trigger::before {
|
|
5139
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active]::before,
|
|
5140
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active] + .pimolu-tabs__trigger::before {
|
|
4947
5141
|
opacity: 0;
|
|
4948
5142
|
}
|
|
4949
|
-
.pimolu-tabs--segmented.pimolu-tabs--vertical .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
|
|
5143
|
+
.pimolu-tabs--segmented.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
|
|
4950
5144
|
inset-block-start: 0;
|
|
4951
5145
|
inset-inline: 25%;
|
|
4952
5146
|
width: auto;
|
|
4953
5147
|
height: 1px;
|
|
4954
5148
|
}
|
|
4955
|
-
.pimolu-tabs--segmented .pimolu-tabs__scroll {
|
|
5149
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__scroll {
|
|
4956
5150
|
border-color: transparent;
|
|
4957
5151
|
background: var(--pimolu-muted);
|
|
4958
5152
|
color: var(--pimolu-muted-foreground);
|
|
4959
5153
|
}
|
|
4960
|
-
.pimolu-tabs--segmented .pimolu-tabs__scroll:hover {
|
|
5154
|
+
.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__scroll:hover {
|
|
4961
5155
|
background: var(--pimolu-muted);
|
|
4962
5156
|
color: var(--pimolu-foreground);
|
|
4963
5157
|
}
|
|
@@ -4980,24 +5174,24 @@
|
|
|
4980
5174
|
.pimolu-tabs--vertical {
|
|
4981
5175
|
grid-template-columns: minmax(0, 1fr);
|
|
4982
5176
|
}
|
|
4983
|
-
.pimolu-tabs--vertical .pimolu-tabs__list {
|
|
5177
|
+
.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4984
5178
|
min-width: 0;
|
|
4985
5179
|
border-inline-end: 0;
|
|
4986
5180
|
}
|
|
4987
|
-
.pimolu-tabs--vertical .pimolu-tabs__panel {
|
|
5181
|
+
.pimolu-tabs--vertical > .pimolu-tabs__panel {
|
|
4988
5182
|
grid-column: 1;
|
|
4989
5183
|
grid-row: 2;
|
|
4990
5184
|
}
|
|
4991
|
-
.pimolu-tabs--vertical.pimolu-tabs--segmented .pimolu-tabs__list {
|
|
5185
|
+
.pimolu-tabs--vertical.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4992
5186
|
width: 100%;
|
|
4993
5187
|
}
|
|
4994
|
-
.pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__list {
|
|
5188
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
|
|
4995
5189
|
border-inline-start: 1px solid var(--pimolu-border);
|
|
4996
5190
|
}
|
|
4997
|
-
.pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger {
|
|
5191
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
|
|
4998
5192
|
padding-inline: var( --pimolu-spacing-3, 12px );
|
|
4999
5193
|
}
|
|
5000
|
-
.pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger[data-state=active] {
|
|
5194
|
+
.pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
|
|
5001
5195
|
box-shadow: inset 2px 0 0 var(--pimolu-primary);
|
|
5002
5196
|
}
|
|
5003
5197
|
}
|
|
@@ -12673,6 +12867,7 @@
|
|
|
12673
12867
|
box-sizing: border-box;
|
|
12674
12868
|
min-width: 0;
|
|
12675
12869
|
max-width: 100%;
|
|
12870
|
+
--pimolu-carousel-control-reserve: 56px;
|
|
12676
12871
|
color: var(--pimolu-foreground);
|
|
12677
12872
|
font-family: var(--pimolu-font-body, inherit);
|
|
12678
12873
|
}
|
|
@@ -12705,7 +12900,7 @@
|
|
|
12705
12900
|
scroll-snap-stop: always;
|
|
12706
12901
|
}
|
|
12707
12902
|
.pimolu-carousel[data-controls=true] .pimolu-carousel__slide {
|
|
12708
|
-
padding-inline: 56px;
|
|
12903
|
+
padding-inline: var(--pimolu-carousel-control-reserve, 56px);
|
|
12709
12904
|
}
|
|
12710
12905
|
.pimolu-carousel__control {
|
|
12711
12906
|
position: absolute;
|
|
@@ -12844,6 +13039,9 @@
|
|
|
12844
13039
|
height: 0.875rem;
|
|
12845
13040
|
}
|
|
12846
13041
|
@media (max-width: 600px) {
|
|
13042
|
+
.pimolu-carousel {
|
|
13043
|
+
--pimolu-carousel-control-reserve: 44px;
|
|
13044
|
+
}
|
|
12847
13045
|
.pimolu-carousel__control {
|
|
12848
13046
|
width: 2rem;
|
|
12849
13047
|
height: 2rem;
|
|
@@ -12899,6 +13097,353 @@
|
|
|
12899
13097
|
}
|
|
12900
13098
|
}
|
|
12901
13099
|
|
|
13100
|
+
/* src/thumbnail-carousel.css */
|
|
13101
|
+
@layer pimolu {
|
|
13102
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__viewport {
|
|
13103
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13104
|
+
overflow: hidden;
|
|
13105
|
+
}
|
|
13106
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__slide img {
|
|
13107
|
+
display: block;
|
|
13108
|
+
width: 100%;
|
|
13109
|
+
height: auto;
|
|
13110
|
+
object-fit: cover;
|
|
13111
|
+
}
|
|
13112
|
+
}
|
|
13113
|
+
|
|
13114
|
+
/* src/coverflow-carousel.css */
|
|
13115
|
+
@layer pimolu {
|
|
13116
|
+
.pimolu-coverflow-carousel .pimolu-carousel__viewport {
|
|
13117
|
+
height: clamp(240px, 42vw, 380px);
|
|
13118
|
+
perspective: 1200px;
|
|
13119
|
+
transform-style: preserve-3d;
|
|
13120
|
+
}
|
|
13121
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide {
|
|
13122
|
+
position: absolute;
|
|
13123
|
+
inset-block: 0;
|
|
13124
|
+
inset-inline-start: 50%;
|
|
13125
|
+
width: min(62%, 520px);
|
|
13126
|
+
margin-inline-start: calc(min(62%, 520px) / -2);
|
|
13127
|
+
transform-origin: center center;
|
|
13128
|
+
backface-visibility: hidden;
|
|
13129
|
+
}
|
|
13130
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide[data-active=true] {
|
|
13131
|
+
z-index: 10;
|
|
13132
|
+
}
|
|
13133
|
+
}
|
|
13134
|
+
|
|
13135
|
+
/* src/peek-carousel.css */
|
|
13136
|
+
@layer pimolu {
|
|
13137
|
+
.pimolu-peek-carousel .pimolu-carousel__viewport {
|
|
13138
|
+
padding-block: 8px;
|
|
13139
|
+
}
|
|
13140
|
+
.pimolu-peek-carousel .pimolu-carousel__slide {
|
|
13141
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13142
|
+
border: 1px solid var(--pimolu-border);
|
|
13143
|
+
background: var(--pimolu-surface);
|
|
13144
|
+
overflow: hidden;
|
|
13145
|
+
opacity: 0.72;
|
|
13146
|
+
transform: scale(0.95);
|
|
13147
|
+
}
|
|
13148
|
+
.pimolu-peek-carousel .pimolu-carousel__slide[data-active=true] {
|
|
13149
|
+
border-color: var(--pimolu-primary);
|
|
13150
|
+
opacity: 1;
|
|
13151
|
+
transform: scale(1);
|
|
13152
|
+
}
|
|
13153
|
+
}
|
|
13154
|
+
|
|
13155
|
+
/* src/stack-carousel.css */
|
|
13156
|
+
@layer pimolu {
|
|
13157
|
+
.pimolu-stack-carousel .pimolu-carousel__viewport {
|
|
13158
|
+
height: clamp(260px, 44vw, 400px);
|
|
13159
|
+
}
|
|
13160
|
+
.pimolu-stack-carousel .pimolu-carousel__slide {
|
|
13161
|
+
position: absolute;
|
|
13162
|
+
inset-block-start: 0;
|
|
13163
|
+
inset-inline-start: 50%;
|
|
13164
|
+
width: min(70%, 460px);
|
|
13165
|
+
height: 100%;
|
|
13166
|
+
margin-inline-start: calc(min(70%, 460px) / -2);
|
|
13167
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 4px);
|
|
13168
|
+
border: 1px solid var(--pimolu-border);
|
|
13169
|
+
background: var(--pimolu-surface);
|
|
13170
|
+
overflow: hidden;
|
|
13171
|
+
transform-origin: center top;
|
|
13172
|
+
}
|
|
13173
|
+
}
|
|
13174
|
+
|
|
13175
|
+
/* src/arc-carousel.css */
|
|
13176
|
+
@layer pimolu {
|
|
13177
|
+
.pimolu-arc-carousel .pimolu-carousel__viewport {
|
|
13178
|
+
height: clamp(260px, 44vw, 400px);
|
|
13179
|
+
}
|
|
13180
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
13181
|
+
position: absolute;
|
|
13182
|
+
inset-block-end: 0;
|
|
13183
|
+
inset-inline-start: 50%;
|
|
13184
|
+
width: min(42%, 340px);
|
|
13185
|
+
height: 82%;
|
|
13186
|
+
margin-inline-start: calc(min(42%, 340px) / -2);
|
|
13187
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13188
|
+
border: 1px solid var(--pimolu-border);
|
|
13189
|
+
background: var(--pimolu-surface);
|
|
13190
|
+
overflow: hidden;
|
|
13191
|
+
transform-origin: center bottom;
|
|
13192
|
+
}
|
|
13193
|
+
@media (max-width: 640px) {
|
|
13194
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
13195
|
+
display: none;
|
|
13196
|
+
width: min(60%, 340px);
|
|
13197
|
+
margin-inline-start: calc(min(60%, 340px) / -2);
|
|
13198
|
+
}
|
|
13199
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-active=true],
|
|
13200
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-distance="1"] {
|
|
13201
|
+
display: block;
|
|
13202
|
+
}
|
|
13203
|
+
}
|
|
13204
|
+
}
|
|
13205
|
+
|
|
13206
|
+
/* src/carousel-base.css */
|
|
13207
|
+
@layer pimolu {
|
|
13208
|
+
.pimolu-carousel-root {
|
|
13209
|
+
position: relative;
|
|
13210
|
+
display: grid;
|
|
13211
|
+
gap: 12px;
|
|
13212
|
+
box-sizing: border-box;
|
|
13213
|
+
min-width: 0;
|
|
13214
|
+
max-width: 100%;
|
|
13215
|
+
color: var(--pimolu-foreground);
|
|
13216
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
13217
|
+
--pimolu-carousel-gap: 16px;
|
|
13218
|
+
--pimolu-carousel-per-view: 1;
|
|
13219
|
+
}
|
|
13220
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport {
|
|
13221
|
+
display: block;
|
|
13222
|
+
overflow: visible;
|
|
13223
|
+
border-radius: 0;
|
|
13224
|
+
scroll-snap-type: none;
|
|
13225
|
+
}
|
|
13226
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport[data-scroll=false] {
|
|
13227
|
+
overflow: hidden;
|
|
13228
|
+
}
|
|
13229
|
+
.pimolu-carousel__viewport {
|
|
13230
|
+
position: relative;
|
|
13231
|
+
box-sizing: border-box;
|
|
13232
|
+
min-width: 0;
|
|
13233
|
+
outline: none;
|
|
13234
|
+
}
|
|
13235
|
+
.pimolu-carousel__viewport:focus-visible {
|
|
13236
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13237
|
+
outline-offset: 3px;
|
|
13238
|
+
}
|
|
13239
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
13240
|
+
display: flex;
|
|
13241
|
+
gap: var(--pimolu-carousel-gap, 16px);
|
|
13242
|
+
overflow-x: auto;
|
|
13243
|
+
overflow-y: hidden;
|
|
13244
|
+
overscroll-behavior-x: contain;
|
|
13245
|
+
scroll-behavior: smooth;
|
|
13246
|
+
scroll-snap-type: x mandatory;
|
|
13247
|
+
scrollbar-width: none;
|
|
13248
|
+
}
|
|
13249
|
+
.pimolu-carousel__viewport[data-scroll=true]::-webkit-scrollbar {
|
|
13250
|
+
display: none;
|
|
13251
|
+
}
|
|
13252
|
+
.pimolu-carousel__slide {
|
|
13253
|
+
box-sizing: border-box;
|
|
13254
|
+
min-width: 0;
|
|
13255
|
+
transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
|
|
13256
|
+
}
|
|
13257
|
+
.pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
|
|
13258
|
+
flex: 1 0 calc((100% - (var(--pimolu-carousel-per-view, 1) - 1) * var(--pimolu-carousel-gap, 16px)) / var(--pimolu-carousel-per-view, 1));
|
|
13259
|
+
scroll-snap-align: start;
|
|
13260
|
+
}
|
|
13261
|
+
.pimolu-carousel__viewport[data-effect=peek] .pimolu-carousel__slide {
|
|
13262
|
+
flex: 0 0 min(440px, 68vw);
|
|
13263
|
+
scroll-snap-align: center;
|
|
13264
|
+
}
|
|
13265
|
+
.pimolu-carousel__control {
|
|
13266
|
+
position: absolute;
|
|
13267
|
+
top: 50%;
|
|
13268
|
+
z-index: 20;
|
|
13269
|
+
display: inline-flex;
|
|
13270
|
+
align-items: center;
|
|
13271
|
+
justify-content: center;
|
|
13272
|
+
box-sizing: border-box;
|
|
13273
|
+
width: 2.5rem;
|
|
13274
|
+
height: 2.5rem;
|
|
13275
|
+
padding: 0;
|
|
13276
|
+
border: 1px solid var(--pimolu-border, currentColor);
|
|
13277
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13278
|
+
background: var(--pimolu-background, Canvas);
|
|
13279
|
+
color: var(--pimolu-foreground);
|
|
13280
|
+
box-shadow: var(--pimolu-shadow-raised, 0 2px 8px rgb(0 0 0 / 18%));
|
|
13281
|
+
cursor: pointer;
|
|
13282
|
+
transform: translateY(-50%);
|
|
13283
|
+
transition: background-color 150ms, opacity 150ms;
|
|
13284
|
+
}
|
|
13285
|
+
.pimolu-carousel__control--previous {
|
|
13286
|
+
inset-inline-start: var(--pimolu-spacing-2, 8px);
|
|
13287
|
+
}
|
|
13288
|
+
.pimolu-carousel__control--next {
|
|
13289
|
+
inset-inline-end: var(--pimolu-spacing-2, 8px);
|
|
13290
|
+
}
|
|
13291
|
+
.pimolu-carousel__control:hover:not(:disabled) {
|
|
13292
|
+
background: var(--pimolu-muted, var(--pimolu-background, Canvas));
|
|
13293
|
+
}
|
|
13294
|
+
.pimolu-carousel__control:disabled {
|
|
13295
|
+
opacity: 0.35;
|
|
13296
|
+
cursor: default;
|
|
13297
|
+
}
|
|
13298
|
+
.pimolu-carousel__control:focus-visible {
|
|
13299
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13300
|
+
outline-offset: 2px;
|
|
13301
|
+
}
|
|
13302
|
+
.pimolu-carousel__control svg {
|
|
13303
|
+
display: block;
|
|
13304
|
+
width: 1.25rem;
|
|
13305
|
+
height: 1.25rem;
|
|
13306
|
+
}
|
|
13307
|
+
.pimolu-carousel__dots {
|
|
13308
|
+
display: flex;
|
|
13309
|
+
flex-wrap: wrap;
|
|
13310
|
+
align-items: center;
|
|
13311
|
+
justify-content: center;
|
|
13312
|
+
gap: 2px;
|
|
13313
|
+
min-width: 0;
|
|
13314
|
+
}
|
|
13315
|
+
.pimolu-carousel__dot {
|
|
13316
|
+
display: inline-grid;
|
|
13317
|
+
place-items: center;
|
|
13318
|
+
box-sizing: border-box;
|
|
13319
|
+
width: 1.5rem;
|
|
13320
|
+
height: 1.5rem;
|
|
13321
|
+
padding: 0;
|
|
13322
|
+
border: 0;
|
|
13323
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13324
|
+
background: transparent;
|
|
13325
|
+
cursor: pointer;
|
|
13326
|
+
}
|
|
13327
|
+
.pimolu-carousel__dot::before {
|
|
13328
|
+
content: "";
|
|
13329
|
+
display: block;
|
|
13330
|
+
width: 0.5rem;
|
|
13331
|
+
height: 0.5rem;
|
|
13332
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
13333
|
+
background: color-mix(in srgb, var(--pimolu-foreground, currentColor) 28%, transparent);
|
|
13334
|
+
transition: width 150ms, background-color 150ms;
|
|
13335
|
+
}
|
|
13336
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
13337
|
+
width: 1.25rem;
|
|
13338
|
+
background: var(--pimolu-primary, var(--pimolu-foreground, currentColor));
|
|
13339
|
+
}
|
|
13340
|
+
.pimolu-carousel__dot:focus-visible {
|
|
13341
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13342
|
+
outline-offset: 2px;
|
|
13343
|
+
}
|
|
13344
|
+
.pimolu-carousel__thumbnails {
|
|
13345
|
+
display: flex;
|
|
13346
|
+
gap: 8px;
|
|
13347
|
+
min-width: 0;
|
|
13348
|
+
overflow-x: auto;
|
|
13349
|
+
scrollbar-width: none;
|
|
13350
|
+
}
|
|
13351
|
+
.pimolu-carousel__thumbnails::-webkit-scrollbar {
|
|
13352
|
+
display: none;
|
|
13353
|
+
}
|
|
13354
|
+
.pimolu-carousel__thumbnail {
|
|
13355
|
+
flex: 0 0 auto;
|
|
13356
|
+
box-sizing: border-box;
|
|
13357
|
+
width: 72px;
|
|
13358
|
+
padding: 2px;
|
|
13359
|
+
border: 2px solid transparent;
|
|
13360
|
+
border-radius: calc(var(--pimolu-radius-sm, 6px) + 4px);
|
|
13361
|
+
background: transparent;
|
|
13362
|
+
cursor: pointer;
|
|
13363
|
+
opacity: 0.6;
|
|
13364
|
+
transition: opacity 150ms, border-color 150ms;
|
|
13365
|
+
}
|
|
13366
|
+
.pimolu-carousel__thumbnail img {
|
|
13367
|
+
display: block;
|
|
13368
|
+
width: 100%;
|
|
13369
|
+
height: auto;
|
|
13370
|
+
border-radius: var(--pimolu-radius-sm, 6px);
|
|
13371
|
+
object-fit: cover;
|
|
13372
|
+
}
|
|
13373
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
13374
|
+
border-color: var(--pimolu-primary);
|
|
13375
|
+
opacity: 1;
|
|
13376
|
+
}
|
|
13377
|
+
.pimolu-carousel__thumbnail:hover {
|
|
13378
|
+
opacity: 1;
|
|
13379
|
+
}
|
|
13380
|
+
.pimolu-carousel__thumbnail:focus-visible {
|
|
13381
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
13382
|
+
outline-offset: 2px;
|
|
13383
|
+
}
|
|
13384
|
+
.pimolu-carousel__live {
|
|
13385
|
+
position: absolute;
|
|
13386
|
+
width: 1px;
|
|
13387
|
+
height: 1px;
|
|
13388
|
+
margin: -1px;
|
|
13389
|
+
padding: 0;
|
|
13390
|
+
overflow: hidden;
|
|
13391
|
+
clip: rect(0 0 0 0);
|
|
13392
|
+
white-space: nowrap;
|
|
13393
|
+
border: 0;
|
|
13394
|
+
}
|
|
13395
|
+
@media (prefers-reduced-motion: reduce) {
|
|
13396
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
13397
|
+
scroll-behavior: auto;
|
|
13398
|
+
}
|
|
13399
|
+
.pimolu-carousel__slide,
|
|
13400
|
+
.pimolu-carousel__control,
|
|
13401
|
+
.pimolu-carousel__dot::before,
|
|
13402
|
+
.pimolu-carousel__thumbnail {
|
|
13403
|
+
transition: none;
|
|
13404
|
+
}
|
|
13405
|
+
}
|
|
13406
|
+
@media (forced-colors: active) {
|
|
13407
|
+
.pimolu-carousel__control {
|
|
13408
|
+
border-color: CanvasText;
|
|
13409
|
+
background: Canvas;
|
|
13410
|
+
color: CanvasText;
|
|
13411
|
+
box-shadow: none;
|
|
13412
|
+
}
|
|
13413
|
+
.pimolu-carousel__dot::before {
|
|
13414
|
+
background: CanvasText;
|
|
13415
|
+
}
|
|
13416
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
13417
|
+
background: Highlight;
|
|
13418
|
+
}
|
|
13419
|
+
.pimolu-carousel__thumbnail {
|
|
13420
|
+
border-color: CanvasText;
|
|
13421
|
+
}
|
|
13422
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
13423
|
+
border-color: Highlight;
|
|
13424
|
+
}
|
|
13425
|
+
}
|
|
13426
|
+
}
|
|
13427
|
+
|
|
13428
|
+
/* src/multi-carousel.css */
|
|
13429
|
+
@layer pimolu {
|
|
13430
|
+
.pimolu-multi-carousel .pimolu-carousel__viewport {
|
|
13431
|
+
scroll-snap-type: x mandatory;
|
|
13432
|
+
}
|
|
13433
|
+
.pimolu-multi-carousel .pimolu-carousel__slide {
|
|
13434
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
13435
|
+
border: 1px solid var(--pimolu-border);
|
|
13436
|
+
background: var(--pimolu-surface);
|
|
13437
|
+
overflow: hidden;
|
|
13438
|
+
}
|
|
13439
|
+
@media (max-width: 640px) {
|
|
13440
|
+
.pimolu-multi-carousel .pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
|
|
13441
|
+
flex-basis: min(280px, 78vw);
|
|
13442
|
+
min-width: min(280px, 78vw);
|
|
13443
|
+
}
|
|
13444
|
+
}
|
|
13445
|
+
}
|
|
13446
|
+
|
|
12902
13447
|
/* src/resizable.css */
|
|
12903
13448
|
@layer pimolu {
|
|
12904
13449
|
.pimolu-resizable {
|
|
@@ -21232,19 +21777,20 @@
|
|
|
21232
21777
|
border-radius: var(--pimolu-radius-sm, 6px);
|
|
21233
21778
|
}
|
|
21234
21779
|
.pimolu-api-table__table.pimolu-table {
|
|
21235
|
-
min-width:
|
|
21780
|
+
min-width: 0;
|
|
21781
|
+
table-layout: fixed;
|
|
21236
21782
|
}
|
|
21237
21783
|
.pimolu-api-table__table :where(th, td):nth-child(1) {
|
|
21238
|
-
width:
|
|
21784
|
+
width: 20%;
|
|
21239
21785
|
}
|
|
21240
21786
|
.pimolu-api-table__table :where(th, td):nth-child(2) {
|
|
21241
|
-
width:
|
|
21787
|
+
width: 36%;
|
|
21242
21788
|
}
|
|
21243
21789
|
.pimolu-api-table__table :where(th, td):nth-child(3) {
|
|
21244
|
-
width:
|
|
21790
|
+
width: 10%;
|
|
21245
21791
|
}
|
|
21246
21792
|
.pimolu-api-table__table :where(th, td):nth-child(4) {
|
|
21247
|
-
width:
|
|
21793
|
+
width: 34%;
|
|
21248
21794
|
}
|
|
21249
21795
|
.pimolu-api-table__name {
|
|
21250
21796
|
display: flex;
|