@swiftwc/ui 0.0.0-dev.8 → 0.0.0-dev.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/buses/alert-dialog.d.ts +2 -0
- package/generated/buses/alert-dialog.js +1 -0
- package/generated/buses/confirmation-dialog.d.ts +2 -0
- package/generated/buses/confirmation-dialog.js +1 -0
- package/generated/buses/index.d.ts +6 -0
- package/generated/buses/index.js +6 -0
- package/generated/buses/lifecycle-observer.d.ts +2 -0
- package/generated/buses/lifecycle-observer.js +1 -0
- package/generated/client/index.d.ts +21 -10
- package/generated/client/index.js +177 -194
- package/generated/components/alert-dialog.d.ts +8 -0
- package/generated/components/alert-dialog.js +99 -0
- package/generated/components/body-view.js +5 -2
- package/generated/components/bordered-button.d.ts +10 -0
- package/generated/components/bordered-button.js +39 -3
- package/generated/components/bordered-prominent-button.d.ts +10 -0
- package/generated/components/bordered-prominent-button.js +39 -3
- package/generated/components/borderless-button.d.ts +9 -1
- package/generated/components/borderless-button.js +32 -11
- package/generated/components/color-scheme.d.ts +7 -0
- package/generated/components/color-scheme.js +54 -0
- package/generated/components/confirmation-dialog.d.ts +1 -1
- package/generated/components/confirmation-dialog.js +43 -32
- package/generated/components/content-unavailable-view.d.ts +24 -0
- package/generated/components/content-unavailable-view.js +81 -0
- package/generated/components/date-picker.d.ts +2 -12
- package/generated/components/date-picker.js +96 -65
- package/generated/components/disclosure-group.d.ts +5 -0
- package/generated/components/disclosure-group.js +18 -7
- package/generated/components/fine-tooltip.d.ts +7 -0
- package/generated/components/fine-tooltip.js +107 -0
- package/generated/components/form-view.d.ts +3 -0
- package/generated/components/form-view.js +8 -3
- package/generated/components/glass-button.d.ts +10 -0
- package/generated/components/glass-button.js +39 -3
- package/generated/components/glass-prominent-button.d.ts +10 -0
- package/generated/components/glass-prominent-button.js +39 -3
- package/generated/components/h-stack.d.ts +14 -0
- package/generated/components/h-stack.js +23 -0
- package/generated/components/image-view.d.ts +9 -0
- package/generated/components/image-view.js +64 -0
- package/generated/components/index.d.ts +11 -3
- package/generated/components/index.js +11 -3
- package/generated/components/label-view.d.ts +6 -1
- package/generated/components/label-view.js +40 -60
- package/generated/components/labeled-content.d.ts +9 -0
- package/generated/components/labeled-content.js +116 -0
- package/generated/components/list-view.d.ts +3 -0
- package/generated/components/list-view.js +20 -17
- package/generated/components/menu-view.d.ts +4 -1
- package/generated/components/menu-view.js +60 -51
- package/generated/components/navigation-large-title.js +9 -5
- package/generated/components/navigation-split-view.d.ts +4 -1
- package/generated/components/navigation-split-view.js +13 -6
- package/generated/components/navigation-stack.d.ts +4 -1
- package/generated/components/navigation-stack.js +16 -9
- package/generated/components/navigation-title.d.ts +1 -1
- package/generated/components/navigation-title.js +58 -55
- package/generated/components/picker-view.d.ts +32 -4
- package/generated/components/picker-view.js +924 -234
- package/generated/components/plain-button.js +5 -3
- package/generated/components/progress-view.d.ts +13 -0
- package/generated/components/progress-view.js +120 -0
- package/generated/components/screen-view.js +3 -1
- package/generated/components/scroll-view-proxy.d.ts +8 -0
- package/generated/components/scroll-view-proxy.js +17 -0
- package/generated/components/scroll-view.d.ts +1 -1
- package/generated/components/scroll-view.js +101 -85
- package/generated/components/search-view.d.ts +7 -0
- package/generated/components/search-view.js +30 -0
- package/generated/components/section-view.d.ts +1 -1
- package/generated/components/section-view.js +35 -30
- package/generated/components/sheet-view.d.ts +1 -2
- package/generated/components/sheet-view.js +32 -39
- package/generated/components/sidebar-toggle.js +44 -66
- package/generated/components/sidebar-view.js +13 -8
- package/generated/components/sticky-container.js +8 -4
- package/generated/components/tab-bar.d.ts +3 -0
- package/generated/components/tab-bar.js +20 -10
- package/generated/components/tab-item.js +24 -13
- package/generated/components/tab-view.js +25 -17
- package/generated/components/table-view.d.ts +5 -0
- package/generated/components/table-view.js +55 -77
- package/generated/components/text-field.d.ts +2 -2
- package/generated/components/text-field.js +95 -88
- package/generated/components/toggle-view.d.ts +28 -0
- package/generated/components/toggle-view.js +224 -0
- package/generated/components/tool-bar-item-group.js +21 -4
- package/generated/components/tool-bar-item.d.ts +4 -1
- package/generated/components/tool-bar-item.js +57 -10
- package/generated/components/tool-bar.d.ts +12 -0
- package/generated/components/tool-bar.js +27 -11
- package/generated/components/v-keyboard.d.ts +3 -1
- package/generated/components/v-keyboard.js +12 -6
- package/generated/components/v-stack.d.ts +12 -0
- package/generated/components/v-stack.js +17 -2
- package/generated/css/index.css +2533 -941
- package/generated/events/alert-dialog.d.ts +8 -0
- package/generated/events/alert-dialog.js +1 -0
- package/generated/events/confirmation-dialog.d.ts +2 -2
- package/generated/events/index.d.ts +2 -0
- package/generated/events/index.js +2 -0
- package/generated/events/picker-view.d.ts +7 -0
- package/generated/events/scroll-view.js +4 -0
- package/generated/events/tab-view.d.ts +6 -2
- package/generated/events/text-field.js +3 -0
- package/generated/events/toggle-view.d.ts +9 -0
- package/generated/events/toggle-view.js +4 -0
- package/generated/i18n/index.d.ts +20 -10
- package/generated/i18n/index.js +82 -54
- package/generated/i18n/locales/el.d.ts +16 -0
- package/generated/i18n/locales/el.js +16 -0
- package/generated/i18n/locales/en.d.ts +16 -0
- package/generated/i18n/locales/en.js +16 -0
- package/generated/i18n/locales/index.d.ts +4 -0
- package/generated/i18n/locales/index.js +4 -0
- package/generated/internal/class/css-style-observer.js +3 -2
- package/generated/internal/class/form-associated-base.d.ts +0 -4
- package/generated/internal/class/form-associated-base.js +23 -38
- package/generated/internal/class/mutation-observer-set.d.ts +9 -0
- package/generated/internal/class/mutation-observer-set.js +42 -0
- package/generated/internal/class/mutation-observer-singleton.js +18 -0
- package/generated/internal/class/navigation-view.d.ts +1 -1
- package/generated/internal/class/navigation-view.js +38 -43
- package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
- package/generated/internal/decorators/adaptive-slot.js +50 -0
- package/generated/internal/decorators/custom-element.d.ts +1 -1
- package/generated/internal/decorators/custom-element.js +2 -1
- package/generated/internal/decorators/index.d.ts +6 -0
- package/generated/internal/decorators/index.js +6 -0
- package/generated/internal/decorators/microtask-on-connected.d.ts +39 -0
- package/generated/internal/decorators/microtask-on-connected.js +67 -0
- package/generated/internal/privateNamespace.d.ts +10 -0
- package/generated/internal/privateNamespace.js +168 -1
- package/generated/internal/utils/cash/index.d.ts +4 -3
- package/generated/internal/utils/cash/index.js +6 -4
- package/generated/internal/utils/dev-flags.d.ts +3 -0
- package/generated/internal/utils/dev-flags.js +5 -0
- package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
- package/generated/internal/utils/ensure-placeholder.js +55 -0
- package/generated/internal/utils/index.d.ts +7 -2
- package/generated/internal/utils/index.js +9 -2
- package/generated/internal/utils/is-inside.d.ts +1 -0
- package/generated/internal/utils/is-inside.js +4 -0
- package/generated/internal/utils/list-active.js +67 -12
- package/generated/internal/utils/render-label-icon.d.ts +2 -0
- package/generated/internal/utils/render-label-icon.js +19 -0
- package/generated/internal/utils/render-label-title.d.ts +2 -0
- package/generated/internal/utils/render-label-title.js +16 -0
- package/generated/internal/utils/render-label.d.ts +1 -0
- package/generated/internal/utils/render-label.js +19 -0
- package/generated/internal/utils/touch-glass.js +5 -5
- package/generated/namespace-browser/base.d.ts +12 -3
- package/generated/namespace-browser/base.js +41 -18
- package/generated/namespace-browser/event.d.ts +10 -0
- package/generated/namespace-browser/event.js +1 -0
- package/generated/snapshot/index.d.ts +3 -1
- package/generated/snapshot/index.js +25 -2
- package/generated/tpl/html.d.ts +5 -0
- package/generated/tpl/html.js +3 -0
- package/generated/tpl/index.d.ts +4 -0
- package/generated/tpl/index.js +4 -0
- package/generated/tpl/render.d.ts +2 -0
- package/generated/tpl/render.js +132 -0
- package/package.json +18 -4
- package/scss/_components.scss +14 -0
- package/scss/_functions.scss +10 -0
- package/scss/_mixins.scss +4 -0
- package/scss/_transitions.scss +6 -1
- package/scss/_vars.scss +9 -2
- package/scss/base/_layout.scss +17 -7
- package/scss/base/_reboot.scss +34 -1
- package/scss/base/_root.scss +117 -114
- package/scss/colors/_index.scss +304 -85
- package/scss/components/_alert-dialog.scss +111 -0
- package/scss/components/_bordered-button.scss +35 -0
- package/scss/components/_bordered-prominent-button.scss +45 -0
- package/scss/components/_borderless-button.scss +25 -0
- package/scss/components/_confirmation-dialog.scss +41 -49
- package/scss/components/_content-unavailable-view.scss +56 -0
- package/scss/components/_date-picker.scss +15 -15
- package/scss/components/_detail-placeholder.scss +1 -3
- package/scss/components/_disclosure-group.scss +84 -33
- package/scss/components/_fine-tooltip.scss +84 -0
- package/scss/components/_form-view.scss +58 -20
- package/scss/components/_glass-button.scss +35 -0
- package/scss/components/_glass-prominent-button.scss +46 -0
- package/scss/components/_group-box.scss +27 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +21 -15
- package/scss/components/_image-view.scss +20 -0
- package/scss/components/_index.scss +40 -20
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +94 -110
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +59 -1
- package/scss/components/_list-view.scss +65 -25
- package/scss/components/_menu-view.scss +95 -60
- package/scss/components/_navigation-large-title.scss +17 -0
- package/scss/components/_navigation-split-view.scss +3 -3
- package/scss/components/_picker-view.scss +259 -59
- package/scss/components/_plain-button.scss +7 -0
- package/scss/components/_progress-view.scss +98 -0
- package/scss/components/_scroll-view-proxy.scss +22 -20
- package/scss/components/_scroll-view.scss +4 -0
- package/scss/components/_search-view.scss +22 -0
- package/scss/components/_section-view.scss +23 -22
- package/scss/components/_sheet-view.scss +16 -6
- package/scss/components/_sidebar-toggle.scss +1 -4
- package/scss/components/_sticky-container.scss +1 -1
- package/scss/components/_tab-bar.scss +17 -3
- package/scss/components/_tab-view.scss +4 -2
- package/scss/components/_table-column.scss +2 -0
- package/scss/components/_table-row.scss +69 -1
- package/scss/components/_table-view.scss +22 -14
- package/scss/components/_text-field.scss +37 -17
- package/scss/components/_toggle-view.scss +112 -0
- package/scss/components/_tool-bar-item.scss +34 -82
- package/scss/components/_tool-bar.scss +77 -57
- package/scss/components/_v-stack.scss +9 -2
- package/scss/final/_touch-glass.scss +24 -0
- package/scss/mixins/_button.scss +44 -0
- package/scss/mixins/_color.scss +16 -0
- package/scss/mixins/_dialog.scss +1 -0
- package/scss/mixins/_index.scss +64 -2
- package/scss/placeholders/_buttons.scss +44 -10
- package/scss/placeholders/_lists.scss +133 -126
- package/scss/transitions/_alert-dialog.scss +18 -0
- package/scss/transitions/_confirmation-dialog.scss +8 -0
- package/scss/transitions/_fine-tooltip.scss +21 -0
- package/scss/transitions/_menu-view.scss +17 -15
- package/scss/transitions/_progress-view.scss +23 -0
- package/scss/transitions/_sheet-view.scss +30 -0
- package/scss/transitions/_tab-bar.scss +6 -5
- package/scss/utils/_frame.scss +42 -0
- package/scss/utils/_index.scss +67 -52
- package/scss/utils/_stacks.scss +56 -73
- package/web-components.html-data/en.json +623 -24
- package/generated/confirmation-dialog/index.d.ts +0 -1
- package/generated/confirmation-dialog/index.js +0 -1
- package/generated/lifecycle-observer/index.d.ts +0 -1
- package/generated/lifecycle-observer/index.js +0 -1
- package/scss/transitions/_dialog.scss +0 -28
package/scss/colors/_index.scss
CHANGED
|
@@ -195,8 +195,8 @@ $color-tokens: (
|
|
|
195
195
|
),
|
|
196
196
|
media: (
|
|
197
197
|
base: (
|
|
198
|
-
light: oklch(0.
|
|
199
|
-
dark: oklch(0.
|
|
198
|
+
light: oklch(0.9399 0.0298 245.27),
|
|
199
|
+
dark: oklch(0.1602 0.0312 241.89),
|
|
200
200
|
),
|
|
201
201
|
),
|
|
202
202
|
),
|
|
@@ -250,8 +250,173 @@ $color-tokens: (
|
|
|
250
250
|
),
|
|
251
251
|
media: (
|
|
252
252
|
base: (
|
|
253
|
-
light: oklch(0.
|
|
254
|
-
dark: oklch(0.
|
|
253
|
+
light: oklch(0.9451 0.0312 23.18),
|
|
254
|
+
dark: oklch(0.1692 0.0381 24.05),
|
|
255
|
+
),
|
|
256
|
+
),
|
|
257
|
+
),
|
|
258
|
+
green: (
|
|
259
|
+
props: (
|
|
260
|
+
inherits: true,
|
|
261
|
+
),
|
|
262
|
+
media: (
|
|
263
|
+
base: (
|
|
264
|
+
light: oklch(0.7303 0.1944 147.44),
|
|
265
|
+
dark: oklch(0.7556 0.2082 146.98),
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
),
|
|
269
|
+
green2: (
|
|
270
|
+
props: (
|
|
271
|
+
inherits: true,
|
|
272
|
+
),
|
|
273
|
+
media: (
|
|
274
|
+
base: (
|
|
275
|
+
light: oklch(0.8224 0.1298 162.01),
|
|
276
|
+
dark: oklch(0.4879 0.1248 152),
|
|
277
|
+
),
|
|
278
|
+
),
|
|
279
|
+
),
|
|
280
|
+
green3: (
|
|
281
|
+
props: (
|
|
282
|
+
inherits: true,
|
|
283
|
+
),
|
|
284
|
+
media: (
|
|
285
|
+
base: (
|
|
286
|
+
light: oklch(0.906 0.0681 165.21),
|
|
287
|
+
dark: oklch(0.3559 0.0789 157.3),
|
|
288
|
+
),
|
|
289
|
+
),
|
|
290
|
+
),
|
|
291
|
+
green4: (
|
|
292
|
+
props: (
|
|
293
|
+
inherits: true,
|
|
294
|
+
),
|
|
295
|
+
media: (
|
|
296
|
+
base: (
|
|
297
|
+
light: oklch(0.9323 0.0504 166.1),
|
|
298
|
+
dark: oklch(0.3156 0.0607 160.27),
|
|
299
|
+
),
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
green5: (
|
|
303
|
+
props: (
|
|
304
|
+
inherits: true,
|
|
305
|
+
),
|
|
306
|
+
media: (
|
|
307
|
+
base: (
|
|
308
|
+
light: oklch(0.9558 0.0353 166.1),
|
|
309
|
+
dark: oklch(0.2632 0.0425 160.27),
|
|
310
|
+
),
|
|
311
|
+
),
|
|
312
|
+
),
|
|
313
|
+
orange: (
|
|
314
|
+
props: (
|
|
315
|
+
inherits: true,
|
|
316
|
+
),
|
|
317
|
+
media: (
|
|
318
|
+
base: (
|
|
319
|
+
light: oklch(0.7533 0.172 55.72),
|
|
320
|
+
dark: oklch(0.7619 0.167 57.05),
|
|
321
|
+
),
|
|
322
|
+
),
|
|
323
|
+
),
|
|
324
|
+
orange2: (
|
|
325
|
+
props: (
|
|
326
|
+
inherits: true,
|
|
327
|
+
),
|
|
328
|
+
media: (
|
|
329
|
+
base: (
|
|
330
|
+
light: oklch(0.8548 0.111 68.86),
|
|
331
|
+
dark: oklch(0.4468 0.0914 61.4),
|
|
332
|
+
),
|
|
333
|
+
),
|
|
334
|
+
),
|
|
335
|
+
orange3: (
|
|
336
|
+
props: (
|
|
337
|
+
inherits: true,
|
|
338
|
+
),
|
|
339
|
+
media: (
|
|
340
|
+
base: (
|
|
341
|
+
light: oklch(0.9268 0.0611 75.74),
|
|
342
|
+
dark: oklch(0.2823 0.051 67.31),
|
|
343
|
+
),
|
|
344
|
+
),
|
|
345
|
+
),
|
|
346
|
+
orange4: (
|
|
347
|
+
props: (
|
|
348
|
+
inherits: true,
|
|
349
|
+
),
|
|
350
|
+
media: (
|
|
351
|
+
base: (
|
|
352
|
+
light: oklch(0.9443 0.045 74.78),
|
|
353
|
+
dark: oklch(0.2389 0.04 75.03),
|
|
354
|
+
),
|
|
355
|
+
),
|
|
356
|
+
),
|
|
357
|
+
orange5: (
|
|
358
|
+
props: (
|
|
359
|
+
inherits: true,
|
|
360
|
+
),
|
|
361
|
+
media: (
|
|
362
|
+
base: (
|
|
363
|
+
light: oklch(0.9651 0.0315 74.78),
|
|
364
|
+
dark: oklch(0.1983 0.028 75.03),
|
|
365
|
+
),
|
|
366
|
+
),
|
|
367
|
+
),
|
|
368
|
+
purple: (
|
|
369
|
+
props: (
|
|
370
|
+
inherits: true,
|
|
371
|
+
),
|
|
372
|
+
media: (
|
|
373
|
+
base: (
|
|
374
|
+
light: oklch(0.6167 0.2607 326),
|
|
375
|
+
dark: oklch(0.6586 0.2795 325.94),
|
|
376
|
+
),
|
|
377
|
+
),
|
|
378
|
+
),
|
|
379
|
+
purple2: (
|
|
380
|
+
props: (
|
|
381
|
+
inherits: true,
|
|
382
|
+
),
|
|
383
|
+
media: (
|
|
384
|
+
base: (
|
|
385
|
+
light: oklch(0.7807 0.1464 325.64),
|
|
386
|
+
dark: oklch(0.443 0.1667 326.12),
|
|
387
|
+
),
|
|
388
|
+
),
|
|
389
|
+
),
|
|
390
|
+
purple3: (
|
|
391
|
+
props: (
|
|
392
|
+
inherits: true,
|
|
393
|
+
),
|
|
394
|
+
media: (
|
|
395
|
+
base: (
|
|
396
|
+
light: oklch(0.8873 0.0728 324.7),
|
|
397
|
+
dark: oklch(0.3288 0.0959 325.84),
|
|
398
|
+
),
|
|
399
|
+
),
|
|
400
|
+
),
|
|
401
|
+
purple4: (
|
|
402
|
+
props: (
|
|
403
|
+
inherits: true,
|
|
404
|
+
),
|
|
405
|
+
media: (
|
|
406
|
+
base: (
|
|
407
|
+
light: oklch(0.9184 0.0518 323.99),
|
|
408
|
+
dark: oklch(0.2981 0.0724 325.02),
|
|
409
|
+
),
|
|
410
|
+
),
|
|
411
|
+
),
|
|
412
|
+
purple5: (
|
|
413
|
+
props: (
|
|
414
|
+
inherits: true,
|
|
415
|
+
),
|
|
416
|
+
media: (
|
|
417
|
+
base: (
|
|
418
|
+
light: oklch(0.9455 0.0358 323.99),
|
|
419
|
+
dark: oklch(0.2454 0.0522 323.99),
|
|
255
420
|
),
|
|
256
421
|
),
|
|
257
422
|
),
|
|
@@ -417,6 +582,12 @@ $colors: map.merge(
|
|
|
417
582
|
inherits: true;
|
|
418
583
|
}
|
|
419
584
|
|
|
585
|
+
@property --clear {
|
|
586
|
+
syntax: '<color>';
|
|
587
|
+
initial-value: oklch(0 0 0 / 0%); // ✅
|
|
588
|
+
inherits: true;
|
|
589
|
+
}
|
|
590
|
+
|
|
420
591
|
@layer #{vars.$colors-layer} {
|
|
421
592
|
:root {
|
|
422
593
|
// --background: light-dark(oklch(1 0 0), oklch(0 0 0)); // ✅
|
|
@@ -439,14 +610,15 @@ $colors: map.merge(
|
|
|
439
610
|
// --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
440
611
|
// }
|
|
441
612
|
|
|
442
|
-
:where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog']) {
|
|
613
|
+
:where([is='sheet-view'], [is='full-screen'], [is='confirmation-dialog'], [is='alert-dialog']) {
|
|
443
614
|
// modify background/secondarybg/tertiarybg etc for ELEVATED STYLES!!
|
|
444
615
|
// ANCHOR: level 1
|
|
445
616
|
--face: var(--background); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
446
617
|
// --face2: var(--secondaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
447
618
|
// --face3: var(--tertiaryBackground); // IMPORTANT: redeclare references scope or it WONT pick up!
|
|
448
619
|
|
|
449
|
-
|
|
620
|
+
// FIXME: feat-sheet 1/3
|
|
621
|
+
--background: var(--secondaryBackground); //light-dark(var(--secondary-bg), var(--secondary-bg-dark));
|
|
450
622
|
// --face: light-dark(var(--secondary-bg), var(--secondary-bg-dark));
|
|
451
623
|
|
|
452
624
|
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
@@ -457,10 +629,8 @@ $colors: map.merge(
|
|
|
457
629
|
// --canvastext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
458
630
|
|
|
459
631
|
@include mixins.if-2col-split-view-fits {
|
|
460
|
-
--face: light-dark(
|
|
461
|
-
|
|
462
|
-
var(--liquid-glass-bg-dark)
|
|
463
|
-
); //light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
632
|
+
--face: light-dark(var(--liquid-glass-bg), var(--liquid-glass-bg-dark));
|
|
633
|
+
//light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
464
634
|
|
|
465
635
|
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
466
636
|
}
|
|
@@ -468,10 +638,8 @@ $colors: map.merge(
|
|
|
468
638
|
|
|
469
639
|
tab-view > [is='sidebar-view'] {
|
|
470
640
|
:where(&) {
|
|
471
|
-
--face: light-dark(
|
|
472
|
-
|
|
473
|
-
var(--liquid-glass-bg-dark)
|
|
474
|
-
); //light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
641
|
+
--face: light-dark(var(--liquid-glass-bg), var(--liquid-glass-bg-dark));
|
|
642
|
+
//light-dark(oklch(var(--sidebar-bg-lch) / var(--sidebar-bg-alpha)), oklch(var(--sidebar-bg-lch-dark) / var(--sidebar-bg-alpha-dark)));
|
|
475
643
|
// --text: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
476
644
|
}
|
|
477
645
|
|
|
@@ -487,38 +655,65 @@ $colors: map.merge(
|
|
|
487
655
|
}
|
|
488
656
|
|
|
489
657
|
:where([is='tab-bar']) {
|
|
490
|
-
--toolbaritemtext: light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
658
|
+
--toolbaritemtext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
659
|
+
--toolbaritemhighlighttext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
660
|
+
--toolbaritemactivetext: var(--text); //light-dark(var(--secondary-text), var(--secondary-text-dark));
|
|
491
661
|
}
|
|
492
662
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
663
|
+
tool-bar-item,
|
|
664
|
+
tool-bar-item-group {
|
|
665
|
+
// navigation-split-view sidebar-toggle { // NOTE: removed since all s-toggles alreay have a toolbaritem inside
|
|
666
|
+
:where(&) {
|
|
667
|
+
//, list-view) {
|
|
668
|
+
//, [is='form-view'] BREAKS sidebar
|
|
669
|
+
--toolbaritemface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
670
|
+
--toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
671
|
+
--toolbaritemactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
672
|
+
// --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark)); //light-dark(oklch(var(--tint-lch) / 1), oklch(var(--tint-lch-dark) / 1));
|
|
673
|
+
|
|
674
|
+
// @media (pointer: fine) {
|
|
675
|
+
// --toolbaritemface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
676
|
+
// --toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
677
|
+
// --toolbaritemactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
678
|
+
// // --toolbaritemtext: light-dark(var(--primary-label), var(--primary-label-dark));
|
|
679
|
+
// }
|
|
680
|
+
}
|
|
507
681
|
}
|
|
508
682
|
|
|
509
|
-
[
|
|
683
|
+
tool-bar-item[tint]:not(tool-bar-item-group tool-bar-item),
|
|
684
|
+
tool-bar-item-group[tint],
|
|
685
|
+
tool-bar-item-group[tint] > tool-bar-item:not([tint]) {
|
|
510
686
|
:where(&) {
|
|
511
|
-
--
|
|
512
|
-
--
|
|
687
|
+
// --toolbaritemtext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
688
|
+
// --toolbaritemhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
689
|
+
// --toolbaritemactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
690
|
+
|
|
691
|
+
@include mixins.wire-tinted-glass(toolbaritem);
|
|
692
|
+
|
|
693
|
+
> button {
|
|
694
|
+
@include mixins.takeover-color-vars(toolbaritem);
|
|
695
|
+
// --secondary: var(--btntext);
|
|
696
|
+
// --blue: var(--btntext);
|
|
697
|
+
|
|
698
|
+
// --accentColorEffective: var(--btntext);
|
|
699
|
+
// --accentColor: var(--btntext);
|
|
700
|
+
}
|
|
513
701
|
}
|
|
514
702
|
}
|
|
515
703
|
|
|
516
|
-
|
|
704
|
+
// [is='tab-bar'] [is='tab-item'] {
|
|
705
|
+
// :where(&) {
|
|
706
|
+
// --toolbaritemhighlighttext: yellow;
|
|
707
|
+
// --toolbaritemactivetext: chocolate;
|
|
708
|
+
// }
|
|
709
|
+
// }
|
|
710
|
+
|
|
711
|
+
sidebar-toggle {
|
|
517
712
|
// tool-bar-item,
|
|
518
713
|
// [is='tab-item'],
|
|
519
714
|
// list-view > button,
|
|
520
715
|
// this is temp for toolbar look aboove tables
|
|
521
|
-
menu-view {
|
|
716
|
+
// menu-view {
|
|
522
717
|
// [is='disclosure-group'] {
|
|
523
718
|
:where(&) {
|
|
524
719
|
--toolbaritemhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
@@ -528,15 +723,46 @@ $colors: map.merge(
|
|
|
528
723
|
|
|
529
724
|
menu-view {
|
|
530
725
|
:where(&) {
|
|
531
|
-
--
|
|
532
|
-
|
|
726
|
+
--menuitemhighlightface: light-dark(var(--clear), var(--clear));
|
|
727
|
+
|
|
728
|
+
--menuitemactiveface: light-dark(oklch(0 0 0 / 20%), oklch(1 0 0 / 20%));
|
|
729
|
+
|
|
730
|
+
@media (pointer: fine) {
|
|
731
|
+
--menuitemhighlightface: light-dark(var(--accentColor), var(--accentColor));
|
|
732
|
+
|
|
733
|
+
--menuitemhighlighttext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
734
|
+
|
|
735
|
+
--menuitemactivetext: light-dark(oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none), oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none));
|
|
736
|
+
|
|
737
|
+
--menuitemactiveface: light-dark(
|
|
738
|
+
oklch(from var(--accentColor) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h),
|
|
739
|
+
oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.2), c) h)
|
|
740
|
+
); //color-mix(in oklch, black 10%, var(--accentColor)); //color-mix(in oklch, white 10%, var(--accentColor));
|
|
741
|
+
}
|
|
533
742
|
|
|
534
|
-
--
|
|
535
|
-
--
|
|
743
|
+
--menusummaryhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
744
|
+
--menusummaryactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
536
745
|
}
|
|
746
|
+
|
|
747
|
+
tool-bar-item > picker-view > &,
|
|
748
|
+
tool-bar-item > & {
|
|
749
|
+
:where(&) {
|
|
750
|
+
--menusummaryface: var(--toolbaritemface);
|
|
751
|
+
--menusummaryhighlightface: var(--toolbaritemhighlightface);
|
|
752
|
+
--menusummaryactiveface: var(--toolbaritemactiveface);
|
|
753
|
+
--menusummarytext: var(--toolbaritemtext);
|
|
754
|
+
--menusummaryhighlighttext: var(--toolbaritemhighlighttext);
|
|
755
|
+
--menusummaryactivetext: var(--toolbaritemactivetext);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
// :where(&[tint]) {
|
|
760
|
+
// @include mixins.wire-tinted-menu(menuitemface, menuitemhighlightface, menuitemactiveface);
|
|
761
|
+
// @include mixins.wire-menu-colors;
|
|
762
|
+
// }
|
|
537
763
|
}
|
|
538
764
|
|
|
539
|
-
:where([is='confirmation-dialog']) {
|
|
765
|
+
:where([is='confirmation-dialog'], [is='alert-dialog']) {
|
|
540
766
|
--dialogbtnface: light-dark(var(--toolbar-cell-bg), var(--toolbar-cell-bg-dark));
|
|
541
767
|
--dialogbtnhighlightface: light-dark(var(--toolbar-cell-focus-bg), var(--toolbar-cell-focus-bg-dark));
|
|
542
768
|
--dialogbtnactiveface: light-dark(var(--toolbar-cell-active-bg), var(--toolbar-cell-active-bg-dark));
|
|
@@ -552,36 +778,43 @@ $colors: map.merge(
|
|
|
552
778
|
|
|
553
779
|
:where([is='borderless-button']) {
|
|
554
780
|
--btntext: var(--accentColor);
|
|
555
|
-
--btnhighlighttext: light-dark(
|
|
556
|
-
|
|
557
|
-
oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h)
|
|
558
|
-
);
|
|
559
|
-
--btnactivetext: light-dark(
|
|
560
|
-
oklch(from var(--accentColor) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h),
|
|
561
|
-
oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h)
|
|
562
|
-
);
|
|
781
|
+
--btnhighlighttext: light-dark(oklch(from var(--accentColor) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h));
|
|
782
|
+
--btnactivetext: light-dark(oklch(from var(--accentColor) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h));
|
|
563
783
|
}
|
|
564
784
|
|
|
785
|
+
/**
|
|
786
|
+
* NOTE: --accentColorEffective does NOT exist, it is NOT set anywhere initially!
|
|
787
|
+
* NOTE: Some controls use it to override the initial style WHEN/IF ...Effective is set by someone above.
|
|
788
|
+
*/
|
|
565
789
|
:where([is='bordered-button']) {
|
|
566
|
-
--btntext: var(--
|
|
790
|
+
--btntext: var(--accentColorEffective, var(--accentColor));
|
|
567
791
|
--btnhighlighttext: light-dark(
|
|
568
|
-
oklch(from var(--
|
|
569
|
-
oklch(from var(--
|
|
792
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) max(calc(l * 0.7), 0) min(calc(c * 1.4), c) h),
|
|
793
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h)
|
|
570
794
|
);
|
|
571
795
|
--btnactivetext: light-dark(
|
|
572
|
-
oklch(from var(--
|
|
573
|
-
oklch(from var(--
|
|
796
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) max(calc(l * 0.5), 0) min(calc(c * 1.4), c) h),
|
|
797
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.3), 1) min(calc(c * 1.4), c) h)
|
|
574
798
|
);
|
|
575
799
|
|
|
576
|
-
--btnface: light-dark(var(--
|
|
800
|
+
--btnface: light-dark(var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)), var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)));
|
|
577
801
|
--btnhighlightface: light-dark(
|
|
578
|
-
oklch(from var(--
|
|
579
|
-
oklch(from var(--
|
|
802
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.95), 0) min(calc(c * 1.8), c) h),
|
|
803
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.2), 1) min(calc(c * 1.8), c) h)
|
|
580
804
|
);
|
|
581
805
|
--btnactiveface: light-dark(
|
|
582
|
-
oklch(from var(--
|
|
583
|
-
oklch(from var(--
|
|
806
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.9), 0) min(calc(c * 1.8), c) h),
|
|
807
|
+
oklch(from var(--accentColorEffective4, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.3), 1) min(calc(c * 1.8), c) h)
|
|
584
808
|
);
|
|
809
|
+
// --btnface: light-dark(var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)), var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)));
|
|
810
|
+
// --btnhighlightface: light-dark(
|
|
811
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.95), 0) min(calc(c * 1.8), c) h),
|
|
812
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.2), 1) min(calc(c * 1.8), c) h)
|
|
813
|
+
// );
|
|
814
|
+
// --btnactiveface: light-dark(
|
|
815
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) max(calc(l * 0.9), 0) min(calc(c * 1.8), c) h),
|
|
816
|
+
// oklch(from var(--accentSubtle, oklch(from var(--accentColor4) l 0 h)) min(calc(l * 1.3), 1) min(calc(c * 1.8), c) h)
|
|
817
|
+
// );
|
|
585
818
|
}
|
|
586
819
|
|
|
587
820
|
:where([is='bordered-prominent-button']) {
|
|
@@ -590,46 +823,32 @@ $colors: map.merge(
|
|
|
590
823
|
--btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
591
824
|
|
|
592
825
|
--btnface: var(--accentColor); //light-dark(var(--accentColor), var(--accentColor));
|
|
593
|
-
--btnhighlightface: light-dark(
|
|
594
|
-
|
|
595
|
-
oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.4), c) h)
|
|
596
|
-
);
|
|
597
|
-
--btnactiveface: light-dark(
|
|
598
|
-
oklch(from var(--accentColor) max(calc(l * 0.8), 0) min(calc(c * 1.4), c) h),
|
|
599
|
-
oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h)
|
|
600
|
-
);
|
|
826
|
+
--btnhighlightface: light-dark(oklch(from var(--accentColor) max(calc(l * 0.9), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.4), c) h));
|
|
827
|
+
--btnactiveface: light-dark(oklch(from var(--accentColor) max(calc(l * 0.8), 0) min(calc(c * 1.4), c) h), oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.4), c) h));
|
|
601
828
|
}
|
|
602
829
|
|
|
603
830
|
:where([is='glass-button']) {
|
|
604
|
-
--btntext: var(--
|
|
831
|
+
--btntext: var(--accentColorEffective, var(--accentColor));
|
|
605
832
|
--btnhighlighttext: light-dark(
|
|
606
|
-
oklch(from var(--
|
|
607
|
-
oklch(from var(--
|
|
833
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h),
|
|
834
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h)
|
|
608
835
|
);
|
|
609
836
|
--btnactivetext: light-dark(
|
|
610
|
-
oklch(from var(--
|
|
611
|
-
oklch(from var(--
|
|
837
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h),
|
|
838
|
+
oklch(from var(--accentColorEffective, var(--accentColor)) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h)
|
|
612
839
|
);
|
|
613
840
|
|
|
614
|
-
--btnface: light-dark(var(--glass-
|
|
615
|
-
--btnhighlightface: light-dark(var(--glass-
|
|
616
|
-
--btnactiveface: light-dark(var(--glass-
|
|
841
|
+
--btnface: light-dark(var(--clear-glass-bg), var(--clear-glass-bg-dark));
|
|
842
|
+
--btnhighlightface: light-dark(var(--clear-glass-focus-bg), var(--clear-glass-focus-bg-dark));
|
|
843
|
+
--btnactiveface: light-dark(var(--clear-glass-active-bg), var(--clear-glass-active-bg-dark));
|
|
617
844
|
}
|
|
618
845
|
|
|
619
846
|
:where([is='glass-prominent-button']) {
|
|
620
|
-
--btntext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
621
|
-
--btnhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
622
|
-
--btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
847
|
+
// --btntext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
848
|
+
// --btnhighlighttext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
849
|
+
// --btnactivetext: oklch(from var(--accentColor) clamp(0, (0.7 - l) * 999, 1) none none);
|
|
623
850
|
|
|
624
|
-
|
|
625
|
-
--btnhighlightface: light-dark(
|
|
626
|
-
oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h),
|
|
627
|
-
oklch(from var(--accentColor) min(calc(l * 1.1), 1) min(calc(c * 1.1), c) h)
|
|
628
|
-
);
|
|
629
|
-
--btnactiveface: light-dark(
|
|
630
|
-
oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h),
|
|
631
|
-
oklch(from var(--accentColor) min(calc(l * 1.2), 1) min(calc(c * 1.1), c) h)
|
|
632
|
-
);
|
|
851
|
+
@include mixins.wire-tinted-glass(btn);
|
|
633
852
|
}
|
|
634
853
|
|
|
635
854
|
/* list-view {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@layer #{vars.$components-layer} {
|
|
5
|
+
[is='alert-dialog'] {
|
|
6
|
+
:where(&) {
|
|
7
|
+
@include mixins.reset-dialog;
|
|
8
|
+
|
|
9
|
+
@include mixins.make-backdrop-transitionable;
|
|
10
|
+
|
|
11
|
+
color: var(--text,);
|
|
12
|
+
|
|
13
|
+
touch-action: none;
|
|
14
|
+
|
|
15
|
+
position: fixed;
|
|
16
|
+
|
|
17
|
+
inline-size: fit-content;
|
|
18
|
+
block-size: fit-content;
|
|
19
|
+
height: auto; // safari
|
|
20
|
+
max-inline-size: min(20rem, 80vw);
|
|
21
|
+
max-block-size: 80vh;
|
|
22
|
+
|
|
23
|
+
margin-block: auto;
|
|
24
|
+
margin-inline: auto;
|
|
25
|
+
|
|
26
|
+
transform: var(--alert--dialog-scale,);
|
|
27
|
+
opacity: var(--alert--dialog-opacity,);
|
|
28
|
+
|
|
29
|
+
place-self: center;
|
|
30
|
+
|
|
31
|
+
overflow: clip;
|
|
32
|
+
border-radius: 0.9rem;
|
|
33
|
+
|
|
34
|
+
backdrop-filter: var(--liquid-glass-backdrop-filter,);
|
|
35
|
+
box-shadow: var(--menu-popover-box-shadow,); //0 0 10px 10px black;
|
|
36
|
+
|
|
37
|
+
padding-block: 1rem;
|
|
38
|
+
padding-inline: 1rem;
|
|
39
|
+
gap: 1rem;
|
|
40
|
+
|
|
41
|
+
// finally
|
|
42
|
+
--alert--dialog-scale: scale(1.2);
|
|
43
|
+
--alert--dialog-opacity: 0.8;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[open] {
|
|
47
|
+
:where(&) {
|
|
48
|
+
@include mixins.add-dialog-backdrop-transition-frames(var(--view-transition-dialog-onscreen-backdrop-bg));
|
|
49
|
+
|
|
50
|
+
--alert--dialog-scale: scale(1);
|
|
51
|
+
--alert--dialog-opacity: 1;
|
|
52
|
+
|
|
53
|
+
@starting-style {
|
|
54
|
+
--alert--dialog-scale: scale(1.2);
|
|
55
|
+
--alert--dialog-opacity: 0.8;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[closing] {
|
|
61
|
+
:where(&) {
|
|
62
|
+
@include mixins.add-dialog-backdrop-transition-frames(var(--clear));
|
|
63
|
+
|
|
64
|
+
--alert--dialog-scale: scale(0.98);
|
|
65
|
+
--alert--dialog-opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// SECTION: componentize
|
|
70
|
+
// > button {
|
|
71
|
+
// :where(&) {
|
|
72
|
+
// @include mixins.componentize(dialogbtn);
|
|
73
|
+
// }
|
|
74
|
+
// }
|
|
75
|
+
|
|
76
|
+
// :where(&) {
|
|
77
|
+
// --dialogbtnpadistart: 0.6rem;
|
|
78
|
+
// --dialogbtnpadiend: 0.6rem;
|
|
79
|
+
// --dialogbtnpadbstart: 0.6rem;
|
|
80
|
+
// --dialogbtnpadbend: 0.6rem;
|
|
81
|
+
// --dialogbtnradiustl: 1rem;
|
|
82
|
+
// --dialogbtnradiustr: 1rem;
|
|
83
|
+
// --dialogbtnradiusbl: 1rem;
|
|
84
|
+
// --dialogbtnradiusbr: 1rem;
|
|
85
|
+
// }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// @layer #{vars.$colors-layer} {
|
|
90
|
+
// // SECTION: componentize
|
|
91
|
+
// [is='alert-dialog'] {
|
|
92
|
+
// > button {
|
|
93
|
+
// @include mixins.add-focus-visible-state {
|
|
94
|
+
// --dialogbtnface: var(--dialogbtnhighlightface,);
|
|
95
|
+
// --dialogbtntext: var(--dialogbtnhighlighttext,);
|
|
96
|
+
// }
|
|
97
|
+
// }
|
|
98
|
+
// }
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
// @layer #{vars.$ui-layer} {
|
|
102
|
+
// // SECTION: componentize
|
|
103
|
+
// [is='alert-dialog'] {
|
|
104
|
+
// > button {
|
|
105
|
+
// @include mixins.add-active-state {
|
|
106
|
+
// --dialogbtnface: var(--dialogbtnactiveface,);
|
|
107
|
+
// --dialogbtntext: var(--dialogbtnactivetext,);
|
|
108
|
+
// }
|
|
109
|
+
// }
|
|
110
|
+
// }
|
|
111
|
+
// }
|
|
@@ -6,17 +6,52 @@
|
|
|
6
6
|
@extend %button;
|
|
7
7
|
|
|
8
8
|
:where(&) {
|
|
9
|
+
--btnpadistart: var(--regular-btn-padding);
|
|
10
|
+
--btnpadiend: var(--regular-btn-padding);
|
|
11
|
+
--btnpadbstart: var(--regular-btn-padding);
|
|
12
|
+
--btnpadbend: var(--regular-btn-padding);
|
|
13
|
+
|
|
9
14
|
@media (pointer: fine) {
|
|
10
15
|
--accentColor: var(--primary);
|
|
11
16
|
}
|
|
12
17
|
}
|
|
13
18
|
|
|
19
|
+
@each $size, $media in vars.$button-sizes {
|
|
20
|
+
:where(&[control-size='#{$size}']) {
|
|
21
|
+
--btnpadistart: var(--#{$size}-btn-padding);
|
|
22
|
+
--btnpadiend: var(--#{$size}-btn-padding);
|
|
23
|
+
--btnpadbstart: var(--#{$size}-btn-padding);
|
|
24
|
+
--btnpadbend: var(--#{$size}-btn-padding);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
14
28
|
:where(&[role='destructive']) {
|
|
29
|
+
--accentColorEffective: var(--red);
|
|
30
|
+
--accentColorEffective4: var(--red4);
|
|
31
|
+
|
|
15
32
|
--accentColor: var(--red);
|
|
16
33
|
--accentColor2: var(--red2);
|
|
17
34
|
--accentColor3: var(--red3);
|
|
18
35
|
--accentColor4: var(--red4);
|
|
19
36
|
--accentColor5: var(--red5);
|
|
20
37
|
}
|
|
38
|
+
:where(&[role='confirm']) {
|
|
39
|
+
--accentColorEffective: var(--blue);
|
|
40
|
+
--accentColorEffective4: var(--blue4);
|
|
41
|
+
|
|
42
|
+
--accentColor: var(--blue);
|
|
43
|
+
--accentColor2: var(--blue2);
|
|
44
|
+
--accentColor3: var(--blue3);
|
|
45
|
+
--accentColor4: var(--blue4);
|
|
46
|
+
--accentColor5: var(--blue5);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@layer #{vars.$utils-layer} {
|
|
52
|
+
[is='bordered-button'] {
|
|
53
|
+
:where(&) {
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
21
56
|
}
|
|
22
57
|
}
|