@uploadcare/file-uploader 1.24.4 → 1.24.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2713 @@
1
+ /**
2
+ * @license
3
+ * MIT License
4
+ *
5
+ * Copyright (c) 2025 Uploadcare (hello@uploadcare.com). All rights reserved.
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ *
25
+ */
26
+ @layer uc, uc.base, uc.components, uc.rules, uc.solutions, uc.post-reset, uc.base, uc.rules, uc.post-reset;
27
+
28
+ /* src/blocks/ActivityHeader/activity-header.css */
29
+ @layer uc.components {
30
+ uc-activity-header {
31
+ display: flex;
32
+ justify-content: space-between;
33
+ gap: var(--uc-padding);
34
+ padding: var(--uc-padding);
35
+ color: var(--uc-foreground);
36
+ font-weight: 500;
37
+ font-size: 1em;
38
+ }
39
+ uc-activity-header > * {
40
+ display: flex;
41
+ align-items: center;
42
+ }
43
+ }
44
+
45
+ /* src/blocks/CameraSource/camera-source.css */
46
+ @layer uc.components {
47
+ uc-camera-source {
48
+ position: relative;
49
+ display: flex;
50
+ flex-direction: column;
51
+ width: 100%;
52
+ height: 100%;
53
+ max-height: 100%;
54
+ overflow: hidden;
55
+ background-color: var(--uc-background);
56
+ border-radius: var(--uc-radius);
57
+ }
58
+ [uc-modal] > dialog:has(uc-camera-source[active]) {
59
+ width: 100%;
60
+ height: 100%;
61
+ }
62
+ uc-camera-source:not(.uc-initialized) .uc-controls {
63
+ display: none;
64
+ }
65
+ uc-camera-source video {
66
+ display: block;
67
+ width: 100%;
68
+ max-height: 100%;
69
+ object-fit: contain;
70
+ object-position: center center;
71
+ background-color: var(--uc-muted);
72
+ border-radius: var(--uc-radius);
73
+ }
74
+ uc-camera-source .uc-toolbar {
75
+ position: absolute;
76
+ bottom: 0;
77
+ display: flex;
78
+ justify-content: space-between;
79
+ width: 100%;
80
+ padding: var(--uc-padding);
81
+ background-color: var(--uc-background);
82
+ }
83
+ uc-camera-source .uc-content {
84
+ display: flex;
85
+ flex: 1;
86
+ justify-content: center;
87
+ width: 100%;
88
+ height: 100%;
89
+ padding: var(--uc-padding);
90
+ padding-top: 0;
91
+ overflow: hidden;
92
+ }
93
+ uc-camera-source .uc-message-box {
94
+ display: flex;
95
+ flex-direction: column;
96
+ grid-gap: 40px;
97
+ align-items: center;
98
+ justify-content: center;
99
+ padding: 40px 40px 0;
100
+ color: var(--uc-foreground);
101
+ }
102
+ uc-camera-source .uc-message-box button {
103
+ color: var(--uc-primary-foreground);
104
+ background-color: var(--uc-primary);
105
+ }
106
+ uc-camera-source .uc-shot-btn {
107
+ width: 58px;
108
+ height: 58px;
109
+ color: var(--uc-background);
110
+ background-color: var(--uc-primary-light);
111
+ border-radius: 50%;
112
+ opacity: 0.85;
113
+ transition:
114
+ bottom var(--uc-transition),
115
+ opacity var(--uc-transition),
116
+ transform var(--uc-transition);
117
+ }
118
+ uc-camera-source .uc-shot-btn:hover {
119
+ transform: scale(1.05);
120
+ opacity: 1;
121
+ }
122
+ uc-camera-source .uc-shot-btn:active {
123
+ transform: scale(1);
124
+ opacity: 1;
125
+ }
126
+ uc-camera-source .uc-shot-btn[disabled] {
127
+ bottom: -80px;
128
+ }
129
+ uc-camera-source .uc-shot-btn uc-icon svg {
130
+ width: 20px;
131
+ height: 20px;
132
+ }
133
+ uc-camera-source .uc-controls {
134
+ position: relative;
135
+ display: flex;
136
+ align-items: center;
137
+ flex-wrap: wrap;
138
+ justify-content: space-between;
139
+ padding: 0 var(--uc-padding) var(--uc-padding);
140
+ min-height: 74px;
141
+ }
142
+ uc-camera-source .uc-switcher {
143
+ display: flex;
144
+ gap: calc(var(--uc-padding) / 2);
145
+ }
146
+ uc-camera-source .uc-switch.uc-active {
147
+ background-color: var(--uc-secondary);
148
+ }
149
+ uc-camera-source .uc-camera-actions {
150
+ display: flex;
151
+ justify-content: center;
152
+ align-items: center;
153
+ gap: 5px;
154
+ }
155
+ uc-camera-source .uc-stop-record {
156
+ background-color: var(--uc-destructive-foreground-light);
157
+ opacity: 1;
158
+ }
159
+ :where(uc-camera-source:is(.uc-recording)) .uc-recording-timer uc-icon {
160
+ display: none;
161
+ }
162
+ :where(uc-camera-source:is(.uc-recording)) .uc-recording-timer {
163
+ pointer-events: none;
164
+ }
165
+ uc-camera-source .uc-recording-timer {
166
+ z-index: 1;
167
+ position: relative;
168
+ overflow: hidden;
169
+ }
170
+ :where(uc-camera-source) .uc-recording-timer uc-icon {
171
+ width: 10px;
172
+ height: 10px;
173
+ margin-right: 10px;
174
+ }
175
+ uc-camera-source .uc-recording-timer .uc-line {
176
+ position: absolute;
177
+ content: "";
178
+ bottom: 0;
179
+ left: 0;
180
+ right: 0;
181
+ height: 2px;
182
+ background-color: var(--uc-foreground-light);
183
+ transform: scaleX(0);
184
+ transform-origin: left;
185
+ transition: transform var(--uc-transition);
186
+ }
187
+ uc-camera-source .uc-btn-microphone {
188
+ z-index: 1;
189
+ }
190
+ uc-camera-source .uc-select {
191
+ display: flex;
192
+ }
193
+ uc-camera-source .uc-audio-select {
194
+ width: 98px;
195
+ }
196
+ uc-camera-source .uc-audio-select select {
197
+ width: 100%;
198
+ }
199
+ uc-camera-source .uc-camera-action {
200
+ position: absolute;
201
+ inset: 0 var(--uc-padding) var(--uc-padding);
202
+ margin: 0 auto;
203
+ }
204
+ }
205
+
206
+ /* src/blocks/CloudImageEditor/src/css/common.css */
207
+ @layer uc.solutions {
208
+ [uc-cloud-image-editor] {
209
+ --color-primary-accent: var(--uc-primary);
210
+ --color-text-base: var(--uc-foreground);
211
+ --color-text-accent-contrast: var(--uc-background);
212
+ --color-fill-contrast: var(--uc-background);
213
+ --color-modal-backdrop: oklch(0 0 0 / 0.1);
214
+ --color-image-background: var(--uc-muted);
215
+ --color-focus-ring: var(--color-primary-accent);
216
+ --color-crop-guides: var(--uc-foreground);
217
+ --font-size-ui: var(--uc-font-size);
218
+ --size-touch-area: var(--uc-button-size);
219
+ --size-panel-heading: calc(var(--uc-button-size) + var(--uc-padding) * 2);
220
+ --size-ui-min-width: 130px;
221
+ --size-line-width: 1px;
222
+ --size-modal-width: 650px;
223
+ --size-icon: calc(var(--uc-button-size) / 2);
224
+ --border-radius-editor: var(--uc-radius);
225
+ --border-radius-thumb: var(--uc-radius);
226
+ --border-radius-ui: var(--uc-radius);
227
+ --border-radius-base: var(--uc-radius);
228
+ --cldtr-gap-min: 5px;
229
+ --cldtr-gap-mid-1: 10px;
230
+ --cldtr-gap-mid-2: 15px;
231
+ --cldtr-gap-max: 20px;
232
+ --transition-duration-2: var(--transition-duration-all, 0.2s);
233
+ --transition-duration-3: var(--transition-duration-all, 0.3s);
234
+ --transition-duration-4: var(--transition-duration-all, 0.4s);
235
+ --transition-duration-5: var(--transition-duration-all, 0.5s);
236
+ --modal-header-opacity: 1;
237
+ --modal-header-height: var(--size-panel-heading);
238
+ --modal-toolbar-height: var(--size-panel-heading);
239
+ --transparent-pixel: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=);
240
+ display: block;
241
+ width: 100%;
242
+ height: 100%;
243
+ max-height: 100%;
244
+ }
245
+ [uc-cloud-image-editor] :is([can-handle-paste]:hover, [can-handle-paste]:focus) {
246
+ --can-handle-paste: "true";
247
+ }
248
+ [uc-cloud-image-editor] :is([tabindex][focus-visible], [tabindex]:hover, [with-effects][focus-visible], [with-effects]:hover) {
249
+ --filter-effect: var(--hover-filter) !important;
250
+ --opacity-effect: var(--hover-opacity) !important;
251
+ --color-effect: var(--hover-color-rgb) !important;
252
+ --background-effect: var(--hover-background) !important;
253
+ }
254
+ [uc-cloud-image-editor] :is([tabindex]:active, [with-effects]:active) {
255
+ --filter-effect: var(--down-filter) !important;
256
+ --opacity-effect: var(--down-opacity) !important;
257
+ --color-effect: var(--down-color-rgb) !important;
258
+ --background-effect: var(--down-background) !important;
259
+ }
260
+ [uc-cloud-image-editor] :is([tabindex][active], [with-effects][active]) {
261
+ --filter-effect: var(--active-filter) !important;
262
+ --opacity-effect: var(--active-opacity) !important;
263
+ --color-effect: var(--active-color-rgb) !important;
264
+ --background-effect: var(--active-background) !important;
265
+ }
266
+ [uc-cloud-image-editor] [hidden-scrollbar]::-webkit-scrollbar {
267
+ display: none;
268
+ }
269
+ [uc-cloud-image-editor] [hidden-scrollbar] {
270
+ -ms-overflow-style: none;
271
+ scrollbar-width: none;
272
+ }
273
+ [uc-cloud-image-editor].uc-editor_ON {
274
+ --modal-header-opacity: 0;
275
+ --modal-header-height: 0px;
276
+ --modal-toolbar-height: calc(var(--size-panel-heading) * 2);
277
+ }
278
+ [uc-cloud-image-editor].uc-editor_OFF {
279
+ --modal-header-opacity: 1;
280
+ --modal-header-height: var(--size-panel-heading);
281
+ --modal-toolbar-height: var(--size-panel-heading);
282
+ }
283
+ [uc-cloud-image-editor] > .uc-wrapper {
284
+ --l-min-img-height: var(--modal-toolbar-height);
285
+ --l-max-img-height: 100%;
286
+ --l-edit-button-width: 120px;
287
+ --l-toolbar-horizontal-padding: var(--cldtr-gap-mid-1);
288
+ position: relative;
289
+ display: grid;
290
+ grid-template-rows: minmax(var(--l-min-img-height), var(--l-max-img-height)) minmax(var(--modal-toolbar-height), auto);
291
+ height: 100%;
292
+ overflow: hidden;
293
+ overflow-y: auto;
294
+ }
295
+ @media only screen and (max-width: 800px) {
296
+ [uc-cloud-image-editor] > .uc-wrapper {
297
+ --l-edit-button-width: 70px;
298
+ --l-toolbar-horizontal-padding: var(--cldtr-gap-min);
299
+ }
300
+ }
301
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport {
302
+ display: flex;
303
+ align-items: center;
304
+ justify-content: center;
305
+ overflow: hidden;
306
+ }
307
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-image_container > .uc-image {
308
+ --viewer-image-opacity: 1;
309
+ position: absolute;
310
+ top: 0px;
311
+ left: 0px;
312
+ z-index: 10;
313
+ display: block;
314
+ box-sizing: border-box;
315
+ width: 100%;
316
+ height: 100%;
317
+ object-fit: scale-down;
318
+ background-color: var(--color-image-background);
319
+ transform: scale(1);
320
+ opacity: var(--viewer-image-opacity);
321
+ user-select: none;
322
+ pointer-events: auto;
323
+ }
324
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-image_container > .uc-image.uc-image_visible_viewer {
325
+ transition: opacity var(--transition-duration-3) ease-in-out, transform var(--transition-duration-4);
326
+ }
327
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-image_container > .uc-image.uc-image_hidden_to_cropper {
328
+ --viewer-image-opacity: 0;
329
+ background-image: var(--transparent-pixel);
330
+ transform: scale(1);
331
+ transition: transform var(--transition-duration-4), opacity var(--transition-duration-3) steps(1, jump-end);
332
+ pointer-events: none;
333
+ }
334
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-image_container > .uc-image.uc-image_hidden_effects {
335
+ --viewer-image-opacity: 0;
336
+ transform: scale(1);
337
+ transition: opacity var(--transition-duration-3) cubic-bezier(0.5, 0, 1, 1), transform var(--transition-duration-4);
338
+ pointer-events: none;
339
+ }
340
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-image_container {
341
+ position: relative;
342
+ display: block;
343
+ width: 100%;
344
+ height: 100%;
345
+ background-color: var(--color-image-background);
346
+ transition: var(--transition-duration-3);
347
+ }
348
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-toolbar {
349
+ position: relative;
350
+ transition: 0.3s;
351
+ }
352
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-toolbar > .uc-toolbar_content {
353
+ position: absolute;
354
+ bottom: 0px;
355
+ left: 0px;
356
+ box-sizing: border-box;
357
+ width: 100%;
358
+ height: var(--modal-toolbar-height);
359
+ min-height: var(--size-panel-heading);
360
+ background-color: var(--color-fill-contrast);
361
+ }
362
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-toolbar > .uc-toolbar_content.uc-toolbar_content__viewer {
363
+ display: flex;
364
+ align-items: center;
365
+ justify-content: space-between;
366
+ height: var(--size-panel-heading);
367
+ padding-right: var(--l-toolbar-horizontal-padding);
368
+ padding-left: var(--l-toolbar-horizontal-padding);
369
+ }
370
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-toolbar > .uc-toolbar_content.uc-toolbar_content__editor {
371
+ display: flex;
372
+ }
373
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-info_pan {
374
+ position: absolute;
375
+ user-select: none;
376
+ }
377
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-file_type_outer {
378
+ position: absolute;
379
+ z-index: 2;
380
+ display: flex;
381
+ max-width: 120px;
382
+ transform: translateX(-40px);
383
+ user-select: none;
384
+ }
385
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-viewport > .uc-file_type_outer > .uc-file_type {
386
+ padding: 4px 0.8em;
387
+ }
388
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-network_problems_splash {
389
+ position: absolute;
390
+ z-index: 4;
391
+ display: flex;
392
+ flex-direction: column;
393
+ width: 100%;
394
+ height: 100%;
395
+ background-color: var(--color-fill-contrast);
396
+ }
397
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-network_problems_splash > .uc-network_problems_content {
398
+ display: flex;
399
+ flex: 1;
400
+ flex-direction: column;
401
+ align-items: center;
402
+ justify-content: center;
403
+ }
404
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-network_problems_splash > .uc-network_problems_content > .uc-network_problems_icon {
405
+ display: flex;
406
+ align-items: center;
407
+ justify-content: center;
408
+ width: 40px;
409
+ height: 40px;
410
+ color: var(--uc-foreground);
411
+ background-color: var(--uc-muted);
412
+ border-radius: 50%;
413
+ }
414
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-network_problems_splash > .uc-network_problems_content > .uc-network_problems_text {
415
+ margin-top: var(--cldtr-gap-max);
416
+ font-size: var(--font-size-ui);
417
+ color: var(--uc-foreground);
418
+ }
419
+ [uc-cloud-image-editor] > .uc-wrapper > .uc-network_problems_splash > .uc-network_problems_footer {
420
+ display: flex;
421
+ align-items: center;
422
+ justify-content: center;
423
+ height: var(--size-panel-heading);
424
+ }
425
+ uc-crop-frame > .uc-svg {
426
+ position: absolute;
427
+ top: 0px;
428
+ left: 0px;
429
+ z-index: 2;
430
+ width: 100%;
431
+ height: 100%;
432
+ border-top-left-radius: var(--border-radius-base);
433
+ border-top-right-radius: var(--border-radius-base);
434
+ opacity: inherit;
435
+ transition: var(--transition-duration-3);
436
+ }
437
+ uc-crop-frame > .uc-thumb {
438
+ --idle-color-rgb: var(--color-text-base);
439
+ --hover-color-rgb: var(--color-primary-accent);
440
+ --focus-color-rgb: var(--color-primary-accent);
441
+ --down-color-rgb: var(--color-primary-accent);
442
+ --color-effect: var(--idle-color-rgb);
443
+ color: var(--color-effect);
444
+ transition: color var(--transition-duration-3), opacity var(--transition-duration-3);
445
+ }
446
+ uc-crop-frame .uc-thumb--visible {
447
+ opacity: 1;
448
+ pointer-events: auto;
449
+ }
450
+ uc-crop-frame .uc-thumb--hidden {
451
+ opacity: 0;
452
+ pointer-events: none;
453
+ }
454
+ uc-crop-frame .uc-guides {
455
+ transition: var(--transition-duration-3);
456
+ }
457
+ uc-crop-frame .uc-guides--hidden {
458
+ opacity: 0;
459
+ }
460
+ uc-crop-frame .uc-guides--semi-hidden {
461
+ opacity: 0.2;
462
+ }
463
+ uc-crop-frame .uc-guides--visible {
464
+ opacity: 1;
465
+ }
466
+ uc-editor-button-control,
467
+ uc-editor-crop-button-control,
468
+ uc-editor-aspect-ratio-button-control,
469
+ uc-editor-freeform-button-control,
470
+ uc-editor-filter-control,
471
+ uc-editor-operation-control {
472
+ --l-base-min-width: var(--uc-button-size);
473
+ --l-base-height: var(--uc-button-size);
474
+ --opacity-effect: var(--idle-opacity);
475
+ --color-effect: var(--idle-color-rgb);
476
+ --background-effect: var(--idle-background);
477
+ --filter-effect: var(--idle-filter);
478
+ --idle-color-rgb: var(--uc-secondary-foreground);
479
+ --idle-opacity: 1;
480
+ --idle-filter: 1;
481
+ --idle-background: var(--uc-secondary);
482
+ --hover-color-rgb: var(--uc-secondary-foreground);
483
+ --hover-opacity: 1;
484
+ --hover-filter: 0.8;
485
+ --hover-background: var(--uc-secondary-hover);
486
+ --down-color-rgb: var(--hover-color-rgb);
487
+ --down-opacity: 1;
488
+ --down-filter: 0.6;
489
+ --down-background: var(--uc-secondary);
490
+ border-radius: var(--uc-radius);
491
+ }
492
+ uc-editor-button-control > button,
493
+ uc-editor-crop-button-control > button,
494
+ uc-editor-aspect-ratio-button-control > button,
495
+ uc-editor-freeform-button-control > button,
496
+ uc-editor-filter-control > button,
497
+ uc-editor-operation-control > button {
498
+ all: unset;
499
+ position: relative;
500
+ display: grid;
501
+ grid-template-columns: var(--l-base-min-width) auto;
502
+ grid-template-rows: 100%;
503
+ align-items: center;
504
+ height: var(--l-base-height);
505
+ color: var(--color-effect);
506
+ opacity: var(--opacity-effect);
507
+ cursor: pointer;
508
+ transition: var(--l-width-transition);
509
+ }
510
+ uc-editor-freeform-button-control > button {
511
+ grid-template-columns: auto var(--l-base-min-width);
512
+ }
513
+ uc-editor-freeform-button-control > button > uc-icon {
514
+ margin-left: var(--cldtr-gap-mid-1);
515
+ width: 10px;
516
+ }
517
+ :where(uc-editor-button-control, uc-editor-crop-button-control, uc-editor-aspect-ratio-button-control, uc-editor-freeform-button-control, uc-editor-filter-control, uc-editor-operation-control) > uc-icon > svg {
518
+ width: var(--size-icon);
519
+ height: var(--size-icon);
520
+ }
521
+ uc-editor-filter-control > uc-icon.uc-original-icon > svg {
522
+ width: 100%;
523
+ height: 100%;
524
+ }
525
+ uc-editor-button-control.uc-active,
526
+ uc-editor-operation-control.uc-active,
527
+ uc-editor-crop-button-control.uc-active,
528
+ uc-editor-aspect-ratio-button-control.uc-active,
529
+ uc-editor-freeform-button-control.uc-active,
530
+ uc-editor-filter-control.uc-active {
531
+ --idle-color-rgb: var(--uc-primary-foreground);
532
+ --idle-background: var(--uc-primary);
533
+ --idle-opacity: 1;
534
+ --hover-color-rgb: var(--uc-primary-foreground);
535
+ --hover-background: var(--uc-primary);
536
+ --hover-opacity: 1;
537
+ }
538
+ uc-editor-filter-control.uc-not_active .uc-preview[loaded] {
539
+ opacity: 1;
540
+ }
541
+ uc-editor-filter-control.uc-active .uc-preview {
542
+ opacity: 0;
543
+ }
544
+ uc-editor-button-control.uc-not_active,
545
+ uc-editor-operation-control.uc-not_active,
546
+ uc-editor-crop-button-control.uc-not_active,
547
+ uc-editor-aspect-ratio-button-control.uc-not_active,
548
+ uc-editor-freeform-button-control.uc-not_active,
549
+ uc-editor-filter-control.uc-not_active {
550
+ --idle-color-rgb: var(--uc-secondary-foreground);
551
+ }
552
+ :where(.uc-contrast) uc-editor-button-control.uc-not_active,
553
+ :where(.uc-contrast) uc-editor-operation-control.uc-not_active,
554
+ :where(.uc-contrast) uc-editor-crop-button-control.uc-not_active,
555
+ :where(.uc-contrast) uc-editor-freeform-button-control.uc-not_active,
556
+ :where(.uc-contrast) uc-editor-aspect-ratio-button-control.uc-not_active,
557
+ :where(.uc-contrast) uc-editor-filter-control.uc-not_active {
558
+ --idle-background: transparent;
559
+ --hover-background: var(--uc-secondary);
560
+ outline: 1px solid var(--uc-border);
561
+ outline-offset: -1px;
562
+ }
563
+ uc-editor-button-control > button::before,
564
+ uc-editor-operation-control > button::before,
565
+ uc-editor-crop-button-control > button::before,
566
+ uc-editor-freeform-button-control > button::before,
567
+ uc-editor-aspect-ratio-button-control > button::before,
568
+ uc-editor-filter-control > button::before {
569
+ position: absolute;
570
+ content: "";
571
+ right: 0;
572
+ left: 0;
573
+ z-index: -1;
574
+ width: 100%;
575
+ height: 100%;
576
+ background-color: var(--background-effect);
577
+ border-radius: var(--border-radius-editor);
578
+ transition: var(--transition-duration-3);
579
+ }
580
+ uc-editor-button-control > button .uc-title,
581
+ uc-editor-operation-control > button .uc-title,
582
+ uc-editor-crop-button-control > button .uc-title,
583
+ uc-editor-aspect-ratio-button-control > button .uc-title,
584
+ uc-editor-freeform-button-control > button .uc-title,
585
+ uc-editor-filter-control > button .uc-title {
586
+ padding-right: var(--cldtr-gap-mid-1);
587
+ font-size: 0.7em;
588
+ letter-spacing: 1.004px;
589
+ text-transform: uppercase;
590
+ }
591
+ uc-editor-freeform-button-control > button .uc-title {
592
+ padding-left: var(--cldtr-gap-mid-1);
593
+ padding-right: 0;
594
+ }
595
+ uc-editor-button-control > button uc-icon,
596
+ uc-editor-operation-control > button uc-icon,
597
+ uc-editor-crop-button-control > button uc-icon,
598
+ uc-editor-aspect-ratio-button-control > button uc-icon,
599
+ uc-editor-freeform-button-control > button uc-icon,
600
+ uc-editor-filter-control > button uc-icon {
601
+ pointer-events: none;
602
+ }
603
+ uc-editor-filter-control > button .uc-preview {
604
+ position: absolute;
605
+ right: 0;
606
+ left: 0;
607
+ z-index: -1;
608
+ width: 100%;
609
+ height: var(--l-base-height);
610
+ background-repeat: no-repeat;
611
+ background-size: contain;
612
+ border-radius: var(--border-radius-editor);
613
+ opacity: 0;
614
+ filter: brightness(var(--filter-effect));
615
+ transition: var(--transition-duration-3);
616
+ }
617
+ uc-editor-filter-control > .uc-original-icon {
618
+ color: var(--color-effect);
619
+ opacity: 0.3;
620
+ }
621
+ uc-editor-image-cropper {
622
+ position: absolute;
623
+ top: 0px;
624
+ left: 0px;
625
+ z-index: 10;
626
+ display: block;
627
+ width: 100%;
628
+ height: 100%;
629
+ opacity: 0;
630
+ pointer-events: none;
631
+ touch-action: none;
632
+ color: var(--color-crop-guides);
633
+ }
634
+ uc-editor-image-cropper.uc-active_from_editor {
635
+ transform: scale(1) translate(0px, 0px);
636
+ opacity: 1;
637
+ transition: transform var(--transition-duration-4) cubic-bezier(0.37, 0, 0.63, 1) 0.4s, opacity var(--transition-duration-3);
638
+ pointer-events: auto;
639
+ }
640
+ uc-editor-image-cropper.uc-active_from_viewer {
641
+ transform: scale(1) translate(0px, 0px);
642
+ opacity: 1;
643
+ transition: transform var(--transition-duration-4) cubic-bezier(0.37, 0, 0.63, 1) 0.4s, opacity var(--transition-duration-3);
644
+ pointer-events: auto;
645
+ }
646
+ uc-editor-image-cropper.uc-inactive_to_editor {
647
+ opacity: 0;
648
+ transition: transform var(--transition-duration-4) cubic-bezier(0.37, 0, 0.63, 1), opacity var(--transition-duration-3) calc(var(--transition-duration-3) + 0.05s);
649
+ pointer-events: none;
650
+ }
651
+ uc-editor-image-cropper > .uc-canvas {
652
+ position: absolute;
653
+ top: 0px;
654
+ left: 0px;
655
+ z-index: 1;
656
+ display: block;
657
+ width: 100%;
658
+ height: 100%;
659
+ }
660
+ uc-editor-image-fader {
661
+ position: absolute;
662
+ top: 0px;
663
+ left: 0px;
664
+ display: block;
665
+ width: 100%;
666
+ height: 100%;
667
+ }
668
+ uc-editor-image-fader.uc-active_from_viewer {
669
+ z-index: 3;
670
+ transform: scale(1);
671
+ opacity: 1;
672
+ transition: transform var(--transition-duration-4), opacity var(--transition-duration-3) steps(1, jump-start);
673
+ pointer-events: auto;
674
+ }
675
+ uc-editor-image-fader.uc-active_from_cropper {
676
+ z-index: 3;
677
+ transform: scale(1);
678
+ opacity: 1;
679
+ transition: transform var(--transition-duration-4), opacity var(--transition-duration-3) steps(1, jump-end);
680
+ pointer-events: auto;
681
+ }
682
+ uc-editor-image-fader.uc-inactive_to_cropper {
683
+ z-index: 3;
684
+ transform: scale(1);
685
+ opacity: 0;
686
+ transition: transform var(--transition-duration-4), opacity var(--transition-duration-3) steps(1, jump-end);
687
+ pointer-events: none;
688
+ }
689
+ uc-editor-image-fader .uc-fader-image {
690
+ position: absolute;
691
+ top: 0px;
692
+ left: 0px;
693
+ display: block;
694
+ width: 100%;
695
+ height: 100%;
696
+ object-fit: scale-down;
697
+ transform: scale(1);
698
+ user-select: none;
699
+ content-visibility: auto;
700
+ }
701
+ uc-editor-image-fader .uc-fader-image--preview {
702
+ background-color: var(--color-image-background);
703
+ border-top-left-radius: var(--border-radius-base);
704
+ border-top-right-radius: var(--border-radius-base);
705
+ transform: scale(1);
706
+ opacity: 0;
707
+ transition: var(--transition-duration-3);
708
+ }
709
+ uc-editor-scroller {
710
+ display: flex;
711
+ align-items: center;
712
+ width: 100%;
713
+ height: 100%;
714
+ overflow-x: scroll;
715
+ }
716
+ uc-editor-slider {
717
+ display: flex;
718
+ align-items: center;
719
+ justify-content: center;
720
+ width: 100%;
721
+ height: var(--size-panel-heading);
722
+ }
723
+ uc-editor-toolbar {
724
+ position: relative;
725
+ width: 100%;
726
+ height: 100%;
727
+ }
728
+ @media only screen and (max-width: 600px) {
729
+ uc-editor-toolbar {
730
+ --l-tab-gap: var(--cldtr-gap-mid-1);
731
+ --l-slider-padding: var(--uc-padding);
732
+ --l-controls-padding: var(--uc-padding);
733
+ }
734
+ }
735
+ @media only screen and (min-width: 601px) {
736
+ uc-editor-toolbar {
737
+ --l-tab-gap: var(--cldtr-gap-max);
738
+ --l-slider-padding: var(--uc-padding);
739
+ --l-controls-padding: var(--uc-padding);
740
+ }
741
+ }
742
+ uc-editor-toolbar > .uc-toolbar-container {
743
+ position: relative;
744
+ width: 100%;
745
+ height: 100%;
746
+ overflow: hidden;
747
+ }
748
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar {
749
+ position: absolute;
750
+ display: grid;
751
+ grid-template-rows: 1fr 1fr;
752
+ width: 100%;
753
+ height: 100%;
754
+ background-color: var(--color-fill-contrast);
755
+ transition:
756
+ opacity var(--transition-duration-3) ease-in-out,
757
+ transform var(--transition-duration-3) ease-in-out,
758
+ visibility var(--transition-duration-3) ease-in-out;
759
+ }
760
+ .uc-sub-toolbar > .uc-list-aspect-ratio-container > .uc-list-aspect-ratio {
761
+ display: grid;
762
+ grid-auto-flow: column;
763
+ justify-content: center;
764
+ align-items: center;
765
+ gap: 6px;
766
+ height: var(--size-panel-heading);
767
+ }
768
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar.uc-sub-toolbar--visible {
769
+ transform: translateY(0px);
770
+ opacity: 1;
771
+ pointer-events: auto;
772
+ }
773
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar.uc-sub-toolbar--top-hidden {
774
+ transform: translateY(100%);
775
+ opacity: 0;
776
+ pointer-events: none;
777
+ }
778
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar.uc-sub-toolbar--bottom-hidden {
779
+ transform: translateY(-100%);
780
+ opacity: 0;
781
+ pointer-events: none;
782
+ }
783
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row {
784
+ display: flex;
785
+ align-items: center;
786
+ justify-content: space-between;
787
+ padding-right: var(--l-controls-padding);
788
+ padding-left: var(--l-controls-padding);
789
+ }
790
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row > .uc-tab-toggles {
791
+ position: relative;
792
+ display: grid;
793
+ grid-auto-flow: column;
794
+ grid-gap: 0px var(--l-tab-gap);
795
+ align-items: center;
796
+ height: 100%;
797
+ }
798
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row > .uc-tab-toggles > .uc-tab-toggles_indicator {
799
+ position: absolute;
800
+ bottom: 0px;
801
+ left: 0px;
802
+ width: var(--size-touch-area);
803
+ height: 2px;
804
+ background-color: var(--uc-secondary-foreground);
805
+ transform: translateX(0px);
806
+ transition: transform var(--transition-duration-3);
807
+ }
808
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-tab-content-row {
809
+ position: relative;
810
+ }
811
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-tab-content-row > .uc-tab-content {
812
+ position: absolute;
813
+ top: 0px;
814
+ left: 0px;
815
+ display: flex;
816
+ width: 100%;
817
+ height: 100%;
818
+ overflow: hidden;
819
+ opacity: 0;
820
+ content-visibility: auto;
821
+ }
822
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-tab-content-row > .uc-tab-content.uc-tab-content--visible {
823
+ opacity: 1;
824
+ pointer-events: auto;
825
+ }
826
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-tab-content-row > .uc-tab-content.uc-tab-content--hidden {
827
+ opacity: 0;
828
+ pointer-events: none;
829
+ }
830
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row > .uc-tab-toggles > .uc-tab-toggle.uc-tab-toggle--visible {
831
+ display: contents;
832
+ }
833
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row > .uc-tab-toggles > .uc-tab-toggle.uc-tab-toggle--hidden {
834
+ display: none;
835
+ }
836
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row > .uc-tab-toggles.uc-tab-toggles--hidden {
837
+ display: none;
838
+ }
839
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row > .uc-tab-toggles > .uc-tab-toggle > uc-btn-ui {
840
+ width: var(--uc-button-size);
841
+ }
842
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-controls-row > .uc-tab-toggles > .uc-tab-toggle > uc-btn-ui > uc-icon > svg {
843
+ width: var(--size-icon);
844
+ height: var(--size-icon);
845
+ }
846
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-tab-content-row > .uc-tab-content .uc-controls-list_align {
847
+ display: grid;
848
+ grid-template-areas: ". inner .";
849
+ grid-template-columns: 1fr auto 1fr;
850
+ box-sizing: border-box;
851
+ min-width: 100%;
852
+ padding-left: var(--uc-padding);
853
+ }
854
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-tab-content-row > .uc-tab-content .uc-controls-list_inner {
855
+ display: grid;
856
+ grid-area: inner;
857
+ grid-auto-flow: column;
858
+ gap: 6px;
859
+ }
860
+ uc-editor-toolbar > .uc-toolbar-container > .uc-sub-toolbar > .uc-tab-content-row > .uc-tab-content .uc-controls-list_inner:last-child {
861
+ padding-right: var(--uc-padding);
862
+ }
863
+ uc-editor-toolbar .uc-controls-list_last-item {
864
+ margin-right: var(--cldtr-gap-max);
865
+ }
866
+ uc-editor-toolbar .uc-info-tooltip_container {
867
+ position: absolute;
868
+ display: flex;
869
+ align-items: flex-start;
870
+ justify-content: center;
871
+ width: 100%;
872
+ height: 100%;
873
+ }
874
+ uc-editor-toolbar .uc-info-tooltip_wrapper {
875
+ position: absolute;
876
+ top: calc(-100% - var(--cldtr-gap-mid-2));
877
+ display: flex;
878
+ flex-direction: column;
879
+ justify-content: flex-end;
880
+ height: 100%;
881
+ pointer-events: none;
882
+ }
883
+ uc-editor-toolbar .uc-info-tooltip {
884
+ z-index: 3;
885
+ padding: 3px 6px;
886
+ color: var(--color-text-base);
887
+ font-size: 0.7em;
888
+ letter-spacing: 1px;
889
+ text-transform: uppercase;
890
+ background-color: var(--color-text-accent-contrast);
891
+ border-radius: var(--border-radius-editor);
892
+ transform: translateY(100%);
893
+ opacity: 0;
894
+ transition: var(--transition-duration-3);
895
+ }
896
+ uc-editor-toolbar .uc-info-tooltip_visible {
897
+ transform: translateY(0px);
898
+ opacity: 1;
899
+ }
900
+ uc-editor-toolbar .uc-slider {
901
+ padding-right: var(--l-slider-padding);
902
+ padding-left: var(--l-slider-padding);
903
+ }
904
+ uc-btn-ui > button {
905
+ --filter-effect: var(--idle-brightness);
906
+ --opacity-effect: var(--idle-opacity);
907
+ --color-effect: var(--idle-color-rgb);
908
+ --background-effect: var(--idle-background);
909
+ --l-transition-effect: var( --css-transition, color var(--transition-duration-2), background-color var(--transition-duration-2), filter var(--transition-duration-2) );
910
+ all: unset;
911
+ display: inline-flex;
912
+ align-items: center;
913
+ box-sizing: var(--css-box-sizing, border-box);
914
+ height: var(--css-height, var(--uc-button-size));
915
+ padding-right: var(--css-padding-right, 14px);
916
+ padding-left: var(--css-padding-left, 14px);
917
+ font-size: 1em;
918
+ color: var(--color-effect);
919
+ background-color: var(--background-effect);
920
+ border-radius: var(--uc-radius);
921
+ opacity: var(--opacity-effect);
922
+ cursor: pointer;
923
+ filter: brightness(var(--filter-effect));
924
+ transition: var(--l-transition-effect);
925
+ user-select: none;
926
+ }
927
+ uc-btn-ui > button > uc-icon {
928
+ pointer-events: none;
929
+ }
930
+ uc-btn-ui .uc-text {
931
+ white-space: nowrap;
932
+ }
933
+ uc-btn-ui .uc-icon {
934
+ display: flex;
935
+ align-items: center;
936
+ justify-content: center;
937
+ color: var(--color-effect);
938
+ filter: brightness(var(--filter-effect));
939
+ transition: var(--l-transition-effect);
940
+ }
941
+ uc-btn-ui .uc-icon_left {
942
+ margin-right: var(--cldtr-gap-mid-1);
943
+ margin-left: 0px;
944
+ }
945
+ uc-btn-ui .uc-icon_right {
946
+ margin-right: 0px;
947
+ margin-left: var(--cldtr-gap-mid-1);
948
+ }
949
+ uc-btn-ui .uc-icon_single {
950
+ margin-right: 0px;
951
+ margin-left: 0px;
952
+ }
953
+ uc-btn-ui .uc-icon_hidden {
954
+ display: none;
955
+ margin: 0;
956
+ }
957
+ uc-btn-ui.uc-primary > button {
958
+ --idle-color-rgb: var(--uc-primary-foreground);
959
+ --idle-brightness: 1;
960
+ --idle-opacity: 1;
961
+ --idle-background: var(--uc-primary);
962
+ --hover-color-rgb: var(--uc-primary-foreground);
963
+ --hover-brightness: 1;
964
+ --hover-opacity: 1;
965
+ --hover-background: var(--uc-primary-hover);
966
+ --down-color-rgb: var(--uc-primary-foreground);
967
+ --down-brightness: 0.75;
968
+ --down-opacity: 1;
969
+ --down-background: var(--uc-primary);
970
+ --active-color-rgb: var(--uc-primary-foreground);
971
+ --active-brightness: 1;
972
+ --active-opacity: 1;
973
+ --active-background: var(--uc-primary);
974
+ }
975
+ uc-btn-ui.uc-primary-icon > button {
976
+ --idle-color-rgb: var(--uc-primary);
977
+ --idle-brightness: 1;
978
+ --idle-opacity: 1;
979
+ --idle-background: transparent;
980
+ --hover-color-rgb: var(--uc-primary);
981
+ --hover-brightness: 1;
982
+ --hover-opacity: 1;
983
+ --hover-background: var(--uc-primary-transparent);
984
+ --down-color-rgb: var(--uc-primary);
985
+ --down-brightness: 0.75;
986
+ --down-opacity: 1;
987
+ --down-background: var(--uc-primary-transparent);
988
+ --active-color-rgb: var(--uc-primary-foreground);
989
+ --active-brightness: 1;
990
+ --active-opacity: 1;
991
+ --active-background: var(--uc-primary);
992
+ padding: 0;
993
+ width: var(--uc-button-size);
994
+ }
995
+ uc-btn-ui.uc-secondary > button {
996
+ --idle-color-rgb: var(--uc-secondary-foreground);
997
+ --idle-brightness: 1;
998
+ --idle-opacity: 1;
999
+ --idle-background: var(--uc-secondary);
1000
+ --hover-color-rgb: var(--uc-secondary-foreground);
1001
+ --hover-brightness: 1;
1002
+ --hover-opacity: 1;
1003
+ --hover-background: var(--uc-secondary-hover);
1004
+ --down-color-rgb: var(--uc-secondary-foreground);
1005
+ --down-brightness: 1;
1006
+ --down-opacity: 1;
1007
+ --down-background: var(--uc-secondary-hover);
1008
+ --active-color-rgb: var(--uc-secondary-foreground);
1009
+ --active-brightness: 1;
1010
+ --active-opacity: 1;
1011
+ --active-background: transparent;
1012
+ }
1013
+ :where(.uc-contrast) uc-btn-ui.uc-secondary > button {
1014
+ border: 1px solid var(--uc-border);
1015
+ }
1016
+ uc-btn-ui.uc-secondary-icon > button {
1017
+ --idle-color-rgb: var(--uc-secondary-foreground);
1018
+ --idle-brightness: 1;
1019
+ --idle-opacity: 1;
1020
+ --idle-background: transparent;
1021
+ --hover-color-rgb: var(--uc-secondary-foreground);
1022
+ --hover-brightness: 1;
1023
+ --hover-opacity: 1;
1024
+ --hover-background: var(--uc-secondary);
1025
+ --down-color-rgb: var(--uc-secondary-foreground);
1026
+ --down-brightness: 1;
1027
+ --down-opacity: 1;
1028
+ --down-background: var(--uc-secondary);
1029
+ --active-color-rgb: var(--uc-secondary-foreground);
1030
+ --active-brightness: 1;
1031
+ --active-opacity: 1;
1032
+ --active-background: transparent;
1033
+ padding: 0;
1034
+ width: var(--uc-button-size);
1035
+ }
1036
+ uc-btn-ui.uc-tab > button {
1037
+ --idle-color-rgb: var(--uc-secondary-foreground);
1038
+ --idle-brightness: 1;
1039
+ --idle-opacity: 1;
1040
+ --idle-background: transparent;
1041
+ --hover-color-rgb: var(--uc-secondary-foreground);
1042
+ --hover-brightness: 1;
1043
+ --hover-opacity: 1;
1044
+ --hover-background: var(--uc-secondary);
1045
+ --down-color-rgb: var(--uc-secondary-foreground);
1046
+ --down-brightness: 1;
1047
+ --down-opacity: 1;
1048
+ --down-background: var(--uc-secondary);
1049
+ --active-color-rgb: var(--uc-secondary-foreground);
1050
+ --active-brightness: 1;
1051
+ --active-opacity: 1;
1052
+ --active-background: transparent;
1053
+ padding: 0;
1054
+ width: var(--uc-button-size);
1055
+ }
1056
+ uc-btn-ui.uc-default > button {
1057
+ --idle-color-rgb: var(--uc-secondary-foreground);
1058
+ --idle-brightness: 1;
1059
+ --idle-opacity: 1;
1060
+ --idle-background: var(--uc-secondary);
1061
+ --hover-color-rgb: var(--uc-secondary-foreground);
1062
+ --hover-brightness: 1;
1063
+ --hover-opacity: 1;
1064
+ --hover-background: var(--uc-secondary-hover);
1065
+ --down-color-rgb: var(--uc-secondary-foreground);
1066
+ --down-brightness: 0.75;
1067
+ --down-opacity: 1;
1068
+ --down-background: var(--uc-secondary);
1069
+ --active-color-rgb: var(--uc-primary);
1070
+ --active-brightness: 1;
1071
+ --active-opacity: 1;
1072
+ --active-background: var(--uc-primary-transparent);
1073
+ }
1074
+ :where(.uc-contrast) uc-btn-ui.uc-default > button {
1075
+ --idle-background: transparent;
1076
+ --hover-background: var(--uc-secondary);
1077
+ --active-background: var(--uc-foreground);
1078
+ --active-color-rgb: var(--uc-background);
1079
+ }
1080
+ uc-line-loader-ui {
1081
+ position: absolute;
1082
+ top: 0px;
1083
+ left: 0px;
1084
+ z-index: 9999;
1085
+ width: 100%;
1086
+ height: 2px;
1087
+ opacity: 0.5;
1088
+ }
1089
+ uc-line-loader-ui .uc-inner {
1090
+ width: 25%;
1091
+ max-width: 200px;
1092
+ height: 100%;
1093
+ }
1094
+ uc-line-loader-ui .uc-line {
1095
+ width: 100%;
1096
+ height: 100%;
1097
+ background-color: var(--uc-primary);
1098
+ transform: translateX(-101%);
1099
+ transition: transform 1s;
1100
+ }
1101
+ uc-slider-ui {
1102
+ --l-thumb-size: 24px;
1103
+ --l-zero-dot-size: 5px;
1104
+ --l-zero-dot-offset: 2px;
1105
+ --idle-color-rgb: var(--uc-foreground);
1106
+ --hover-color-rgb: var(--uc-primary);
1107
+ --down-color-rgb: var(--uc-primary);
1108
+ --color-effect: var(--idle-color-rgb);
1109
+ --l-color: var(--color-effect);
1110
+ position: relative;
1111
+ display: flex;
1112
+ align-items: center;
1113
+ justify-content: center;
1114
+ width: 100%;
1115
+ height: calc(var(--l-thumb-size) + (var(--l-zero-dot-size) + var(--l-zero-dot-offset)) * 2);
1116
+ }
1117
+ uc-slider-ui .uc-thumb {
1118
+ position: absolute;
1119
+ left: 0px;
1120
+ width: var(--l-thumb-size);
1121
+ height: var(--l-thumb-size);
1122
+ background-color: var(--l-color);
1123
+ border-radius: 50%;
1124
+ transform: translateX(0px);
1125
+ opacity: 1;
1126
+ transition: opacity var(--transition-duration-2), background-color var(--transition-duration-2);
1127
+ }
1128
+ uc-slider-ui .uc-steps {
1129
+ position: absolute;
1130
+ display: flex;
1131
+ align-items: center;
1132
+ justify-content: space-between;
1133
+ box-sizing: border-box;
1134
+ width: 100%;
1135
+ height: 100%;
1136
+ padding-right: calc(var(--l-thumb-size) / 2);
1137
+ padding-left: calc(var(--l-thumb-size) / 2);
1138
+ }
1139
+ uc-slider-ui .uc-border-step {
1140
+ width: 0px;
1141
+ height: 10px;
1142
+ border-right: 1px solid var(--uc-foreground);
1143
+ opacity: 1;
1144
+ transition: border-color var(--transition-duration-2);
1145
+ }
1146
+ uc-slider-ui .uc-minor-step {
1147
+ width: 0px;
1148
+ height: 4px;
1149
+ border-right: 1px solid var(--uc-foreground);
1150
+ opacity: 0.6;
1151
+ transition: border-color var(--transition-duration-2);
1152
+ }
1153
+ uc-slider-ui .uc-zero-dot {
1154
+ position: absolute;
1155
+ top: calc(100% - var(--l-zero-dot-offset) * 2);
1156
+ left: calc(var(--l-thumb-size) / 2 - var(--l-zero-dot-size) / 2);
1157
+ width: var(--l-zero-dot-size);
1158
+ height: var(--l-zero-dot-size);
1159
+ background-color: var(--color-primary-accent);
1160
+ border-radius: 50%;
1161
+ opacity: 0;
1162
+ transition: var(--transition-duration-3);
1163
+ }
1164
+ uc-slider-ui .uc-input {
1165
+ position: absolute;
1166
+ width: calc(100% - 10px);
1167
+ height: 100%;
1168
+ margin: 0;
1169
+ cursor: pointer;
1170
+ opacity: 0;
1171
+ }
1172
+ uc-presence-toggle.uc-transition {
1173
+ transition: opacity var(--transition-duration-3), visibility var(--transition-duration-3);
1174
+ }
1175
+ uc-presence-toggle.uc-visible {
1176
+ opacity: 1;
1177
+ pointer-events: inherit;
1178
+ }
1179
+ uc-presence-toggle.uc-hidden {
1180
+ opacity: 0;
1181
+ pointer-events: none;
1182
+ }
1183
+ uc-presence-toggle.uc-initial {
1184
+ display: none !important;
1185
+ transition: none !important;
1186
+ }
1187
+ [uc-cloud-image-editor] [role=button]:focus-visible,
1188
+ [uc-cloud-image-editor] button:focus-visible {
1189
+ outline: 1px auto Highlight;
1190
+ outline: 1px auto -webkit-focus-ring-color;
1191
+ }
1192
+ [uc-cloud-image-editor] .uc-cloud-mask {
1193
+ pointer-events: none;
1194
+ }
1195
+ [uc-aspect-ratio-freeform] button {
1196
+ display: flex;
1197
+ }
1198
+ [uc-aspect-ratio-freeform] uc-icon {
1199
+ display: none;
1200
+ }
1201
+ [uc-aspect-ratio-freeform] .uc-title {
1202
+ padding-left: var(--cldtr-gap-mid-1);
1203
+ }
1204
+ :where(uc-editor-freeform-button-control, uc-editor-aspect-ratio-button-control:last-of-type) {
1205
+ margin-right: calc(3 * var(--cldtr-gap-mid-1));
1206
+ }
1207
+ }
1208
+
1209
+ /* src/blocks/CloudImageEditor/src/css/icons.css */
1210
+ @layer uc.solutions {
1211
+ :where([uc-cloud-image-editor]) uc-icon {
1212
+ display: flex;
1213
+ justify-content: center;
1214
+ width: 100%;
1215
+ height: 100%;
1216
+ }
1217
+ :where([uc-cloud-image-editor]) uc-icon svg {
1218
+ width: calc(var(--uc-button-size) / 2);
1219
+ height: calc(var(--uc-button-size) / 2);
1220
+ }
1221
+ }
1222
+
1223
+ /* src/blocks/CloudImageEditor/src/css/index.css */
1224
+
1225
+ /* src/blocks/CloudImageEditor/index.css */
1226
+
1227
+ /* src/blocks/CloudImageEditorActivity/cloud-image-editor-activity.css */
1228
+ @layer uc.components {
1229
+ uc-cloud-image-editor-activity {
1230
+ position: relative;
1231
+ display: flex;
1232
+ width: 100%;
1233
+ height: 100%;
1234
+ overflow: hidden;
1235
+ background-color: var(--uc-background);
1236
+ }
1237
+ [uc-modal] > dialog:has(uc-cloud-image-editor-activity[active]) {
1238
+ width: 100%;
1239
+ height: 100%;
1240
+ }
1241
+ }
1242
+
1243
+ /* src/blocks/Config/config.css */
1244
+ @layer uc.components {
1245
+ uc-config {
1246
+ display: none;
1247
+ }
1248
+ }
1249
+
1250
+ /* src/blocks/Copyright/copyright.css */
1251
+ @layer uc.components {
1252
+ uc-copyright {
1253
+ display: flex;
1254
+ width: 100%;
1255
+ justify-content: center;
1256
+ }
1257
+ uc-copyright .uc-credits {
1258
+ all: unset;
1259
+ position: absolute;
1260
+ bottom: 12px;
1261
+ background-color: var(--uc-background);
1262
+ padding: 2px 5px;
1263
+ border-radius: 6px;
1264
+ color: var(--uc-muted-foreground);
1265
+ font-weight: normal;
1266
+ font-size: 12px;
1267
+ opacity: 0.9;
1268
+ cursor: pointer;
1269
+ transition: opacity var(--uc-transition), background-color var(--uc-transition);
1270
+ }
1271
+ uc-copyright .uc-credits:focus-visible {
1272
+ outline: 1px auto Highlight;
1273
+ outline: 1px auto -webkit-focus-ring-color;
1274
+ }
1275
+ uc-copyright .uc-credits:hover {
1276
+ opacity: 1;
1277
+ background-color: var(--uc-muted);
1278
+ }
1279
+ }
1280
+
1281
+ /* src/blocks/DropArea/drop-area.css */
1282
+ @layer uc.components {
1283
+ :where([uc-drop-area]) {
1284
+ padding: 2px;
1285
+ overflow: hidden;
1286
+ border: 1px dashed var(--uc-border);
1287
+ border-radius: calc(var(--uc-radius) * 1.75);
1288
+ transition: border var(--uc-transition), border-radius var(--uc-transition);
1289
+ }
1290
+ :where([uc-drop-area]),
1291
+ :where([uc-drop-area]) .uc-content-wrapper {
1292
+ display: flex;
1293
+ align-items: center;
1294
+ justify-content: center;
1295
+ width: 100%;
1296
+ height: 100%;
1297
+ }
1298
+ :where([uc-drop-area]) .uc-text {
1299
+ position: relative;
1300
+ margin: var(--uc-padding);
1301
+ color: var(--uc-muted-foreground);
1302
+ transition: color var(--uc-transition);
1303
+ }
1304
+ :where([uc-drop-area])[ghost][drag-state=inactive] {
1305
+ display: none;
1306
+ }
1307
+ :where([uc-drop-area])[ghost]:not([fullscreen]):is([drag-state=active], [drag-state=near], [drag-state=over]) {
1308
+ background: var(--uc-background);
1309
+ }
1310
+ :where([uc-drop-area]):is([drag-state=active], [drag-state=near], [drag-state=over], :hover) {
1311
+ background: var(--uc-primary-transparent);
1312
+ border-color: var(--uc-primary-transparent);
1313
+ }
1314
+ :where(.uc-contrast) :where([uc-drop-area]):is([drag-state=active], [drag-state=near], [drag-state=over], :hover) {
1315
+ color: var(--uc-foreground);
1316
+ background: transparent;
1317
+ border-color: var(--uc-foreground);
1318
+ border-width: 2px;
1319
+ border-style: solid;
1320
+ }
1321
+ :where([uc-drop-area]):is([drag-state=active], [drag-state=near]) {
1322
+ opacity: 1;
1323
+ }
1324
+ :where([uc-drop-area])[drag-state=over] {
1325
+ border-color: var(--uc-primary);
1326
+ opacity: 1;
1327
+ }
1328
+ :where([uc-drop-area])[with-icon] {
1329
+ min-height: 180px;
1330
+ }
1331
+ :where([uc-drop-area])[with-icon] .uc-content-wrapper {
1332
+ display: flex;
1333
+ flex-direction: column;
1334
+ }
1335
+ :where([uc-drop-area])[with-icon] .uc-text {
1336
+ color: var(--uc-foreground);
1337
+ font-weight: 500;
1338
+ font-size: 1.1em;
1339
+ }
1340
+ :where([uc-drop-area])[with-icon] .uc-icon-container {
1341
+ position: relative;
1342
+ width: 64px;
1343
+ height: 64px;
1344
+ margin: var(--uc-padding);
1345
+ overflow: hidden;
1346
+ color: var(--uc-foreground);
1347
+ background-color: var(--uc-muted);
1348
+ border-radius: 50%;
1349
+ transition: color var(--uc-transition), background-color var(--uc-transition);
1350
+ }
1351
+ :where([uc-drop-area])[with-icon] uc-icon {
1352
+ position: absolute;
1353
+ width: 32px;
1354
+ height: 32px;
1355
+ top: calc(50% - 16px);
1356
+ left: calc(50% - 16px);
1357
+ transition: transform var(--uc-transition);
1358
+ }
1359
+ :where([uc-drop-area])[with-icon] uc-icon:last-child {
1360
+ transform: translateY(48px);
1361
+ }
1362
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon]:hover .uc-icon-container,
1363
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon]:hover .uc-text {
1364
+ color: var(--uc-foreground);
1365
+ }
1366
+ :where([uc-drop-area])[with-icon]:hover .uc-icon-container {
1367
+ background-color: var(--uc-primary-transparent);
1368
+ }
1369
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon]:hover .uc-icon-container {
1370
+ background-color: var(--uc-muted);
1371
+ }
1372
+ :where([uc-drop-area])[with-icon] > .uc-content-wrapper:is([drag-state=active], [drag-state=near], [drag-state=over]) .uc-icon-container {
1373
+ color: var(--uc-primary-foreground);
1374
+ background-color: var(--uc-primary);
1375
+ }
1376
+ :where([uc-drop-area])[with-icon] > .uc-content-wrapper:is([drag-state=active], [drag-state=near], [drag-state=over]) .uc-text {
1377
+ color: var(--uc-foreground);
1378
+ }
1379
+ :where(.uc-contrast) :where([uc-drop-area])[with-icon] > .uc-content-wrapper:is([drag-state=active], [drag-state=near], [drag-state=over]) .uc-text {
1380
+ color: var(--uc-foreground);
1381
+ }
1382
+ :where([uc-drop-area])[with-icon] > .uc-content-wrapper:is([drag-state=active], [drag-state=near], [drag-state=over]) uc-icon:first-child {
1383
+ transform: translateY(-48px);
1384
+ }
1385
+ :where([uc-drop-area])[with-icon] > .uc-content-wrapper:is([drag-state=active], [drag-state=near], [drag-state=over]) uc-icon:last-child {
1386
+ transform: translateY(0);
1387
+ }
1388
+ :where([uc-drop-area])[with-icon] > .uc-content-wrapper[drag-state=near] uc-icon:last-child {
1389
+ transform: scale(1.3);
1390
+ }
1391
+ :where([uc-drop-area])[with-icon] > .uc-content-wrapper[drag-state=over] uc-icon:last-child {
1392
+ transform: scale(1.5);
1393
+ }
1394
+ :where([uc-drop-area])[fullscreen] {
1395
+ position: fixed;
1396
+ top: 0;
1397
+ right: 0;
1398
+ bottom: 0;
1399
+ left: 0;
1400
+ z-index: 2147483647;
1401
+ display: flex;
1402
+ align-items: center;
1403
+ justify-content: center;
1404
+ width: calc(100vw - var(--uc-padding) * 2);
1405
+ height: calc(100vh - var(--uc-padding) * 2);
1406
+ margin: var(--uc-padding);
1407
+ }
1408
+ :where([uc-drop-area])[fullscreen] .uc-content-wrapper {
1409
+ width: 100%;
1410
+ max-width: calc(var(--uc-dialog-width) * 0.8);
1411
+ height: 180px;
1412
+ color: var(--uc-foreground);
1413
+ background-color: var(--uc-background);
1414
+ border-radius: calc(var(--uc-radius) * 1.75);
1415
+ box-shadow: var(--uc-dialog-shadow);
1416
+ transition:
1417
+ color var(--uc-transition),
1418
+ background-color var(--uc-transition),
1419
+ box-shadow var(--uc-transition),
1420
+ border-radius var(--uc-transition),
1421
+ transform var(--uc-transition);
1422
+ }
1423
+ :where([uc-drop-area])[with-icon][fullscreen][drag-state=active] > .uc-content-wrapper,
1424
+ :where([uc-drop-area])[with-icon][fullscreen][drag-state=near] > .uc-content-wrapper {
1425
+ transform: translateY(10px);
1426
+ opacity: 0;
1427
+ }
1428
+ :where([uc-drop-area])[with-icon][fullscreen][drag-state=over] > .uc-content-wrapper {
1429
+ transform: translateY(0px);
1430
+ opacity: 1;
1431
+ }
1432
+ :is(:where([uc-drop-area])[with-icon][fullscreen]) > .uc-content-wrapper uc-icon:first-child {
1433
+ transform: translateY(-48px);
1434
+ }
1435
+ :where([uc-drop-area])[clickable] {
1436
+ cursor: pointer;
1437
+ }
1438
+ }
1439
+
1440
+ /* src/blocks/ExternalSource/external-source.css */
1441
+ @layer uc.components {
1442
+ uc-external-source {
1443
+ display: flex;
1444
+ flex-direction: column;
1445
+ width: 100%;
1446
+ height: 100%;
1447
+ background-color: var(--uc-background);
1448
+ overflow: hidden;
1449
+ position: relative;
1450
+ }
1451
+ [uc-modal] > dialog:has(uc-external-source[active]) {
1452
+ width: 100%;
1453
+ height: 100%;
1454
+ }
1455
+ uc-external-source > .uc-content {
1456
+ position: relative;
1457
+ display: grid;
1458
+ flex: 1;
1459
+ grid-template-rows: 1fr min-content;
1460
+ }
1461
+ uc-external-source iframe {
1462
+ display: block;
1463
+ width: 100%;
1464
+ height: 100%;
1465
+ border: none;
1466
+ }
1467
+ uc-external-source .uc-iframe-wrapper {
1468
+ overflow: hidden;
1469
+ }
1470
+ uc-external-source .uc-toolbar {
1471
+ display: flex;
1472
+ width: 100%;
1473
+ grid-gap: var(--uc-padding);
1474
+ align-items: center;
1475
+ justify-content: space-between;
1476
+ padding: var(--uc-padding);
1477
+ border-top: 1px solid var(--uc-border);
1478
+ }
1479
+ uc-external-source .uc-back-btn {
1480
+ padding-left: 0;
1481
+ }
1482
+ uc-external-source .uc-selection-status-box {
1483
+ color: var(--uc-foreground);
1484
+ display: flex;
1485
+ flex-direction: column;
1486
+ align-items: center;
1487
+ justify-content: center;
1488
+ }
1489
+ uc-external-source .uc-selection-status-box button {
1490
+ color: var(--uc-primary);
1491
+ height: auto;
1492
+ padding: 0;
1493
+ background: none;
1494
+ }
1495
+ uc-external-source .uc-selection-status-box button:hover {
1496
+ text-decoration: underline;
1497
+ }
1498
+ uc-external-source uc-activity-header {
1499
+ position: absolute;
1500
+ width: 100%;
1501
+ justify-content: flex-end;
1502
+ z-index: 1;
1503
+ left: 0;
1504
+ top: 0;
1505
+ right: 0;
1506
+ pointer-events: none;
1507
+ }
1508
+ uc-external-source uc-activity-header .uc-close-btn {
1509
+ pointer-events: auto;
1510
+ }
1511
+ uc-external-source .uc-done-btn > span.uc-hidden {
1512
+ visibility: hidden;
1513
+ pointer-events: none;
1514
+ }
1515
+ uc-external-source .uc-done-btn > uc-spinner {
1516
+ position: absolute;
1517
+ width: 100%;
1518
+ height: 100%;
1519
+ display: flex;
1520
+ align-items: center;
1521
+ justify-content: center;
1522
+ }
1523
+ }
1524
+
1525
+ /* src/blocks/FileItem/file-item.css */
1526
+ @layer uc.components {
1527
+ uc-file-item {
1528
+ --uc-file-item-gap: 4px;
1529
+ --uc-file-item-height: calc(var(--uc-preview-size) + var(--uc-padding) * 2 + var(--uc-file-item-gap));
1530
+ display: block;
1531
+ overflow: hidden;
1532
+ min-height: var(--uc-file-item-height);
1533
+ }
1534
+ uc-file-item:last-of-type {
1535
+ --uc-file-item-gap: 0;
1536
+ }
1537
+ uc-file-item > .uc-inner {
1538
+ position: relative;
1539
+ display: grid;
1540
+ grid-template-columns: var(--uc-preview-size) 1fr max-content;
1541
+ gap: 2px;
1542
+ align-items: center;
1543
+ margin-bottom: var(--uc-file-item-gap);
1544
+ padding: var(--uc-padding);
1545
+ overflow: hidden;
1546
+ font-size: 0.925em;
1547
+ background-color: var(--uc-muted);
1548
+ border-radius: var(--uc-radius);
1549
+ transition: background-color var(--uc-transition);
1550
+ }
1551
+ uc-file-item > .uc-inner[focused] {
1552
+ background-color: transparent;
1553
+ }
1554
+ uc-file-item > .uc-inner[uploading] .uc-edit-btn {
1555
+ display: none;
1556
+ }
1557
+ uc-file-item > :where(.uc-inner[failed], .uc-inner[limit-overflow]) {
1558
+ background-color: var(--uc-destructive);
1559
+ }
1560
+ uc-file-item .uc-thumb {
1561
+ position: relative;
1562
+ display: inline-flex;
1563
+ width: var(--uc-preview-size);
1564
+ height: var(--uc-preview-size);
1565
+ background-color: var(--uc-secondary);
1566
+ background-position: center center;
1567
+ background-repeat: no-repeat;
1568
+ background-size: cover;
1569
+ border-radius: var(--uc-radius);
1570
+ }
1571
+ uc-file-item .uc-file-name-wrapper {
1572
+ text-align: left;
1573
+ display: flex;
1574
+ flex-direction: column;
1575
+ align-items: flex-start;
1576
+ justify-content: center;
1577
+ max-width: 100%;
1578
+ padding-right: var(--uc-padding);
1579
+ padding-left: var(--uc-padding);
1580
+ overflow: hidden;
1581
+ color: var(--uc-muted-foreground);
1582
+ }
1583
+ uc-file-item .uc-file-name {
1584
+ max-width: 100%;
1585
+ overflow: hidden;
1586
+ white-space: nowrap;
1587
+ text-overflow: ellipsis;
1588
+ }
1589
+ uc-file-item .uc-file-error {
1590
+ display: none;
1591
+ color: var(--uc-destructive-foreground);
1592
+ font-size: 0.85em;
1593
+ z-index: 2;
1594
+ }
1595
+ uc-file-item button.uc-remove-btn,
1596
+ uc-file-item button.uc-edit-btn {
1597
+ color: var(--uc-muted-foreground);
1598
+ }
1599
+ uc-file-item button svg {
1600
+ pointer-events: none;
1601
+ }
1602
+ uc-file-item button.uc-upload-btn {
1603
+ display: none;
1604
+ }
1605
+ uc-file-item .uc-badge {
1606
+ position: absolute;
1607
+ bottom: 2px;
1608
+ right: 2px;
1609
+ width: 14px;
1610
+ height: 14px;
1611
+ color: var(--uc-background);
1612
+ background-color: var(--uc-foreground);
1613
+ border-radius: 50%;
1614
+ transform: scale(0.3);
1615
+ opacity: 0;
1616
+ transition: opacity var(--uc-transition), transform var(--uc-transition);
1617
+ display: flex;
1618
+ justify-content: center;
1619
+ align-items: center;
1620
+ }
1621
+ uc-file-item > .uc-inner:where([failed], [limit-overflow], [finished]) .uc-badge {
1622
+ transform: scale(1);
1623
+ opacity: 1;
1624
+ }
1625
+ uc-file-item > .uc-inner:where([failed], [limit-overflow]) .uc-badge {
1626
+ background-color: var(--uc-destructive-foreground);
1627
+ }
1628
+ uc-file-item > .uc-inner:where([failed], [limit-overflow]) .uc-file-error {
1629
+ display: block;
1630
+ }
1631
+ uc-file-item .uc-badge uc-icon,
1632
+ uc-file-item .uc-badge uc-icon svg {
1633
+ width: 100%;
1634
+ height: 100%;
1635
+ }
1636
+ uc-file-item .uc-progress-bar {
1637
+ opacity: 0.7;
1638
+ top: calc(100% - 2px);
1639
+ height: 2px;
1640
+ }
1641
+ :where(.uc-contrast) uc-file-item .uc-progress-bar {
1642
+ opacity: 1;
1643
+ }
1644
+ uc-file-item .uc-file-actions {
1645
+ display: flex;
1646
+ gap: 2px;
1647
+ align-items: center;
1648
+ justify-content: center;
1649
+ }
1650
+ uc-file-item[mode=grid] {
1651
+ overflow: visible;
1652
+ min-height: initial;
1653
+ }
1654
+ uc-file-item[mode=grid] .uc-inner {
1655
+ height: 100%;
1656
+ grid-template-columns: 1fr;
1657
+ grid-template-rows: 1fr max-content;
1658
+ padding: 0;
1659
+ background-color: transparent;
1660
+ margin-bottom: 0;
1661
+ border-radius: 0;
1662
+ }
1663
+ uc-file-item[mode=grid] .uc-inner[failed] .uc-badge {
1664
+ display: none;
1665
+ }
1666
+ uc-file-item[mode=grid] .uc-thumb {
1667
+ width: 100%;
1668
+ height: 100%;
1669
+ }
1670
+ uc-file-item[mode=grid] .uc-badge {
1671
+ right: var(--uc-padding);
1672
+ bottom: var(--uc-padding);
1673
+ }
1674
+ uc-file-item[mode=grid] .uc-file-name-wrapper {
1675
+ padding: 0;
1676
+ }
1677
+ uc-file-item[mode=grid] .uc-file-name:not([hidden]) + .uc-file-error {
1678
+ bottom: calc(var(--uc-padding) + var(--uc-font-size));
1679
+ }
1680
+ uc-file-item[mode=grid] .uc-file-error {
1681
+ position: absolute;
1682
+ background-color: var(--uc-destructive-foreground);
1683
+ border-radius: var(--uc-radius);
1684
+ color: var(--uc-background);
1685
+ bottom: var(--uc-padding);
1686
+ left: var(--uc-padding);
1687
+ right: var(--uc-padding);
1688
+ padding: calc(var(--uc-padding) / 2) var(--uc-padding);
1689
+ }
1690
+ uc-file-item[mode=grid] .uc-file-hint {
1691
+ position: absolute;
1692
+ background-color: var(--uc-background);
1693
+ border-radius: var(--uc-radius);
1694
+ color: var(--uc-foreground);
1695
+ bottom: calc(var(--uc-padding) * 2);
1696
+ left: var(--uc-padding);
1697
+ right: var(--uc-padding);
1698
+ padding: calc(var(--uc-padding) / 2) var(--uc-padding);
1699
+ }
1700
+ uc-file-item[mode=grid] .uc-file-actions {
1701
+ position: absolute;
1702
+ top: var(--uc-padding);
1703
+ right: var(--uc-padding);
1704
+ }
1705
+ uc-file-item[mode=grid] button {
1706
+ background-color: var(--uc-background);
1707
+ }
1708
+ uc-file-item[mode=grid] button:hover {
1709
+ background-color: var(--uc-muted);
1710
+ }
1711
+ uc-file-item[mode=grid] .uc-progress-bar {
1712
+ width: initial;
1713
+ height: 4px !important;
1714
+ top: initial !important;
1715
+ bottom: var(--uc-padding);
1716
+ left: var(--uc-padding);
1717
+ right: var(--uc-padding);
1718
+ border-radius: var(--uc-radius);
1719
+ z-index: 1;
1720
+ transition: background-color 0.3s, opacity 0.3s;
1721
+ background-color: var(--uc-background);
1722
+ }
1723
+ uc-file-item[mode=grid] .uc-progress-bar :is(.uc-fake-progress, .uc-progress) {
1724
+ background-color: var(--uc-primary);
1725
+ }
1726
+ uc-file-item[mode=grid] .uc-progress-bar[hasfilename] {
1727
+ bottom: calc(var(--uc-padding) + var(--uc-font-size));
1728
+ }
1729
+ }
1730
+
1731
+ /* src/blocks/Icon/icon.css */
1732
+ @layer uc.components {
1733
+ uc-icon {
1734
+ display: inline-flex;
1735
+ align-items: center;
1736
+ justify-content: center;
1737
+ width: var(--uc-button-size);
1738
+ height: var(--uc-button-size);
1739
+ }
1740
+ uc-icon svg {
1741
+ width: calc(var(--uc-button-size) / 2);
1742
+ height: calc(var(--uc-button-size) / 2);
1743
+ overflow: visible;
1744
+ }
1745
+ }
1746
+
1747
+ /* src/blocks/Modal/modal.css */
1748
+ @layer uc.components {
1749
+ @supports selector(dialog::backdrop) {
1750
+ :where([uc-modal]) > dialog::backdrop {
1751
+ background-color: oklch(0 0 0 / 0.1);
1752
+ }
1753
+ :where([uc-modal])[strokes] > dialog::backdrop {
1754
+ background-image: var(--modal-backdrop-background-image);
1755
+ }
1756
+ }
1757
+ :where([uc-modal]) > dialog[open] {
1758
+ transform: translateY(0px);
1759
+ visibility: visible;
1760
+ opacity: 1;
1761
+ }
1762
+ :where([uc-modal]) > dialog:not([open]) {
1763
+ transform: translateY(20px);
1764
+ visibility: hidden;
1765
+ opacity: 0;
1766
+ }
1767
+ :where([uc-modal]) > dialog {
1768
+ display: flex;
1769
+ flex-direction: column;
1770
+ width: min(var(--uc-dialog-width), 100%);
1771
+ max-width: min(calc(100% - var(--uc-padding) * 2), var(--uc-dialog-max-width));
1772
+ min-height: var(--uc-button-size);
1773
+ max-height: min(calc(100% - var(--uc-padding) * 2), var(--uc-dialog-max-height));
1774
+ margin: auto;
1775
+ padding: 0;
1776
+ overflow: hidden;
1777
+ background-color: var(--uc-background);
1778
+ border: 0;
1779
+ border-radius: calc(var(--uc-radius) * 1.75);
1780
+ box-shadow: var(--uc-dialog-shadow);
1781
+ transition: transform 0.4s ease, opacity 0.4s ease;
1782
+ }
1783
+ :where(.uc-contrast) :where([uc-modal]) > dialog {
1784
+ outline: 1px solid var(--uc-border);
1785
+ }
1786
+ }
1787
+
1788
+ /* src/blocks/ProgressBar/progress-bar.css */
1789
+ @layer uc.components {
1790
+ uc-progress-bar {
1791
+ --l-progress-value: 0;
1792
+ position: absolute;
1793
+ top: 0;
1794
+ bottom: 0;
1795
+ left: 0;
1796
+ width: 100%;
1797
+ height: 100%;
1798
+ overflow: hidden;
1799
+ pointer-events: none;
1800
+ transition: opacity 0.3s;
1801
+ opacity: 1;
1802
+ }
1803
+ uc-progress-bar.uc-progress-bar--hidden {
1804
+ opacity: 0;
1805
+ }
1806
+ uc-progress-bar .uc-progress {
1807
+ position: absolute;
1808
+ width: calc(var(--l-progress-value) * 1%);
1809
+ height: 100%;
1810
+ background-color: var(--uc-primary);
1811
+ transform: translateX(0);
1812
+ opacity: 1;
1813
+ transition: width 0.6s, opacity 0.3s;
1814
+ }
1815
+ uc-progress-bar .uc-progress--hidden {
1816
+ opacity: 0;
1817
+ }
1818
+ uc-progress-bar .uc-fake-progress {
1819
+ --l-fake-progress-width: 30;
1820
+ position: absolute;
1821
+ width: calc(var(--l-fake-progress-width) * 1%);
1822
+ height: 100%;
1823
+ background-color: var(--uc-primary);
1824
+ animation: fake-progress-animation 1s ease-in-out infinite;
1825
+ opacity: 1;
1826
+ transition: opacity 0.3s;
1827
+ z-index: 1;
1828
+ }
1829
+ uc-progress-bar .uc-fake-progress--hidden {
1830
+ opacity: 0;
1831
+ animation: none;
1832
+ }
1833
+ @keyframes fake-progress-animation {
1834
+ from {
1835
+ transform: translateX(-100%);
1836
+ }
1837
+ to {
1838
+ transform: translateX(calc(100 / var(--l-fake-progress-width) * 100 * 1%));
1839
+ }
1840
+ }
1841
+ }
1842
+
1843
+ /* src/blocks/ProgressBarCommon/progress-bar-common.css */
1844
+ @layer uc.components {
1845
+ uc-progress-bar-common {
1846
+ position: fixed;
1847
+ right: 0;
1848
+ bottom: 0;
1849
+ left: 0;
1850
+ z-index: 10000;
1851
+ display: block;
1852
+ height: 10px;
1853
+ background-color: var(--uc-background);
1854
+ transition: opacity 0.3s;
1855
+ }
1856
+ uc-progress-bar-common:not([active]) {
1857
+ opacity: 0;
1858
+ pointer-events: none;
1859
+ }
1860
+ }
1861
+
1862
+ /* src/blocks/Select/select.css */
1863
+ @layer uc.components {
1864
+ uc-select {
1865
+ display: inline-flex;
1866
+ }
1867
+ uc-select select {
1868
+ position: relative;
1869
+ display: inline-flex;
1870
+ align-items: center;
1871
+ justify-content: center;
1872
+ height: var(--uc-button-size);
1873
+ padding: 0 14px;
1874
+ font-size: 1em;
1875
+ font-family: inherit;
1876
+ white-space: nowrap;
1877
+ border: none;
1878
+ border-radius: var(--uc-radius);
1879
+ cursor: pointer;
1880
+ user-select: none;
1881
+ transition: background-color var(--uc-transition);
1882
+ color: var(--uc-secondary-foreground);
1883
+ background-color: var(--uc-secondary);
1884
+ }
1885
+ }
1886
+
1887
+ /* src/blocks/SimpleBtn/simple-btn.css */
1888
+ @layer uc.components {
1889
+ :where([uc-simple-btn]) {
1890
+ position: relative;
1891
+ display: inline-flex;
1892
+ }
1893
+ :where([uc-simple-btn]) button {
1894
+ height: auto;
1895
+ gap: 0.5em;
1896
+ padding: var(--uc-simple-btn-padding);
1897
+ background-color: var(--uc-simple-btn);
1898
+ color: var(--uc-simple-btn-foreground);
1899
+ font-size: var(--uc-simple-btn-font-size);
1900
+ font-family: var(--uc-simple-btn-font-family);
1901
+ }
1902
+ :where([uc-simple-btn]) button uc-icon {
1903
+ width: auto;
1904
+ height: auto;
1905
+ }
1906
+ :where([uc-simple-btn]) button uc-icon svg {
1907
+ width: 0.9em;
1908
+ height: 0.9em;
1909
+ }
1910
+ :where([uc-simple-btn]) button:hover {
1911
+ background-color: var(--uc-simple-btn-hover);
1912
+ }
1913
+ :where([uc-simple-btn]) > uc-drop-area {
1914
+ display: contents;
1915
+ }
1916
+ :where([uc-simple-btn]) .uc-visual-drop-area {
1917
+ position: absolute;
1918
+ top: 0px;
1919
+ left: 0px;
1920
+ display: flex;
1921
+ align-items: center;
1922
+ justify-content: center;
1923
+ width: 100%;
1924
+ height: 100%;
1925
+ padding: var(--uc-simple-btn-padding);
1926
+ background-color: transparent;
1927
+ color: transparent;
1928
+ font-size: var(--uc-simple-btn-font-size);
1929
+ border: 1px dashed var(--uc-simple-btn-foreground);
1930
+ border-radius: inherit;
1931
+ opacity: 0;
1932
+ transition: opacity var(--uc-transition);
1933
+ }
1934
+ :where([uc-simple-btn]) > uc-drop-area[drag-state=active] .uc-visual-drop-area {
1935
+ opacity: 1;
1936
+ }
1937
+ :where([uc-simple-btn]) > uc-drop-area[drag-state=inactive] .uc-visual-drop-area {
1938
+ opacity: 0;
1939
+ }
1940
+ :where([uc-simple-btn]) > uc-drop-area[drag-state=near] .uc-visual-drop-area {
1941
+ opacity: 1;
1942
+ }
1943
+ :where([uc-simple-btn]) > uc-drop-area[drag-state=over] .uc-visual-drop-area {
1944
+ opacity: 1;
1945
+ }
1946
+ }
1947
+
1948
+ /* src/blocks/SourceBtn/source-btn.css */
1949
+ @layer uc.components {
1950
+ uc-source-btn > button {
1951
+ display: flex;
1952
+ align-items: center;
1953
+ margin-bottom: 2px;
1954
+ padding: 2px var(--uc-padding);
1955
+ color: var(--uc-foreground);
1956
+ border-radius: var(--uc-radius);
1957
+ cursor: pointer;
1958
+ transition: background-color var(--uc-transition), color var(--uc-transition);
1959
+ user-select: none;
1960
+ width: 100%;
1961
+ background-color: unset;
1962
+ height: unset;
1963
+ }
1964
+ uc-source-btn:last-child > button {
1965
+ margin-bottom: 0;
1966
+ }
1967
+ uc-source-btn > button:hover {
1968
+ background-color: var(--uc-primary-transparent);
1969
+ }
1970
+ :where(.uc-contrast) uc-source-btn > button:hover {
1971
+ background-color: var(--uc-secondary);
1972
+ color: var(--uc-foreground);
1973
+ }
1974
+ uc-source-btn uc-icon {
1975
+ display: inline-flex;
1976
+ flex-grow: 1;
1977
+ justify-content: center;
1978
+ min-width: var(--uc-button-size);
1979
+ margin-right: var(--uc-padding);
1980
+ opacity: 0.8;
1981
+ }
1982
+ :where(.uc-contrast) uc-source-btn uc-icon {
1983
+ opacity: 1;
1984
+ }
1985
+ uc-source-btn .uc-txt {
1986
+ display: flex;
1987
+ align-items: center;
1988
+ box-sizing: border-box;
1989
+ width: 100%;
1990
+ height: var(--uc-button-size);
1991
+ padding: 0;
1992
+ white-space: nowrap;
1993
+ border: none;
1994
+ }
1995
+ }
1996
+
1997
+ /* src/blocks/Spinner/spinner.css */
1998
+ @layer uc.components {
1999
+ @keyframes uc-spinner-keyframes {
2000
+ from {
2001
+ transform: rotate(0deg);
2002
+ }
2003
+ to {
2004
+ transform: rotate(360deg);
2005
+ }
2006
+ }
2007
+ .uc-spinner {
2008
+ width: 1em;
2009
+ height: 1em;
2010
+ border: solid 2px transparent;
2011
+ border-top-color: currentColor;
2012
+ border-left-color: currentColor;
2013
+ border-radius: 50%;
2014
+ animation: uc-spinner-keyframes 400ms linear infinite;
2015
+ }
2016
+ }
2017
+
2018
+ /* src/blocks/StartFrom/start-from.css */
2019
+ @layer uc.components {
2020
+ uc-start-from {
2021
+ display: block;
2022
+ overflow-y: auto;
2023
+ }
2024
+ uc-start-from .uc-content {
2025
+ display: grid;
2026
+ grid-auto-flow: row;
2027
+ gap: calc(var(--uc-padding) * 2);
2028
+ width: 100%;
2029
+ height: 100%;
2030
+ padding: calc(var(--uc-padding) * 2);
2031
+ background-color: var(--uc-background);
2032
+ }
2033
+ [uc-modal] > dialog:has(uc-start-from[active]) {
2034
+ width: var(--uc-dialog-width);
2035
+ }
2036
+ [uc-modal] uc-start-from uc-drop-area {
2037
+ border-radius: var(--uc-radius);
2038
+ }
2039
+ @media only screen and (max-width: 430px) {
2040
+ [uc-modal] uc-start-from uc-drop-area {
2041
+ display: none;
2042
+ }
2043
+ }
2044
+ }
2045
+
2046
+ /* src/blocks/Thumb/thumb.css */
2047
+ @layer uc.components {
2048
+ uc-thumb {
2049
+ width: 100%;
2050
+ height: 100%;
2051
+ }
2052
+ }
2053
+
2054
+ /* src/blocks/UploadList/upload-list.css */
2055
+ @layer uc.components {
2056
+ uc-upload-list {
2057
+ position: relative;
2058
+ display: flex;
2059
+ flex-direction: column;
2060
+ width: 100%;
2061
+ height: max-content;
2062
+ overflow: hidden;
2063
+ background-color: var(--uc-background);
2064
+ transition: opacity var(--uc-transition);
2065
+ }
2066
+ uc-upload-list .uc-no-files {
2067
+ height: 32px;
2068
+ padding: 20px;
2069
+ }
2070
+ uc-upload-list .uc-files {
2071
+ display: block;
2072
+ flex: 1;
2073
+ min-height: 32px;
2074
+ padding: 0 var(--uc-padding);
2075
+ overflow: auto;
2076
+ }
2077
+ uc-upload-list .uc-files-wrapper {
2078
+ display: contents;
2079
+ }
2080
+ uc-upload-list .uc-toolbar {
2081
+ display: flex;
2082
+ gap: 4px;
2083
+ justify-content: space-between;
2084
+ padding: var(--uc-padding);
2085
+ background-color: var(--uc-background);
2086
+ }
2087
+ uc-upload-list .uc-toolbar-spacer {
2088
+ flex: 1;
2089
+ }
2090
+ uc-upload-list uc-drop-area {
2091
+ position: absolute;
2092
+ top: 0;
2093
+ left: 0;
2094
+ width: calc(100% - var(--uc-padding) * 2);
2095
+ height: calc(100% - var(--uc-padding) * 2);
2096
+ margin: var(--uc-padding);
2097
+ border-radius: var(--uc-radius);
2098
+ }
2099
+ uc-upload-list uc-activity-header > .uc-header-text {
2100
+ padding: 0 var(--uc-padding);
2101
+ }
2102
+ uc-upload-list .uc-common-error {
2103
+ border-radius: var(--uc-radius);
2104
+ color: var(--uc-destructive-foreground);
2105
+ background-color: var(--uc-destructive);
2106
+ display: flex;
2107
+ align-items: center;
2108
+ justify-content: center;
2109
+ padding: var(--uc-padding);
2110
+ margin: 4px var(--uc-padding) 0 var(--uc-padding);
2111
+ font-size: 0.925em;
2112
+ }
2113
+ uc-upload-list .uc-add-more-btn uc-icon {
2114
+ display: none;
2115
+ }
2116
+ uc-upload-list[mode=grid] .uc-files {
2117
+ display: flex;
2118
+ flex-wrap: wrap;
2119
+ gap: var(--uc-grid-gap);
2120
+ }
2121
+ uc-upload-list .uc-files .uc-add-more-btn,
2122
+ uc-upload-list[mode=grid] uc-file-item {
2123
+ flex: 0 0 calc((100% - (var(--uc-grid-gap) * (var(--uc-grid-col) - 1))) / var(--uc-grid-col));
2124
+ max-width: calc((100% - (var(--uc-grid-gap) * (var(--uc-grid-col) - 1))) / var(--uc-grid-col));
2125
+ height: var(--uc-grid-preview-image-height);
2126
+ aspect-ratio: var(--uc-grid-aspect-ratio);
2127
+ }
2128
+ uc-upload-list .uc-files .uc-add-more-btn {
2129
+ display: none;
2130
+ }
2131
+ }
2132
+
2133
+ /* src/blocks/UrlSource/url-source.css */
2134
+ @layer uc.components {
2135
+ uc-url-source {
2136
+ display: block;
2137
+ background-color: var(--uc-background);
2138
+ }
2139
+ uc-url-source > .uc-content {
2140
+ display: grid;
2141
+ grid-gap: 4px;
2142
+ grid-template-columns: 1fr min-content;
2143
+ padding: var(--uc-padding);
2144
+ padding-top: 0;
2145
+ }
2146
+ uc-url-source .uc-url-input {
2147
+ display: flex;
2148
+ }
2149
+ }
2150
+
2151
+ /* src/solutions/file-uploader/inline/index.css */
2152
+ @layer uc.solutions {
2153
+ [uc-file-uploader-inline] uc-start-from {
2154
+ height: 100%;
2155
+ container-type: inline-size;
2156
+ }
2157
+ [uc-file-uploader-inline] {
2158
+ --cfg-done-activity: "start-from";
2159
+ --cfg-init-activity: "start-from";
2160
+ flex: 1;
2161
+ }
2162
+ [uc-file-uploader-inline] uc-activity-header::after {
2163
+ width: var(--uc-button-size);
2164
+ height: var(--uc-button-size);
2165
+ content: "";
2166
+ }
2167
+ [uc-file-uploader-inline] uc-activity-header .uc-close-btn {
2168
+ display: none;
2169
+ }
2170
+ [uc-file-uploader-inline] uc-copyright .uc-credits {
2171
+ position: static;
2172
+ }
2173
+ @container (min-width: 500px) {
2174
+ [uc-file-uploader-inline] uc-start-from .uc-content {
2175
+ grid-template-columns: 1fr max-content;
2176
+ height: 100%;
2177
+ }
2178
+ [uc-file-uploader-inline] uc-start-from uc-copyright {
2179
+ grid-column: 2;
2180
+ }
2181
+ [uc-file-uploader-inline] uc-start-from uc-drop-area {
2182
+ grid-row: span 3;
2183
+ }
2184
+ [uc-file-uploader-inline] uc-start-from:has(uc-copyright[hidden]) uc-drop-area {
2185
+ grid-row: span 2;
2186
+ }
2187
+ [uc-file-uploader-inline] uc-start-from:has(.uc-cancel-btn[hidden]) uc-drop-area {
2188
+ grid-row: span 2;
2189
+ }
2190
+ [uc-file-uploader-inline] uc-start-from:has(uc-copyright[hidden]):has(.uc-cancel-btn[hidden]) uc-drop-area {
2191
+ grid-row: span 1;
2192
+ }
2193
+ }
2194
+ }
2195
+
2196
+ /* src/solutions/file-uploader/minimal/index.css */
2197
+ @layer uc.solutions {
2198
+ :where([uc-file-uploader-minimal]) {
2199
+ --cfg-init-activity: "start-from";
2200
+ --cfg-done-activity: "upload-list";
2201
+ position: relative;
2202
+ display: block;
2203
+ }
2204
+ [uc-file-uploader-minimal] > uc-start-from .uc-content {
2205
+ display: flex;
2206
+ flex-direction: column;
2207
+ gap: 4px;
2208
+ padding: 0;
2209
+ overflow: hidden;
2210
+ align-items: center;
2211
+ background-color: transparent;
2212
+ }
2213
+ :where([uc-file-uploader-minimal] > uc-start-from uc-drop-area) {
2214
+ display: flex;
2215
+ position: relative;
2216
+ align-items: center;
2217
+ justify-content: center;
2218
+ width: 100%;
2219
+ min-height: calc(var(--uc-preview-size) + var(--uc-padding) * 2 + 8px);
2220
+ padding: 0;
2221
+ text-align: center;
2222
+ background-color: var(--uc-muted);
2223
+ border-radius: calc(var(--uc-radius) * 1.75);
2224
+ }
2225
+ :where(.uc-contrast) :where([uc-file-uploader-minimal] > uc-start-from uc-drop-area) {
2226
+ background-color: transparent;
2227
+ }
2228
+ :where([uc-file-uploader-minimal] > uc-start-from uc-drop-area)::before {
2229
+ content: "";
2230
+ z-index: -1;
2231
+ width: 100%;
2232
+ height: 100%;
2233
+ position: absolute;
2234
+ background-color: var(--uc-background);
2235
+ }
2236
+ :where([uc-file-uploader-minimal]:has([single]) > uc-start-from uc-drop-area) {
2237
+ aspect-ratio: var(--uc-grid-aspect-ratio);
2238
+ }
2239
+ [uc-file-uploader-minimal] uc-upload-list uc-activity-header {
2240
+ display: none;
2241
+ }
2242
+ [uc-file-uploader-minimal] uc-upload-list > .uc-toolbar {
2243
+ background-color: transparent;
2244
+ }
2245
+ [uc-file-uploader-minimal] uc-upload-list {
2246
+ width: 100%;
2247
+ height: unset;
2248
+ padding: 4px;
2249
+ background-color: var(--uc-background);
2250
+ border: 1px dashed var(--uc-border);
2251
+ border-radius: calc(var(--uc-radius) * 1.75);
2252
+ }
2253
+ [uc-file-uploader-minimal] uc-upload-list .uc-files {
2254
+ padding: 0;
2255
+ }
2256
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar {
2257
+ display: block;
2258
+ padding: 0;
2259
+ }
2260
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-cancel-btn,
2261
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-upload-btn,
2262
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-done-btn {
2263
+ display: none;
2264
+ }
2265
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn {
2266
+ width: 100%;
2267
+ height: calc(var(--uc-preview-size) + var(--uc-padding) * 2);
2268
+ margin-top: 4px;
2269
+ }
2270
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn[disabled] {
2271
+ display: none;
2272
+ }
2273
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn > span {
2274
+ display: none;
2275
+ }
2276
+ [uc-file-uploader-minimal] uc-upload-list .uc-toolbar .uc-add-more-btn > uc-icon {
2277
+ display: flex;
2278
+ }
2279
+ [uc-file-uploader-minimal] uc-file-item uc-progress-bar {
2280
+ top: 0 !important;
2281
+ height: 100% !important;
2282
+ }
2283
+ [uc-file-uploader-minimal] uc-file-item uc-progress-bar .uc-progress {
2284
+ background-color: var(--uc-primary-transparent);
2285
+ border-radius: var(--uc-radius);
2286
+ }
2287
+ [uc-file-uploader-minimal] uc-file-item uc-progress-bar .uc-fake-progress {
2288
+ background-color: var(--uc-primary-transparent);
2289
+ border-radius: var(--uc-radius);
2290
+ }
2291
+ [uc-file-uploader-minimal] uc-upload-list uc-drop-area {
2292
+ width: 100%;
2293
+ height: 100%;
2294
+ margin: 0;
2295
+ border-radius: calc(var(--uc-radius) * 1.75);
2296
+ }
2297
+ [uc-file-uploader-minimal] uc-upload-list .uc-common-error {
2298
+ margin: 4px 0 0;
2299
+ }
2300
+ [uc-file-uploader-minimal] uc-copyright .uc-credits {
2301
+ position: static;
2302
+ }
2303
+ [uc-file-uploader-minimal][mode=grid] uc-upload-list .uc-toolbar .uc-add-more-btn {
2304
+ display: none;
2305
+ }
2306
+ [uc-file-uploader-minimal][mode=grid] uc-upload-list .uc-files .uc-add-more-btn {
2307
+ display: flex;
2308
+ }
2309
+ [uc-file-uploader-minimal][mode=grid] uc-upload-list .uc-files .uc-add-more-btn > span {
2310
+ display: none;
2311
+ }
2312
+ [uc-file-uploader-minimal][mode=grid] uc-upload-list .uc-files .uc-add-more-btn > uc-icon {
2313
+ display: flex;
2314
+ }
2315
+ }
2316
+
2317
+ /* src/blocks/themes/uc-basic/layers.css */
2318
+ @layer uc, uc.base, uc.components, uc.rules, uc.solutions, uc.post-reset;
2319
+
2320
+ /* src/blocks/themes/uc-basic/config.css */
2321
+ @layer uc.base {
2322
+ :where([uc-wgt-common]) {
2323
+ --cfg-init-activity: "start-from";
2324
+ --cfg-done-activity: "";
2325
+ }
2326
+ }
2327
+
2328
+ /* src/blocks/themes/uc-basic/theme.css */
2329
+ @layer uc.base {
2330
+ :where([uc-wgt-common]) {
2331
+ --uc-font-family: system-ui;
2332
+ --uc-font-size: 14px;
2333
+ --uc-line-height: normal;
2334
+ --uc-simple-btn-font-family: system-ui;
2335
+ --uc-simple-btn-font-size: 14px;
2336
+ --uc-button-size: 32px;
2337
+ --uc-preview-size: 32px;
2338
+ --uc-padding: 10px;
2339
+ --uc-radius: 8px;
2340
+ --uc-transition: 0.2s ease;
2341
+ --uc-dialog-width: 430px;
2342
+ --uc-dialog-max-width: 920px;
2343
+ --uc-dialog-max-height: 675px;
2344
+ --uc-simple-btn-padding: 7px 14px;
2345
+ --uc-grid-col: 3;
2346
+ --uc-grid-preview-image-height: auto;
2347
+ --uc-grid-gap: calc(var(--uc-padding) / 2);
2348
+ --uc-grid-aspect-ratio: 1 / 1;
2349
+ --uc-background: var(--uc-background-light);
2350
+ --uc-foreground: var(--uc-foreground-light);
2351
+ --uc-primary: var(--uc-primary-light);
2352
+ --uc-primary-hover: var(--uc-primary-hover-light);
2353
+ --uc-primary-transparent: var(--uc-primary-transparent-light);
2354
+ --uc-primary-foreground: var(--uc-primary-foreground-light);
2355
+ --uc-secondary: var(--uc-secondary-light);
2356
+ --uc-secondary-hover: var(--uc-secondary-hover-light);
2357
+ --uc-secondary-foreground: var(--uc-secondary-foreground-light);
2358
+ --uc-muted: var(--uc-muted-light);
2359
+ --uc-muted-foreground: var(--uc-muted-foreground-light);
2360
+ --uc-destructive: var(--uc-destructive-light);
2361
+ --uc-destructive-foreground: var(--uc-destructive-foreground-light);
2362
+ --uc-border: var(--uc-border-light);
2363
+ --uc-dialog-shadow: var(--uc-dialog-shadow-light);
2364
+ --uc-simple-btn: var(--uc-simple-btn-light);
2365
+ --uc-simple-btn-hover: var(--uc-simple-btn-hover-light);
2366
+ --uc-simple-btn-foreground: var(--uc-simple-btn-foreground-light);
2367
+ }
2368
+ @supports not (color: oklch(0% 0 0)) {
2369
+ :where([uc-wgt-common]) {
2370
+ --uc-primary-rgb-light: 23 75 215;
2371
+ --uc-primary-light: rgb(var(--uc-primary-rgb-light));
2372
+ --uc-primary-hover-light: rgb(var(--uc-primary-rgb-light) / 90%);
2373
+ --uc-primary-transparent-light: rgb(var(--uc-primary-rgb-light) / 10%);
2374
+ --uc-background-light: rgb(255 255 255);
2375
+ --uc-foreground-light: rgb(24 24 24);
2376
+ --uc-primary-foreground-light: #fff;
2377
+ --uc-secondary-light: rgb(24 24 24 / 5%);
2378
+ --uc-secondary-hover-light: rgb(24 24 24 / 8%);
2379
+ --uc-secondary-foreground-light: rgb(24 24 24);
2380
+ --uc-muted-light: rgb(245 245 245);
2381
+ --uc-muted-foreground-light: rgb(113 113 113);
2382
+ --uc-destructive-light: rgb(232 19 20 / 5%);
2383
+ --uc-destructive-foreground-light: rgb(232 19 20);
2384
+ --uc-border-light: rgb(228 228 232);
2385
+ --uc-dialog-shadow-light: 0px 6px 20px rgb(0 0 0 / 10%);
2386
+ --uc-simple-btn-light: rgb(235 235 235);
2387
+ --uc-simple-btn-hover-light: rgb(228 228 228);
2388
+ --uc-simple-btn-foreground-light: rgb(24 24 24);
2389
+ --uc-primary-rgb-dark: 87 154 255;
2390
+ --uc-primary-dark: rgb(var(--uc-primary-rgb-dark));
2391
+ --uc-primary-hover-dark: rgb(var(--uc-primary-rgb-dark) / 90%);
2392
+ --uc-primary-transparent-dark: rgb(var(--uc-primary-rgb-dark) / 7%);
2393
+ --uc-background-dark: rgb(27 27 27);
2394
+ --uc-foreground-dark: rgb(225 225 225);
2395
+ --uc-primary-foreground-dark: rgb(0 0 0);
2396
+ --uc-secondary-dark: rgb(225 225 225 / 7%);
2397
+ --uc-secondary-hover-dark: rgb(225 225 225 / 10%);
2398
+ --uc-secondary-foreground-dark: rgb(225 225 225);
2399
+ --uc-muted-dark: rgb(36 36 36);
2400
+ --uc-muted-foreground-dark: rgb(152 152 152);
2401
+ --uc-destructive-dark: rgb(244 90 79 / 10%);
2402
+ --uc-destructive-foreground-dark: rgb(244 90 79);
2403
+ --uc-border-dark: rgb(61 61 61);
2404
+ --uc-dialog-shadow-dark: 0px 6px 20px rgb(0 0 0 / 25%);
2405
+ --uc-simple-btn-dark: rgb(36 36 36);
2406
+ --uc-simple-btn-hover-dark: rgb(43 43 43);
2407
+ --uc-simple-btn-foreground-dark: rgb(255 255 255);
2408
+ }
2409
+ }
2410
+ @supports (color: oklch(0% 0 0)) {
2411
+ :where([uc-wgt-common]) {
2412
+ --uc-primary-oklch-light: 47% 0.22 264;
2413
+ --uc-primary-light: oklch(var(--uc-primary-oklch-light));
2414
+ --uc-primary-hover-light: oklch(var(--uc-primary-oklch-light) / 90%);
2415
+ --uc-primary-transparent-light: oklch(var(--uc-primary-oklch-light) / 7%);
2416
+ --uc-background-light: oklch(100% 0 0);
2417
+ --uc-foreground-light: oklch(21% 0 0);
2418
+ --uc-primary-foreground-light: oklch(100% 0 0);
2419
+ --uc-secondary-light: oklch(21% 0 0 / 0.05);
2420
+ --uc-secondary-hover-light: oklch(21% 0 0 / 0.08);
2421
+ --uc-secondary-foreground-light: oklch(21% 0 0);
2422
+ --uc-muted-light: oklch(97% 0 0);
2423
+ --uc-muted-foreground-light: oklch(40% 0 0);
2424
+ --uc-destructive-light: oklch(59% 0.235 28.5 / 0.05);
2425
+ --uc-destructive-foreground-light: oklch(59% 0.235 28.5);
2426
+ --uc-border-light: oklch(92% 0 0);
2427
+ --uc-dialog-shadow-light: 0px 6px 20px oklch(0% 0 0 / 0.1);
2428
+ --uc-simple-btn-light: oklch(94% 0 0);
2429
+ --uc-simple-btn-hover-light: oklch(92% 0 0);
2430
+ --uc-simple-btn-foreground-light: oklch(20% 0 0);
2431
+ --uc-primary-oklch-dark: 69% 0.1768 258.4;
2432
+ --uc-primary-dark: oklch(var(--uc-primary-oklch-dark));
2433
+ --uc-primary-hover-dark: oklch(var(--uc-primary-oklch-dark) / 90%);
2434
+ --uc-primary-transparent-dark: oklch(var(--uc-primary-oklch-dark) / 7%);
2435
+ --uc-background-dark: oklch(22% 0 0);
2436
+ --uc-foreground-dark: oklch(91% 0 0);
2437
+ --uc-primary-foreground-dark: oklch(0% 0 0);
2438
+ --uc-secondary-dark: oklch(91% 0 0 / 0.07);
2439
+ --uc-secondary-hover-dark: oklch(91% 0 0 / 0.1);
2440
+ --uc-secondary-foreground-dark: oklch(91% 0 0);
2441
+ --uc-muted-dark: oklch(26% 0 0);
2442
+ --uc-muted-foreground-dark: oklch(68% 0 0);
2443
+ --uc-destructive-dark: oklch(67% 0.191 27.5 / 0.1);
2444
+ --uc-destructive-foreground-dark: oklch(67% 0.191 27.5);
2445
+ --uc-border-dark: oklch(36% 0 0);
2446
+ --uc-dialog-shadow-dark: 0px 6px 20px oklch(0% 0 0 / 0.25);
2447
+ --uc-simple-btn-dark: oklch(26% 0 0);
2448
+ --uc-simple-btn-hover-dark: oklch(29% 0 0);
2449
+ --uc-simple-btn-foreground-dark: oklch(100% 0 0);
2450
+ }
2451
+ }
2452
+ @media only screen and (max-height: 600px) {
2453
+ :where([uc-wgt-common]) {
2454
+ --uc-dialog-max-height: 100%;
2455
+ }
2456
+ }
2457
+ @media only screen and (max-width: 680px) {
2458
+ :where([uc-wgt-common]) {
2459
+ --uc-grid-col: 2;
2460
+ }
2461
+ }
2462
+ @media only screen and (max-width: 430px) {
2463
+ :where([uc-wgt-common]) {
2464
+ --uc-dialog-max-width: 100vw;
2465
+ --uc-dialog-max-height: var(--uploadcare-blocks-window-height);
2466
+ --uc-grid-col: 1;
2467
+ }
2468
+ }
2469
+ @media (prefers-color-scheme: light) {
2470
+ :where([uc-wgt-common]) {
2471
+ --uc-background: var(--uc-background-light);
2472
+ --uc-foreground: var(--uc-foreground-light);
2473
+ --uc-primary: var(--uc-primary-light);
2474
+ --uc-primary-hover: var(--uc-primary-hover-light);
2475
+ --uc-primary-transparent: var(--uc-primary-transparent-light);
2476
+ --uc-primary-foreground: var(--uc-primary-foreground-light);
2477
+ --uc-secondary: var(--uc-secondary-light);
2478
+ --uc-secondary-hover: var(--uc-secondary-hover-light);
2479
+ --uc-secondary-foreground: var(--uc-secondary-foreground-light);
2480
+ --uc-muted: var(--uc-muted-light);
2481
+ --uc-muted-foreground: var(--uc-muted-foreground-light);
2482
+ --uc-destructive: var(--uc-destructive-light);
2483
+ --uc-destructive-foreground: var(--uc-destructive-foreground-light);
2484
+ --uc-border: var(--uc-border-light);
2485
+ --uc-dialog-shadow: var(--uc-dialog-shadow-light);
2486
+ --uc-simple-btn: var(--uc-simple-btn-light);
2487
+ --uc-simple-btn-hover: var(--uc-simple-btn-hover-light);
2488
+ --uc-simple-btn-foreground: var(--uc-simple-btn-foreground-light);
2489
+ }
2490
+ }
2491
+ @media (prefers-color-scheme: dark) {
2492
+ :where([uc-wgt-common]) {
2493
+ --uc-background: var(--uc-background-dark);
2494
+ --uc-foreground: var(--uc-foreground-dark);
2495
+ --uc-primary: var(--uc-primary-dark);
2496
+ --uc-primary-hover: var(--uc-primary-hover-dark);
2497
+ --uc-primary-transparent: var(--uc-primary-transparent-dark);
2498
+ --uc-primary-foreground: var(--uc-primary-foreground-dark);
2499
+ --uc-secondary: var(--uc-secondary-dark);
2500
+ --uc-secondary-hover: var(--uc-secondary-hover-dark);
2501
+ --uc-secondary-foreground: var(--uc-secondary-foreground-dark);
2502
+ --uc-muted: var(--uc-muted-dark);
2503
+ --uc-muted-foreground: var(--uc-muted-foreground-dark);
2504
+ --uc-destructive: var(--uc-destructive-dark);
2505
+ --uc-destructive-foreground: var(--uc-destructive-foreground-dark);
2506
+ --uc-border: var(--uc-border-dark);
2507
+ --uc-dialog-shadow: var(--uc-dialog-shadow-dark);
2508
+ --uc-simple-btn: var(--uc-simple-btn-dark);
2509
+ --uc-simple-btn-hover: var(--uc-simple-btn-hover-dark);
2510
+ --uc-simple-btn-foreground: var(--uc-simple-btn-foreground-dark);
2511
+ }
2512
+ }
2513
+ :where(.uc-light) {
2514
+ --uc-background: var(--uc-background-light);
2515
+ --uc-foreground: var(--uc-foreground-light);
2516
+ --uc-primary: var(--uc-primary-light);
2517
+ --uc-primary-hover: var(--uc-primary-hover-light);
2518
+ --uc-primary-transparent: var(--uc-primary-transparent-light);
2519
+ --uc-primary-foreground: var(--uc-primary-foreground-light);
2520
+ --uc-secondary: var(--uc-secondary-light);
2521
+ --uc-secondary-hover: var(--uc-secondary-hover-light);
2522
+ --uc-secondary-foreground: var(--uc-secondary-foreground-light);
2523
+ --uc-muted: var(--uc-muted-light);
2524
+ --uc-muted-foreground: var(--uc-muted-foreground-light);
2525
+ --uc-destructive: var(--uc-destructive-light);
2526
+ --uc-destructive-foreground: var(--uc-destructive-foreground-light);
2527
+ --uc-border: var(--uc-border-light);
2528
+ --uc-dialog-shadow: var(--uc-dialog-shadow-light);
2529
+ --uc-simple-btn: var(--uc-simple-btn-light);
2530
+ --uc-simple-btn-hover: var(--uc-simple-btn-hover-light);
2531
+ --uc-simple-btn-foreground: var(--uc-simple-btn-foreground-light);
2532
+ }
2533
+ :where(.uc-dark) {
2534
+ --uc-background: var(--uc-background-dark);
2535
+ --uc-foreground: var(--uc-foreground-dark);
2536
+ --uc-primary: var(--uc-primary-dark);
2537
+ --uc-primary-hover: var(--uc-primary-hover-dark);
2538
+ --uc-primary-transparent: var(--uc-primary-transparent-dark);
2539
+ --uc-primary-foreground: var(--uc-primary-foreground-dark);
2540
+ --uc-secondary: var(--uc-secondary-dark);
2541
+ --uc-secondary-hover: var(--uc-secondary-hover-dark);
2542
+ --uc-secondary-foreground: var(--uc-secondary-foreground-dark);
2543
+ --uc-muted: var(--uc-muted-dark);
2544
+ --uc-muted-foreground: var(--uc-muted-foreground-dark);
2545
+ --uc-destructive: var(--uc-destructive-dark);
2546
+ --uc-destructive-foreground: var(--uc-destructive-foreground-dark);
2547
+ --uc-border: var(--uc-border-dark);
2548
+ --uc-dialog-shadow: var(--uc-dialog-shadow-dark);
2549
+ --uc-simple-btn: var(--uc-simple-btn-dark);
2550
+ --uc-simple-btn-hover: var(--uc-simple-btn-hover-dark);
2551
+ --uc-simple-btn-foreground: var(--uc-simple-btn-foreground-dark);
2552
+ }
2553
+ :where(.uc-purple) {
2554
+ --uc-primary-oklch-light: 47% 0.22 300;
2555
+ --uc-primary-oklch-dark: 69% 0.1768 300;
2556
+ }
2557
+ :where(.uc-red) {
2558
+ --uc-primary-oklch-light: 47% 0.21 21;
2559
+ --uc-primary-oklch-dark: 71% 0.1768 21;
2560
+ }
2561
+ :where(.uc-orange) {
2562
+ --uc-primary-oklch-light: 47% 0.1376 51.88;
2563
+ --uc-primary-oklch-dark: 69% 0.1768 51.88;
2564
+ }
2565
+ :where(.uc-green) {
2566
+ --uc-primary-oklch-light: 45% 0.14 130;
2567
+ --uc-primary-oklch-dark: 69% 0.1768 130;
2568
+ }
2569
+ :where(.uc-turquoise) {
2570
+ --uc-primary-oklch-light: 45% 0.0854 174;
2571
+ --uc-primary-oklch-dark: 69% 0.1768 174;
2572
+ }
2573
+ :where(.uc-gray) {
2574
+ --uc-primary-oklch-light: 10% 0 0;
2575
+ --uc-primary-oklch-dark: 97% 0 0;
2576
+ }
2577
+ :where(.uc-contrast) {
2578
+ --uc-border-light: oklch(50% 0 0);
2579
+ --uc-border-dark: oklch(50% 0 0);
2580
+ --uc-muted-light: oklch(98% 0 0);
2581
+ --uc-muted-dark: oklch(16% 0 0);
2582
+ --uc-muted-foreground-light: oklch(20% 0 0);
2583
+ --uc-muted-foreground-dark: oklch(80% 0 0);
2584
+ --uc-background-light: oklch(100% 0 0);
2585
+ --uc-foreground-light: oklch(0% 0 0);
2586
+ --uc-background-dark: oklch(10% 0 0);
2587
+ --uc-foreground-dark: oklch(100% 0 0);
2588
+ }
2589
+ }
2590
+
2591
+ /* src/blocks/themes/uc-basic/common.css */
2592
+ @layer uc.base {
2593
+ :where([uc-wgt-common]) {
2594
+ color: var(--uc-foreground);
2595
+ font-size: var(--uc-font-size);
2596
+ line-height: var(--uc-line-height);
2597
+ font-family: var(--uc-font-family);
2598
+ }
2599
+ :where([uc-wgt-common]) * {
2600
+ box-sizing: border-box;
2601
+ }
2602
+ :where([uc-wgt-common]) button {
2603
+ display: flex;
2604
+ align-items: center;
2605
+ justify-content: center;
2606
+ height: var(--uc-button-size);
2607
+ padding-right: 14px;
2608
+ padding-left: 14px;
2609
+ font-size: 1em;
2610
+ font-family: inherit;
2611
+ white-space: nowrap;
2612
+ border: none;
2613
+ border-radius: var(--uc-radius);
2614
+ cursor: pointer;
2615
+ user-select: none;
2616
+ transition: background-color var(--uc-transition);
2617
+ }
2618
+ :where([uc-wgt-common]) button:focus-visible {
2619
+ outline-offset: 2px;
2620
+ }
2621
+ :where([uc-wgt-common]) button.uc-primary-btn {
2622
+ color: var(--uc-primary-foreground);
2623
+ background-color: var(--uc-primary);
2624
+ }
2625
+ :where([uc-wgt-common]) button.uc-primary-btn:hover {
2626
+ background-color: var(--uc-primary-hover);
2627
+ }
2628
+ :where([uc-wgt-common]) button.uc-secondary-btn {
2629
+ color: var(--uc-secondary-foreground);
2630
+ background-color: var(--uc-secondary);
2631
+ }
2632
+ :where([uc-wgt-common]) button.uc-secondary-btn:hover {
2633
+ background-color: var(--uc-secondary-hover);
2634
+ }
2635
+ :where([uc-wgt-common].uc-contrast) button.uc-secondary-btn {
2636
+ border: 1px solid var(--uc-border);
2637
+ }
2638
+ :where([uc-wgt-common]) button.uc-mini-btn {
2639
+ height: var(--uc-button-size);
2640
+ padding: 0;
2641
+ background-color: transparent;
2642
+ color: var(--uc-secondary-foreground);
2643
+ }
2644
+ :where([uc-wgt-common]) button.uc-mini-btn:hover {
2645
+ background-color: var(--uc-secondary);
2646
+ }
2647
+ :where([uc-wgt-common]) :is(button[disabled], button.uc-primary-btn[disabled], button.uc-secondary-btn[disabled]) {
2648
+ opacity: 0.5;
2649
+ pointer-events: none;
2650
+ }
2651
+ :where([uc-wgt-common]) a {
2652
+ color: var(--uc-primary);
2653
+ text-decoration: none;
2654
+ }
2655
+ :where([uc-wgt-common]) a[disabled] {
2656
+ pointer-events: none;
2657
+ }
2658
+ :where([uc-wgt-common]) input[type=text] {
2659
+ display: flex;
2660
+ width: 100%;
2661
+ height: var(--uc-button-size);
2662
+ padding-right: 10px;
2663
+ padding-left: 10px;
2664
+ color: var(--uc-foreground);
2665
+ font-size: 1em;
2666
+ font-family: inherit;
2667
+ background-color: var(--uc-background);
2668
+ border: 1px solid var(--uc-border);
2669
+ outline: 1px solid transparent;
2670
+ border-radius: var(--uc-radius);
2671
+ transition: border-color var(--uc-transition), outline-color var(--uc-transition);
2672
+ }
2673
+ :where([uc-wgt-common]) input[type=text]::placeholder {
2674
+ color: var(--uc-muted-foreground);
2675
+ }
2676
+ :where([uc-wgt-common]) input[type=text]:focus {
2677
+ outline-color: var(--uc-primary-hover);
2678
+ border-color: var(--uc-primary-hover);
2679
+ }
2680
+ :where([uc-wgt-common]) input[disabled] {
2681
+ opacity: 0.6;
2682
+ pointer-events: none;
2683
+ }
2684
+ :where([uc-wgt-common]) uc-select[disabled],
2685
+ :where([uc-wgt-common]) select[disabled] {
2686
+ opacity: 0.6;
2687
+ pointer-events: none;
2688
+ }
2689
+ }
2690
+
2691
+ /* src/blocks/themes/uc-basic/rules.css */
2692
+ @layer uc.rules {
2693
+ :where([uc-wgt-common]) [hidden] {
2694
+ display: none;
2695
+ }
2696
+ :where([uc-wgt-common]) [activity]:not([active], .active) {
2697
+ display: none;
2698
+ }
2699
+ :where([uc-wgt-common]) dialog:not([open]) [activity] {
2700
+ display: none;
2701
+ }
2702
+ }
2703
+
2704
+ /* src/blocks/themes/uc-basic/post-reset.css */
2705
+ @layer uc.post-reset {
2706
+ :where([uc-wgt-common]) uc-source-btn[type] {
2707
+ all: unset;
2708
+ }
2709
+ }
2710
+
2711
+ /* src/blocks/themes/uc-basic/index.css */
2712
+
2713
+ /* src/solutions/file-uploader/regular/index.css */