@kjun-ui/react 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2285 -1322
- package/dist/index.js +2362 -1397
- package/dist/styles.css +770 -471
- package/dist/types/packages/react/src/app-navigation.d.cts +12 -8
- package/dist/types/packages/react/src/app-navigation.d.ts +12 -8
- package/dist/types/packages/react/src/display.d.cts +8 -2
- package/dist/types/packages/react/src/display.d.ts +8 -2
- package/dist/types/packages/react/src/drawer.d.cts +3 -5
- package/dist/types/packages/react/src/drawer.d.ts +3 -5
- package/dist/types/packages/react/src/fab.d.cts +3 -3
- package/dist/types/packages/react/src/fab.d.ts +3 -3
- package/dist/types/packages/react/src/feedback.d.cts +12 -3
- package/dist/types/packages/react/src/feedback.d.ts +12 -3
- package/dist/types/packages/react/src/index.d.cts +2 -0
- package/dist/types/packages/react/src/index.d.ts +2 -0
- package/dist/types/packages/react/src/layout-primitives.d.cts +24 -24
- package/dist/types/packages/react/src/layout-primitives.d.ts +24 -24
- package/dist/types/packages/react/src/list.d.cts +1 -1
- package/dist/types/packages/react/src/list.d.ts +1 -1
- package/dist/types/packages/react/src/modal.d.cts +3 -1
- package/dist/types/packages/react/src/modal.d.ts +3 -1
- package/dist/types/packages/react/src/provider.d.cts +4 -1
- package/dist/types/packages/react/src/provider.d.ts +4 -1
- package/dist/types/packages/react/src/range-input.d.cts +12 -1
- package/dist/types/packages/react/src/range-input.d.ts +12 -1
- package/dist/types/packages/react/src/skeleton-phase.d.cts +2 -0
- package/dist/types/packages/react/src/skeleton-phase.d.ts +2 -0
- package/dist/types/packages/react/src/skeletons.d.cts +19 -4
- package/dist/types/packages/react/src/skeletons.d.ts +19 -4
- package/dist/types/packages/react/src/table-cards.d.cts +6 -3
- package/dist/types/packages/react/src/table-cards.d.ts +6 -3
- package/dist/types/packages/react/src/table-list.d.cts +2 -6
- package/dist/types/packages/react/src/table-list.d.ts +2 -6
- package/dist/types/packages/react/src/table-model.d.cts +1 -0
- package/dist/types/packages/react/src/table-model.d.ts +1 -0
- package/dist/types/packages/react/src/table-toolbar.d.cts +1 -1
- package/dist/types/packages/react/src/table-toolbar.d.ts +1 -1
- package/dist/types/packages/react/src/table-totals.d.cts +5 -0
- package/dist/types/packages/react/src/table-totals.d.ts +5 -0
- package/dist/types/packages/react/src/toast-stack.d.cts +7 -2
- package/dist/types/packages/react/src/toast-stack.d.ts +7 -2
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +15 -3
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +15 -3
- package/dist/types/shared/package-runtime/drawer-geometry.d.cts +2 -3
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +2 -3
- package/dist/types/shared/package-runtime/feedback-dialog.d.cts +5 -4
- package/dist/types/shared/package-runtime/feedback-dialog.d.ts +5 -4
- package/dist/types/shared/package-runtime/feedback-motion.d.cts +2 -5
- package/dist/types/shared/package-runtime/feedback-motion.d.ts +2 -5
- package/dist/types/shared/package-runtime/feedback-prompt.d.cts +58 -0
- package/dist/types/shared/package-runtime/feedback-prompt.d.ts +58 -0
- package/dist/types/shared/package-runtime/market-layout.d.cts +0 -1
- package/dist/types/shared/package-runtime/market-layout.d.ts +0 -1
- package/dist/types/shared/package-runtime/messages/ko.d.cts +7 -0
- package/dist/types/shared/package-runtime/messages/ko.d.ts +7 -0
- package/dist/types/shared/package-runtime/messages-context.d.cts +7 -0
- package/dist/types/shared/package-runtime/messages-context.d.ts +7 -0
- package/dist/types/shared/package-runtime/safe-area.d.cts +20 -0
- package/dist/types/shared/package-runtime/safe-area.d.ts +20 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +12 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +12 -0
- package/dist/types/shared/package-runtime/slider-view.d.cts +90 -0
- package/dist/types/shared/package-runtime/slider-view.d.ts +90 -0
- package/dist/types/shared/package-runtime/stable-value.d.cts +3 -0
- package/dist/types/shared/package-runtime/stable-value.d.ts +3 -0
- package/dist/types/shared/package-runtime/table-groups.d.cts +9 -0
- package/dist/types/shared/package-runtime/table-groups.d.ts +9 -0
- package/dist/types/shared/package-runtime/table-presentation.d.cts +40 -2
- package/dist/types/shared/package-runtime/table-presentation.d.ts +40 -2
- package/dist/types/shared/package-runtime/table.d.cts +9 -0
- package/dist/types/shared/package-runtime/table.d.ts +9 -0
- package/dist/types/shared/package-runtime/toast-entry.d.cts +3 -0
- package/dist/types/shared/package-runtime/toast-entry.d.ts +3 -0
- package/dist/types/shared/package-runtime/toast-placement.d.cts +4 -0
- package/dist/types/shared/package-runtime/toast-placement.d.ts +4 -0
- package/dist/types/shared/package-runtime/toast-presence.d.cts +12 -0
- package/dist/types/shared/package-runtime/toast-presence.d.ts +12 -0
- package/dist/types/shared/package-runtime/toast-presentation.d.cts +42 -0
- package/dist/types/shared/package-runtime/toast-presentation.d.ts +42 -0
- package/dist/types/shared/package-runtime/toast-swipe.d.cts +20 -0
- package/dist/types/shared/package-runtime/toast-swipe.d.ts +20 -0
- package/dist/types/shared/package-runtime/use-table-group-expansion.d.cts +6 -0
- package/dist/types/shared/package-runtime/use-table-group-expansion.d.ts +6 -0
- package/dist/types/shared/package-runtime/use-toast-stack.d.cts +22 -0
- package/dist/types/shared/package-runtime/use-toast-stack.d.ts +22 -0
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -239,9 +239,10 @@
|
|
|
239
239
|
--_kjun-card-elevation-raised: 0px 1px 2px 0px var(--_kjun-color-shadow-subtle);
|
|
240
240
|
--_kjun-modal-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
241
241
|
--_kjun-popover-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
242
|
+
--_kjun-slider-elevation: 0px 1px 3px 0px var(--_kjun-color-shadow);
|
|
242
243
|
--_kjun-menu-elevation: 0px 8px 24px 0px var(--_kjun-color-shadow), 0px 2px 4px 0px var(--_kjun-color-shadow-subtle);
|
|
243
244
|
--_kjun-drawer-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
244
|
-
--_kjun-toast-elevation:
|
|
245
|
+
--_kjun-toast-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
245
246
|
--_kjun-switch-elevation: 0px 1px 3px 0px var(--_kjun-color-shadow);
|
|
246
247
|
--_kjun-tooltip-elevation: none;
|
|
247
248
|
--_kjun-drawer-elevation-left: 2px 0px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
@@ -397,6 +398,17 @@
|
|
|
397
398
|
--_kjun-extension-chip-remove-icon-sizes-lg: 16px;
|
|
398
399
|
--_kjun-extension-slider-track: 6px;
|
|
399
400
|
--_kjun-extension-slider-thumb: 20px;
|
|
401
|
+
--_kjun-extension-slider-track-height: 28px;
|
|
402
|
+
--_kjun-extension-slider-caption-gap: 4px;
|
|
403
|
+
--_kjun-extension-slider-halo-size: 8px;
|
|
404
|
+
--_kjun-extension-slider-pressed-thumb: 22px;
|
|
405
|
+
--_kjun-extension-slider-mark-size: 4px;
|
|
406
|
+
--_kjun-extension-slider-mark-label-gap: 2px;
|
|
407
|
+
--_kjun-extension-slider-vertical-length: 160px;
|
|
408
|
+
--_kjun-extension-slider-small-track: 4px;
|
|
409
|
+
--_kjun-extension-slider-small-thumb: 16px;
|
|
410
|
+
--_kjun-extension-slider-small-pressed-thumb: 18px;
|
|
411
|
+
--_kjun-extension-slider-small-track-height: 24px;
|
|
400
412
|
--_kjun-extension-slider-minimum-width: 100px;
|
|
401
413
|
--_kjun-extension-radio-size: 20px;
|
|
402
414
|
--_kjun-extension-radio-dot: 8px;
|
|
@@ -411,7 +423,6 @@
|
|
|
411
423
|
--_kjun-extension-market-table-sparkline-width: 72px;
|
|
412
424
|
--_kjun-extension-market-table-sparkline-height: 22px;
|
|
413
425
|
--_kjun-extension-market-table-value-skeleton-width: 56px;
|
|
414
|
-
--_kjun-extension-market-table-value-skeleton-height: 16px;
|
|
415
426
|
--_kjun-extension-market-table-action-skeleton-width: 32px;
|
|
416
427
|
--_kjun-extension-market-table-header-skeleton-height: 14px;
|
|
417
428
|
--_kjun-extension-menu-radius: 12px;
|
|
@@ -509,18 +520,30 @@
|
|
|
509
520
|
--_kjun-extension-drawer-width: 400px;
|
|
510
521
|
--_kjun-extension-drawer-close-size: 32px;
|
|
511
522
|
--_kjun-extension-drawer-close-icon-size: 16px;
|
|
512
|
-
--_kjun-extension-toast-min-width:
|
|
513
|
-
--_kjun-extension-toast-max-width:
|
|
514
|
-
--_kjun-extension-toast-close-size:
|
|
515
|
-
--_kjun-extension-toast-
|
|
516
|
-
--_kjun-extension-toast-
|
|
523
|
+
--_kjun-extension-toast-min-width: 280px;
|
|
524
|
+
--_kjun-extension-toast-max-width: 400px;
|
|
525
|
+
--_kjun-extension-toast-close-size: 32px;
|
|
526
|
+
--_kjun-extension-toast-close-icon-size: 16px;
|
|
527
|
+
--_kjun-extension-toast-icon-size: 20px;
|
|
528
|
+
--_kjun-extension-toast-padding-y: 14px;
|
|
529
|
+
--_kjun-extension-toast-padding-start: 16px;
|
|
530
|
+
--_kjun-extension-toast-padding-end: 8px;
|
|
517
531
|
--_kjun-extension-toast-gap: 12px;
|
|
532
|
+
--_kjun-extension-toast-side-gap: 8px;
|
|
518
533
|
--_kjun-extension-toast-inset: 16px;
|
|
519
|
-
--_kjun-extension-toast-stack-gap:
|
|
520
|
-
--_kjun-extension-toast-title-gap:
|
|
534
|
+
--_kjun-extension-toast-stack-gap: 8px;
|
|
535
|
+
--_kjun-extension-toast-title-gap: 2px;
|
|
521
536
|
--_kjun-extension-toast-action-gap: 8px;
|
|
522
537
|
--_kjun-extension-toast-radius: 12px;
|
|
523
|
-
--_kjun-extension-toast-close-radius:
|
|
538
|
+
--_kjun-extension-toast-close-radius: 8px;
|
|
539
|
+
--_kjun-extension-toast-swipe-distance: 64px;
|
|
540
|
+
--_kjun-extension-toast-peek-offset: 8px;
|
|
541
|
+
--_kjun-extension-toast-peek-inset: 8px;
|
|
542
|
+
--_kjun-extension-toast-compact-height: 44px;
|
|
543
|
+
--_kjun-extension-toast-compact-padding-start: 14px;
|
|
544
|
+
--_kjun-extension-toast-compact-padding-end: 16px;
|
|
545
|
+
--_kjun-extension-toast-compact-gap: 8px;
|
|
546
|
+
--_kjun-extension-toast-compact-radius: 9999px;
|
|
524
547
|
--_kjun-extension-alert-radius: 16px;
|
|
525
548
|
--_kjun-extension-alert-description-gap: 2px;
|
|
526
549
|
--_kjun-extension-alert-close-size: 28px;
|
|
@@ -540,15 +563,20 @@
|
|
|
540
563
|
--_kjun-extension-alert-icon-sizes-sm: 16px;
|
|
541
564
|
--_kjun-extension-alert-icon-sizes-md: 18px;
|
|
542
565
|
--_kjun-extension-alert-close-icon-size: 16px;
|
|
543
|
-
--_kjun-extension-table-card-padding:
|
|
544
|
-
--_kjun-extension-table-card-radius:
|
|
566
|
+
--_kjun-extension-table-card-padding: 16px;
|
|
567
|
+
--_kjun-extension-table-card-radius: 16px;
|
|
545
568
|
--_kjun-extension-table-card-gap: 8px;
|
|
569
|
+
--_kjun-extension-table-card-card-gap: 12px;
|
|
570
|
+
--_kjun-extension-table-card-section-gap: 12px;
|
|
571
|
+
--_kjun-extension-table-card-footer-gap: 12px;
|
|
572
|
+
--_kjun-extension-table-card-tile-padding: 12px;
|
|
546
573
|
--_kjun-extension-table-card-list-padding: 8px;
|
|
547
574
|
--_kjun-extension-table-card-field-gap: 4px;
|
|
548
575
|
--_kjun-extension-table-card-metric-gap: 6px;
|
|
549
576
|
--_kjun-extension-table-card-value-gap: 2px;
|
|
550
577
|
--_kjun-extension-table-card-empty-padding: 32px;
|
|
551
578
|
--_kjun-extension-table-card-title-skeleton-width: 96px;
|
|
579
|
+
--_kjun-extension-table-card-tile-min-width: 160px;
|
|
552
580
|
--_kjun-extension-table-card-title-skeleton-height: 20px;
|
|
553
581
|
--_kjun-extension-table-card-badge-skeleton-width: 64px;
|
|
554
582
|
--_kjun-extension-table-card-field-skeleton-height: 18px;
|
|
@@ -568,23 +596,16 @@
|
|
|
568
596
|
--_kjun-extension-skeleton-list-compact-padding-x: 16px;
|
|
569
597
|
--_kjun-extension-skeleton-list-notification-padding-y: 12px;
|
|
570
598
|
--_kjun-extension-skeleton-list-notification-padding-x: 12px;
|
|
571
|
-
--_kjun-extension-skeleton-line-heights-sm: 12px;
|
|
572
599
|
--_kjun-extension-skeleton-line-heights-md: 16px;
|
|
573
|
-
--_kjun-extension-skeleton-line-heights-lg: 24px;
|
|
574
600
|
--_kjun-extension-skeleton-avatar-size: 48px;
|
|
575
|
-
--_kjun-extension-skeleton-card-avatar-size: 40px;
|
|
576
601
|
--_kjun-extension-skeleton-table-line-height: 14px;
|
|
577
|
-
--_kjun-extension-skeleton-stat-width: 80px;
|
|
578
|
-
--_kjun-extension-skeleton-stat-height: 40px;
|
|
579
602
|
--_kjun-extension-skeleton-block-height: 100px;
|
|
580
603
|
--_kjun-extension-skeleton-list-heights-market: 72px;
|
|
581
604
|
--_kjun-extension-skeleton-list-heights-compact: 56px;
|
|
582
605
|
--_kjun-extension-skeleton-list-heights-notification: 64px;
|
|
583
606
|
--_kjun-extension-skeleton-quote-width: 88px;
|
|
584
|
-
--_kjun-extension-skeleton-quote-height: 18px;
|
|
585
607
|
--_kjun-extension-skeleton-detail-width: 56px;
|
|
586
608
|
--_kjun-extension-skeleton-form-label-width: 96px;
|
|
587
|
-
--_kjun-extension-skeleton-form-label-height: 14px;
|
|
588
609
|
--_kjun-extension-skeleton-identity-width: 128px;
|
|
589
610
|
--_kjun-extension-skeleton-identity-height: 20px;
|
|
590
611
|
--_kjun-extension-skeleton-list-avatar-size: 36px;
|
|
@@ -659,7 +680,6 @@
|
|
|
659
680
|
--_kjun-extension-financial-price-skeleton-width: 64px;
|
|
660
681
|
--_kjun-extension-financial-price-skeleton-height: 16px;
|
|
661
682
|
--_kjun-extension-financial-signed-skeleton-width: 48px;
|
|
662
|
-
--_kjun-extension-financial-signed-skeleton-height: 1.25rem;
|
|
663
683
|
--_kjun-extension-kpi-hero-radius: 12px;
|
|
664
684
|
--_kjun-extension-kpi-hero-layout-gap: 24px;
|
|
665
685
|
--_kjun-extension-kpi-hero-prefix-gap: 2px;
|
|
@@ -738,7 +758,6 @@
|
|
|
738
758
|
--_kjun-extension-kpi-row-summary-secondary-gap: 4px;
|
|
739
759
|
--_kjun-extension-kpi-row-dot-size: 4px;
|
|
740
760
|
--_kjun-extension-kpi-row-label-skeleton-width: 80px;
|
|
741
|
-
--_kjun-extension-kpi-row-label-skeleton-height: 13px;
|
|
742
761
|
--_kjun-extension-kpi-row-value-skeleton-width: 80px;
|
|
743
762
|
--_kjun-extension-kpi-row-segment-skeleton-width: 48px;
|
|
744
763
|
--_kjun-extension-kpi-row-description-skeleton-width: 90px;
|
|
@@ -818,9 +837,17 @@
|
|
|
818
837
|
--_kjun-extension-market-list-minimum-height: 72px;
|
|
819
838
|
--_kjun-extension-market-list-mobile-quote-minimum-width: 102px;
|
|
820
839
|
--_kjun-extension-market-list-change-skeleton-width: 56px;
|
|
821
|
-
--_kjun-extension-
|
|
840
|
+
--_kjun-extension-feedback-dialog-message-gap: 4px;
|
|
841
|
+
--_kjun-extension-feedback-dialog-field-gap: 20px;
|
|
842
|
+
--_kjun-extension-feedback-dialog-actions-gap: 24px;
|
|
843
|
+
--_kjun-extension-feedback-dialog-warning-gap: 8px;
|
|
844
|
+
--_kjun-extension-feedback-dialog-warning-padding: 12px;
|
|
845
|
+
--_kjun-extension-feedback-dialog-warning-radius: 12px;
|
|
822
846
|
--_kjun-extension-chart-skeleton-height: 240px;
|
|
823
847
|
--_kjun-extension-chart-skeleton-donut-thickness: 22px;
|
|
848
|
+
--_kjun-extension-chart-skeleton-axis-width: 40px;
|
|
849
|
+
--_kjun-extension-chart-skeleton-tick-label-width: 28px;
|
|
850
|
+
--_kjun-extension-chart-skeleton-label-gap: 8px;
|
|
824
851
|
--_kjun-state-opacity-disabled: 0.5;
|
|
825
852
|
--_kjun-state-opacity-disabled-strong: 0.4;
|
|
826
853
|
--_kjun-state-opacity-pressed: 0.8;
|
|
@@ -998,7 +1025,6 @@
|
|
|
998
1025
|
--_kjun-geometry-table-list-meta-gap: 2px;
|
|
999
1026
|
--_kjun-geometry-table-list-radius: 12px;
|
|
1000
1027
|
--_kjun-geometry-table-column-width: 160px;
|
|
1001
|
-
--_kjun-geometry-table-skeleton-height: 20px;
|
|
1002
1028
|
--_kjun-geometry-table-selection-size: 16px;
|
|
1003
1029
|
--_kjun-geometry-table-sort-icon-size: 12px;
|
|
1004
1030
|
--_kjun-geometry-table-sorted-icon-size: 14px;
|
|
@@ -1641,6 +1667,12 @@
|
|
|
1641
1667
|
@media (prefers-reduced-motion: reduce) { .kjun-scope [class*="kjun-price-flash-"] { animation: none; } }
|
|
1642
1668
|
|
|
1643
1669
|
/* KJUN 공통 구조. 색상과 서체는 프로젝트가 제공한 CSS 변수를 사용한다. */
|
|
1670
|
+
/* Safe area: KjunProvider's safeArea, else the browser's env(safe-area-inset-*). Toasts, modals, menus and edge
|
|
1671
|
+
components all read these two values. */
|
|
1672
|
+
.kjun-scope {
|
|
1673
|
+
--_kjun-safe-area-top: var(--_kjun-safe-top, env(safe-area-inset-top, 0px));
|
|
1674
|
+
--_kjun-safe-area-bottom: var(--_kjun-safe-bottom, env(safe-area-inset-bottom, 0px));
|
|
1675
|
+
}
|
|
1644
1676
|
.kjun-button {
|
|
1645
1677
|
position: relative;
|
|
1646
1678
|
display: inline-flex;
|
|
@@ -1877,6 +1909,9 @@
|
|
|
1877
1909
|
align-items: center;
|
|
1878
1910
|
justify-content: center;
|
|
1879
1911
|
padding: var(--_kjun-geometry-modal-mobile-inset);
|
|
1912
|
+
/* Like Native: the dialog keeps clear of the safe area on edge-to-edge mobile pages. */
|
|
1913
|
+
padding-top: calc(var(--_kjun-geometry-modal-mobile-inset) + var(--_kjun-safe-area-top));
|
|
1914
|
+
padding-bottom: calc(var(--_kjun-geometry-modal-mobile-inset) + var(--_kjun-safe-area-bottom));
|
|
1880
1915
|
}
|
|
1881
1916
|
.kjun-modal {
|
|
1882
1917
|
display: flex;
|
|
@@ -1884,7 +1919,7 @@
|
|
|
1884
1919
|
background: var(--_kjun-color-surface);
|
|
1885
1920
|
border-radius: var(--_kjun-geometry-modal-radius);
|
|
1886
1921
|
box-shadow: var(--_kjun-modal-elevation);
|
|
1887
|
-
max-height: calc(100dvh - 2 * var(--_kjun-geometry-modal-mobile-inset));
|
|
1922
|
+
max-height: calc(100dvh - 2 * var(--_kjun-geometry-modal-mobile-inset) - var(--_kjun-safe-area-top) - var(--_kjun-safe-area-bottom));
|
|
1888
1923
|
max-width: 100%;
|
|
1889
1924
|
overflow: hidden;
|
|
1890
1925
|
outline: none;
|
|
@@ -1939,6 +1974,68 @@
|
|
|
1939
1974
|
overflow: auto;
|
|
1940
1975
|
color: var(--_kjun-color-text);
|
|
1941
1976
|
}
|
|
1977
|
+
/* Confirm and prompt dialogs: one small surface, no header or footer bands, the field labelled above. */
|
|
1978
|
+
.kjun-feedback-dialog > h2 {
|
|
1979
|
+
margin: 0;
|
|
1980
|
+
font-size: var(--_kjun-type-section-title-size);
|
|
1981
|
+
line-height: var(--_kjun-type-section-title-line);
|
|
1982
|
+
font-weight: var(--_kjun-type-section-title-weight);
|
|
1983
|
+
letter-spacing: var(--_kjun-type-section-title-tracking);
|
|
1984
|
+
overflow-wrap: anywhere;
|
|
1985
|
+
word-break: keep-all;
|
|
1986
|
+
}
|
|
1987
|
+
.kjun-feedback-dialog-message {
|
|
1988
|
+
margin: var(--_kjun-extension-feedback-dialog-message-gap) 0 0;
|
|
1989
|
+
color: var(--_kjun-color-text-secondary);
|
|
1990
|
+
font-size: var(--_kjun-type-body-size);
|
|
1991
|
+
line-height: var(--_kjun-type-body-line);
|
|
1992
|
+
overflow-wrap: anywhere;
|
|
1993
|
+
word-break: keep-all;
|
|
1994
|
+
}
|
|
1995
|
+
/* A danger dialog's message is a warning: a faint danger surface with the alert mark. */
|
|
1996
|
+
.kjun-feedback-dialog-message[data-tone="danger"] {
|
|
1997
|
+
display: flex;
|
|
1998
|
+
gap: var(--_kjun-extension-feedback-dialog-warning-gap);
|
|
1999
|
+
margin-top: var(--_kjun-extension-feedback-dialog-warning-padding);
|
|
2000
|
+
padding: var(--_kjun-extension-feedback-dialog-warning-padding);
|
|
2001
|
+
border-radius: var(--_kjun-extension-feedback-dialog-warning-radius);
|
|
2002
|
+
background: color-mix(in srgb, var(--_kjun-color-danger) calc(var(--_kjun-state-opacity-tint-control) * 100%), transparent);
|
|
2003
|
+
color: var(--_kjun-color-text);
|
|
2004
|
+
}
|
|
2005
|
+
.kjun-feedback-dialog-message[data-tone="danger"] > svg { flex: none; margin-top: calc((var(--_kjun-type-body-line) - var(--_kjun-extension-form-message-icon-size)) / 2); color: var(--_kjun-color-danger); }
|
|
2006
|
+
.kjun-feedback-dialog-field { margin-top: var(--_kjun-extension-feedback-dialog-field-gap); }
|
|
2007
|
+
/* A confirm's own failure (onConfirm threw) reads under its message. */
|
|
2008
|
+
.kjun-feedback-dialog-error { margin: var(--_kjun-extension-feedback-dialog-message-gap) 0 0; color: var(--_kjun-color-danger); font-size: var(--_kjun-type-caption-size); line-height: var(--_kjun-type-caption-line); overflow-wrap: anywhere; }
|
|
2009
|
+
.kjun-feedback-dialog-label {
|
|
2010
|
+
display: flex;
|
|
2011
|
+
align-items: baseline;
|
|
2012
|
+
justify-content: space-between;
|
|
2013
|
+
gap: var(--_kjun-geometry-dimension-value8);
|
|
2014
|
+
margin-bottom: var(--_kjun-extension-form-label-gap);
|
|
2015
|
+
font-size: var(--_kjun-type-label-size);
|
|
2016
|
+
line-height: var(--_kjun-type-label-line);
|
|
2017
|
+
font-weight: var(--_kjun-type-label-weight);
|
|
2018
|
+
}
|
|
2019
|
+
.kjun-feedback-dialog-count {
|
|
2020
|
+
flex: none;
|
|
2021
|
+
color: var(--_kjun-color-text-tertiary);
|
|
2022
|
+
font-size: var(--_kjun-type-caption-size);
|
|
2023
|
+
line-height: var(--_kjun-type-caption-line);
|
|
2024
|
+
font-weight: var(--_kjun-type-caption-weight);
|
|
2025
|
+
font-variant-numeric: tabular-nums;
|
|
2026
|
+
}
|
|
2027
|
+
.kjun-feedback-dialog-label strong { font-weight: var(--_kjun-type-control-weight); }
|
|
2028
|
+
.kjun-feedback-dialog-actions {
|
|
2029
|
+
display: flex;
|
|
2030
|
+
justify-content: flex-end;
|
|
2031
|
+
gap: var(--_kjun-geometry-dimension-value8);
|
|
2032
|
+
margin-top: var(--_kjun-extension-feedback-dialog-actions-gap);
|
|
2033
|
+
}
|
|
2034
|
+
/* Phones: the two choices split the width with large targets. */
|
|
2035
|
+
@media (width <= 640px) {
|
|
2036
|
+
/* Buttons set their height inline, so the large target needs to win over it. */
|
|
2037
|
+
.kjun-feedback-dialog-actions > .kjun-button { flex: 1; height: var(--_kjun-geometry-button-heights-lg) !important; }
|
|
2038
|
+
}
|
|
1942
2039
|
.kjun-modal-footer {
|
|
1943
2040
|
padding: var(--_kjun-geometry-modal-header-padding-y) var(--_kjun-geometry-modal-padding);
|
|
1944
2041
|
border-top: var(--_kjun-border-default-width) solid var(--_kjun-color-border);
|
|
@@ -2057,51 +2154,40 @@
|
|
|
2057
2154
|
margin-bottom: 0;
|
|
2058
2155
|
}
|
|
2059
2156
|
|
|
2060
|
-
.kjun-skeleton-line-sm {
|
|
2061
|
-
height: var(--_kjun-extension-skeleton-line-heights-sm);
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
.kjun-skeleton-line-lg {
|
|
2065
|
-
height: var(--_kjun-extension-skeleton-line-heights-lg);
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
2157
|
/* Avatar */
|
|
2069
2158
|
.kjun-skeleton-avatar {
|
|
2070
2159
|
background: var(--_kjun-skeleton);
|
|
2071
2160
|
flex-shrink: 0;
|
|
2072
2161
|
}
|
|
2073
2162
|
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2163
|
+
/* Text slots: each bar is half its role's line height, centred in a full line box, so a skeleton is as tall as the text
|
|
2164
|
+
it stands in for. */
|
|
2165
|
+
.kjun-skeleton-slot {
|
|
2166
|
+
display: flex;
|
|
2167
|
+
align-items: center;
|
|
2168
|
+
height: var(--_kjun-skeleton-slot, var(--_kjun-type-body-line));
|
|
2169
|
+
}
|
|
2170
|
+
.kjun-skeleton-slot > .kjun-skeleton-line {
|
|
2171
|
+
height: 50%;
|
|
2172
|
+
margin-bottom: 0;
|
|
2173
|
+
}
|
|
2174
|
+
/* A line skeleton stands in for one line of text and is as wide as its width prop. It stays a block, so a
|
|
2175
|
+
role's line box is never stretched by the surrounding text's line height. */
|
|
2176
|
+
.kjun-skeleton[data-type="line"] {
|
|
2177
|
+
max-width: 100%;
|
|
2078
2178
|
}
|
|
2079
2179
|
|
|
2080
|
-
/* Card */
|
|
2180
|
+
/* Card: the silhouette of a default KjunCard (surface, no border) with a title, a subtitle and body lines. */
|
|
2081
2181
|
.kjun-skeleton-card {
|
|
2082
2182
|
padding: var(--_kjun-extension-skeleton-padding);
|
|
2083
|
-
border: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
2084
2183
|
border-radius: var(--_kjun-extension-skeleton-radius);
|
|
2085
|
-
background: var(--_kjun-
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
.kjun-skeleton-card-header {
|
|
2089
|
-
display: flex;
|
|
2090
|
-
align-items: center;
|
|
2091
|
-
gap: var(--_kjun-extension-skeleton-gap);
|
|
2092
|
-
margin-bottom: var(--_kjun-extension-skeleton-form-gap);
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
.kjun-skeleton-card-header-text {
|
|
2096
|
-
flex: 1;
|
|
2184
|
+
background: var(--_kjun-color-surface);
|
|
2097
2185
|
}
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
margin-bottom: var(--_kjun-extension-skeleton-field-gap);
|
|
2186
|
+
.kjun-skeleton-card-header > .kjun-skeleton-slot + .kjun-skeleton-slot {
|
|
2187
|
+
margin-top: var(--_kjun-geometry-card-subtitle-gap);
|
|
2101
2188
|
}
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
margin-bottom: var(--_kjun-geometry-dimension-value10);
|
|
2189
|
+
.kjun-skeleton-card-body {
|
|
2190
|
+
margin-top: var(--_kjun-extension-skeleton-padding);
|
|
2105
2191
|
}
|
|
2106
2192
|
|
|
2107
2193
|
/* Table */
|
|
@@ -2136,35 +2222,12 @@
|
|
|
2136
2222
|
height: var(--_kjun-extension-skeleton-table-line-height);
|
|
2137
2223
|
}
|
|
2138
2224
|
|
|
2139
|
-
/* Stat
|
|
2140
|
-
.kjun-skeleton-stat {
|
|
2141
|
-
|
|
2142
|
-
justify-content: space-between;
|
|
2143
|
-
align-items: center;
|
|
2144
|
-
padding: var(--_kjun-extension-skeleton-padding);
|
|
2145
|
-
border: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
2146
|
-
border-radius: var(--_kjun-extension-skeleton-radius);
|
|
2147
|
-
background: var(--_kjun-bg-primary);
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
.kjun-skeleton-stat-content {
|
|
2151
|
-
flex: 1;
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
.kjun-skeleton-stat-content .kjun-skeleton-line {
|
|
2155
|
-
margin-bottom: var(--_kjun-extension-skeleton-field-gap);
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
.kjun-skeleton-stat-chart {
|
|
2159
|
-
width: var(--_kjun-extension-skeleton-stat-width);
|
|
2160
|
-
height: var(--_kjun-extension-skeleton-stat-height);
|
|
2225
|
+
/* Stat: one KpiRow item, label, value and description on their own line boxes. */
|
|
2226
|
+
.kjun-skeleton-stat > .kjun-skeleton-slot:nth-child(2) {
|
|
2227
|
+
margin-top: var(--_kjun-extension-kpi-row-md-label-gap);
|
|
2161
2228
|
}
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
width: 100%;
|
|
2165
|
-
height: 100%;
|
|
2166
|
-
background: var(--_kjun-skeleton);
|
|
2167
|
-
border-radius: var(--_kjun-extension-skeleton-line-radius);
|
|
2229
|
+
.kjun-skeleton-stat > .kjun-skeleton-slot:last-child {
|
|
2230
|
+
margin-top: var(--_kjun-extension-kpi-row-md-description-gap);
|
|
2168
2231
|
}
|
|
2169
2232
|
|
|
2170
2233
|
/* Block */
|
|
@@ -2173,30 +2236,18 @@
|
|
|
2173
2236
|
border-radius: var(--_kjun-extension-skeleton-block-radius);
|
|
2174
2237
|
}
|
|
2175
2238
|
|
|
2176
|
-
/* Animation */
|
|
2239
|
+
/* Animation: every bar brightens and dims together (as on Native), so a group of skeletons moves as one. */
|
|
2177
2240
|
.kjun-skeleton-animated .kjun-skeleton-line,
|
|
2178
2241
|
.kjun-skeleton-animated .kjun-skeleton-avatar,
|
|
2179
|
-
.kjun-skeleton-animated .kjun-skeleton-sparkline,
|
|
2180
2242
|
.kjun-skeleton-animated .kjun-skeleton-block {
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
var(--_kjun-skeleton) 25%,
|
|
2184
|
-
var(--_kjun-skeleton-shine) 50%,
|
|
2185
|
-
var(--_kjun-skeleton) 75%
|
|
2186
|
-
);
|
|
2187
|
-
background-size: 200% 100%;
|
|
2188
|
-
animation: kjun-skeleton-shimmer var(--_kjun-motion-shimmer) ease-in-out infinite;
|
|
2243
|
+
animation: kjun-skeleton-pulse var(--_kjun-motion-shimmer) ease-in-out infinite;
|
|
2244
|
+
animation-delay: var(--_kjun-skeleton-delay, 0ms);
|
|
2189
2245
|
}
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
background-position: 200% 0;
|
|
2194
|
-
}
|
|
2195
|
-
100% {
|
|
2196
|
-
background-position: -200% 0;
|
|
2246
|
+
@keyframes kjun-skeleton-pulse {
|
|
2247
|
+
50% {
|
|
2248
|
+
background-color: var(--_kjun-skeleton-shine);
|
|
2197
2249
|
}
|
|
2198
2250
|
}
|
|
2199
|
-
|
|
2200
2251
|
@media (prefers-reduced-motion: reduce) {
|
|
2201
2252
|
.kjun-skeleton-animated * {
|
|
2202
2253
|
animation: none !important;
|
|
@@ -3449,6 +3500,37 @@
|
|
|
3449
3500
|
.kjun-list-skeleton-row[data-variant="market"] { min-height: var(--_kjun-extension-market-list-minimum-height); padding: var(--_kjun-geometry-dimension-value14) var(--_kjun-geometry-dimension-value20); }
|
|
3450
3501
|
.kjun-list-skeleton-row[data-variant="market"] :is(.kjun-list-skeleton-label, .kjun-list-skeleton-quote) { grid-template-rows: var(--_kjun-type-input-line) var(--_kjun-type-body-line); }
|
|
3451
3502
|
}
|
|
3503
|
+
/* Row: KjunListRow's padding, gap and minimum height; the divider starts where the text does. */
|
|
3504
|
+
.kjun-list-skeleton-row[data-variant="row"] {
|
|
3505
|
+
position: relative;
|
|
3506
|
+
gap: var(--_kjun-extension-list-gap);
|
|
3507
|
+
min-height: var(--_kjun-extension-list-minimum-height);
|
|
3508
|
+
padding: var(--_kjun-extension-list-padding);
|
|
3509
|
+
border-bottom: 0;
|
|
3510
|
+
}
|
|
3511
|
+
.kjun-list-skeleton-row[data-variant="row"]:not(:last-child)::after {
|
|
3512
|
+
content: "";
|
|
3513
|
+
position: absolute;
|
|
3514
|
+
inset-inline: var(--_kjun-list-divider-inset, var(--_kjun-extension-list-padding)) 0;
|
|
3515
|
+
bottom: 0;
|
|
3516
|
+
height: var(--_kjun-border-default-width);
|
|
3517
|
+
background: var(--_kjun-color-divider);
|
|
3518
|
+
}
|
|
3519
|
+
.kjun-list-skeleton-row[data-variant="row"][data-leading] {
|
|
3520
|
+
--_kjun-list-divider-inset: calc(var(--_kjun-extension-list-padding) + var(--_kjun-extension-list-leading-width) + var(--_kjun-extension-list-gap));
|
|
3521
|
+
}
|
|
3522
|
+
.kjun-list-skeleton-row[data-variant="row"] .kjun-list-skeleton-label { display: block; }
|
|
3523
|
+
.kjun-list-skeleton-row[data-variant="row"] .kjun-list-skeleton-label > .kjun-skeleton { display: block; }
|
|
3524
|
+
.kjun-list-skeleton-row[data-variant="row"] .kjun-list-skeleton-label > .kjun-skeleton + .kjun-skeleton { margin-top: var(--_kjun-extension-list-description-gap); }
|
|
3525
|
+
.kjun-list-skeleton-leading { flex: none; display: flex; justify-content: center; width: var(--_kjun-extension-list-leading-width); }
|
|
3526
|
+
.kjun-list-skeleton-trailing { flex: none; display: flex; justify-content: flex-end; }
|
|
3527
|
+
/* Other variants: the name line, then the meta line; each bar takes its slot's line height. */
|
|
3528
|
+
:is(.kjun-list-skeleton-label, .kjun-list-skeleton-quote) > .kjun-skeleton:first-child { line-height: var(--_kjun-type-label-line); }
|
|
3529
|
+
:is(.kjun-list-skeleton-label, .kjun-list-skeleton-quote) > .kjun-skeleton:last-child { line-height: var(--_kjun-type-caption-line); }
|
|
3530
|
+
@media (width < 768px) {
|
|
3531
|
+
.kjun-list-skeleton-row[data-variant="market"] :is(.kjun-list-skeleton-label, .kjun-list-skeleton-quote) > .kjun-skeleton:first-child { line-height: var(--_kjun-type-input-line); }
|
|
3532
|
+
.kjun-list-skeleton-row[data-variant="market"] :is(.kjun-list-skeleton-label, .kjun-list-skeleton-quote) > .kjun-skeleton:last-child { line-height: var(--_kjun-type-body-line); }
|
|
3533
|
+
}
|
|
3452
3534
|
.kjun-list-skeleton-row > .kjun-skeleton {
|
|
3453
3535
|
flex-shrink: 0;
|
|
3454
3536
|
}
|
|
@@ -3472,7 +3554,6 @@
|
|
|
3472
3554
|
display: grid;
|
|
3473
3555
|
gap: var(--_kjun-extension-skeleton-field-gap);
|
|
3474
3556
|
}
|
|
3475
|
-
.kjun-form-skeleton-label-slot { display:flex; align-items:center; height:var(--_kjun-type-label-line); }
|
|
3476
3557
|
.kjun-form-skeleton-label {
|
|
3477
3558
|
font-size: var(--_kjun-type-label-size);
|
|
3478
3559
|
color: var(--_kjun-color-text);
|
|
@@ -3485,26 +3566,63 @@
|
|
|
3485
3566
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3486
3567
|
}
|
|
3487
3568
|
}
|
|
3569
|
+
/* The skeleton keeps the chart's height: the drawing area grows, and the caption (if any) sits under it. */
|
|
3488
3570
|
.kjun-chart-skeleton {
|
|
3571
|
+
display: flex;
|
|
3572
|
+
flex-direction: column;
|
|
3573
|
+
width: 100%;
|
|
3574
|
+
min-width: 0;
|
|
3575
|
+
}
|
|
3576
|
+
.kjun-chart-skeleton-area {
|
|
3489
3577
|
position: relative;
|
|
3578
|
+
flex: 1;
|
|
3579
|
+
min-height: 0;
|
|
3490
3580
|
display: flex;
|
|
3491
3581
|
align-items: center;
|
|
3492
3582
|
justify-content: center;
|
|
3493
|
-
width: 100%;
|
|
3494
|
-
min-width: 0;
|
|
3495
|
-
animation: kjun-chart-pulse var(--_kjun-motion-shimmer) ease-in-out infinite;
|
|
3496
3583
|
}
|
|
3497
|
-
.kjun-chart-skeleton[data-kjun-chart-kind="donut"] {
|
|
3498
|
-
/* Only the donut
|
|
3499
|
-
|
|
3584
|
+
.kjun-chart-skeleton[data-kjun-chart-kind="donut"] .kjun-chart-skeleton-area {
|
|
3585
|
+
/* Only the donut measures its ring against this box's height; size containment elsewhere would drop the
|
|
3586
|
+
frame's intrinsic width inside shrink-to-fit parents. */
|
|
3500
3587
|
container-type: size;
|
|
3501
3588
|
}
|
|
3502
3589
|
.kjun-chart-skeleton[data-skeleton="false"] {
|
|
3503
|
-
|
|
3590
|
+
align-items: center;
|
|
3591
|
+
justify-content: center;
|
|
3592
|
+
}
|
|
3593
|
+
/* Frame: the app's grid lines over the plot, with bars where the axis labels will be. */
|
|
3594
|
+
.kjun-chart-skeleton-frame {
|
|
3595
|
+
position: absolute;
|
|
3596
|
+
inset: 0;
|
|
3597
|
+
--_kjun-chart-labels: calc(var(--_kjun-extension-chart-skeleton-label-gap) + var(--_kjun-type-caption-line));
|
|
3504
3598
|
}
|
|
3505
3599
|
.kjun-chart-skeleton-plot {
|
|
3506
|
-
|
|
3507
|
-
|
|
3600
|
+
position: absolute;
|
|
3601
|
+
top: 0;
|
|
3602
|
+
right: 0;
|
|
3603
|
+
bottom: var(--_kjun-chart-labels);
|
|
3604
|
+
left: var(--_kjun-chart-axis);
|
|
3605
|
+
width: calc(100% - var(--_kjun-chart-axis));
|
|
3606
|
+
height: calc(100% - var(--_kjun-chart-labels));
|
|
3607
|
+
overflow: visible;
|
|
3608
|
+
}
|
|
3609
|
+
.kjun-chart-skeleton-label {
|
|
3610
|
+
position: absolute;
|
|
3611
|
+
height: calc(var(--_kjun-type-caption-line) / 2);
|
|
3612
|
+
border-radius: var(--_kjun-extension-skeleton-line-radius);
|
|
3613
|
+
background: var(--_kjun-color-skeleton);
|
|
3614
|
+
}
|
|
3615
|
+
.kjun-chart-skeleton-label[data-axis="y"] {
|
|
3616
|
+
left: 0;
|
|
3617
|
+
width: calc(var(--_kjun-chart-axis) - var(--_kjun-extension-chart-skeleton-label-gap));
|
|
3618
|
+
top: calc((100% - var(--_kjun-chart-labels)) * var(--_kjun-stop) - var(--_kjun-type-caption-line) / 4);
|
|
3619
|
+
}
|
|
3620
|
+
.kjun-chart-skeleton-label[data-axis="x"] {
|
|
3621
|
+
/* Narrows when ticks crowd the plot, so an end bar keeps a label gap from its neighbour: (step − gap) × 2 / 3. */
|
|
3622
|
+
width: max(0px, min(var(--_kjun-extension-chart-skeleton-tick-label-width), calc(((100% - var(--_kjun-chart-axis)) / var(--_kjun-chart-steps) - var(--_kjun-extension-chart-skeleton-label-gap)) * 2 / 3)));
|
|
3623
|
+
top: calc(100% - var(--_kjun-type-caption-line) * 3 / 4);
|
|
3624
|
+
left: calc(var(--_kjun-chart-axis) + (100% - var(--_kjun-chart-axis)) * var(--_kjun-stop));
|
|
3625
|
+
transform: translateX(var(--_kjun-shift));
|
|
3508
3626
|
}
|
|
3509
3627
|
.kjun-chart-skeleton-donut {
|
|
3510
3628
|
/* The hole is 80% − 2 × thickness only in border-box, whatever the app's reset. */
|
|
@@ -3527,13 +3645,23 @@
|
|
|
3527
3645
|
.kjun-chart-skeleton-cell[data-muted] {
|
|
3528
3646
|
opacity: var(--_kjun-state-opacity-pending);
|
|
3529
3647
|
}
|
|
3648
|
+
/* Only the skeleton-coloured parts pulse; the grid lines hold still. */
|
|
3649
|
+
/* The matrix pulses as one, so its light and dark cells keep their pattern through the pulse. */
|
|
3650
|
+
.kjun-chart-skeleton-label,
|
|
3651
|
+
.kjun-chart-skeleton-donut,
|
|
3652
|
+
.kjun-chart-skeleton-matrix {
|
|
3653
|
+
animation: kjun-chart-pulse var(--_kjun-motion-shimmer) ease-in-out infinite;
|
|
3654
|
+
animation-delay: var(--_kjun-skeleton-delay, 0ms);
|
|
3655
|
+
}
|
|
3530
3656
|
@keyframes kjun-chart-pulse {
|
|
3531
3657
|
50% {
|
|
3532
3658
|
opacity: 0.55;
|
|
3533
3659
|
}
|
|
3534
3660
|
}
|
|
3535
3661
|
@media (prefers-reduced-motion: reduce) {
|
|
3536
|
-
.kjun-chart-skeleton
|
|
3662
|
+
.kjun-chart-skeleton-label,
|
|
3663
|
+
.kjun-chart-skeleton-donut,
|
|
3664
|
+
.kjun-chart-skeleton-matrix {
|
|
3537
3665
|
animation: none;
|
|
3538
3666
|
}
|
|
3539
3667
|
}
|
|
@@ -3542,9 +3670,8 @@
|
|
|
3542
3670
|
.kjun-error-fallback h3 { margin:0; font-size:var(--_kjun-extension-state-title-size); line-height:var(--_kjun-type-section-title-line); font-weight:var(--_kjun-type-section-title-weight);letter-spacing:var(--_kjun-type-section-title-tracking);}
|
|
3543
3671
|
.kjun-error-fallback p { margin:var(--_kjun-geometry-dimension-value8) 0 var(--_kjun-geometry-dimension-value16); font-size:var(--_kjun-extension-state-description-size); line-height:var(--_kjun-type-caption-line); color:var(--_kjun-color-text-secondary); font-weight:var(--_kjun-type-caption-weight);letter-spacing:var(--_kjun-type-caption-tracking);}
|
|
3544
3672
|
|
|
3545
|
-
|
|
3546
|
-
.kjun-chart-skeleton-status
|
|
3547
|
-
.kjun-chart-skeleton[data-kjun-chart-kind="donut"] .kjun-chart-skeleton-status>span { box-sizing:border-box; border:0; max-width:calc(80cqh - 2 * var(--_kjun-extension-chart-skeleton-donut-thickness)); }
|
|
3673
|
+
/* The loading text is a caption under the drawing, never a chip over it. */
|
|
3674
|
+
.kjun-chart-skeleton-status { flex: none; margin-top: var(--_kjun-extension-chart-skeleton-label-gap); color: var(--_kjun-color-text-tertiary); font-size: var(--_kjun-type-caption-size); line-height: var(--_kjun-type-caption-line); font-weight: var(--_kjun-type-caption-weight); letter-spacing: var(--_kjun-type-caption-tracking); overflow-wrap: anywhere; }
|
|
3548
3675
|
|
|
3549
3676
|
.kjun-data-status > .kjun-spinner { flex-shrink: 0; }
|
|
3550
3677
|
.kjun-data-status > span:last-child { min-width: 0; overflow-wrap: anywhere; }
|
|
@@ -3749,263 +3876,74 @@
|
|
|
3749
3876
|
background: var(--_kjun-price-down-bg);
|
|
3750
3877
|
}
|
|
3751
3878
|
|
|
3752
|
-
.kjun-table-cards {
|
|
3753
|
-
display: flex;
|
|
3754
|
-
flex-direction: column;
|
|
3755
|
-
gap: var(--_kjun-extension-table-card-gap);
|
|
3756
|
-
padding: var(--_kjun-extension-table-card-list-padding);
|
|
3757
|
-
}
|
|
3758
|
-
|
|
3759
|
-
.kjun-table-card {
|
|
3760
|
-
background: var(--_kjun-bg-primary);
|
|
3761
|
-
border: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
3762
|
-
border-radius: var(--_kjun-extension-table-card-radius);
|
|
3763
|
-
padding: var(--_kjun-extension-table-card-padding);
|
|
3764
|
-
cursor: pointer;
|
|
3765
|
-
transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
3766
|
-
}
|
|
3767
|
-
|
|
3768
|
-
.kjun-table-card:hover {
|
|
3769
|
-
background: var(--_kjun-bg-hover);
|
|
3770
|
-
}
|
|
3771
|
-
|
|
3772
|
-
/* justify-between 대신 left에 flex:1 — 인라인 액션이 있어도 배지/버튼이 항상 우측에 정렬된다 */
|
|
3773
|
-
.kjun-table-card-header {
|
|
3774
|
-
display: flex;
|
|
3775
|
-
align-items: center;
|
|
3776
|
-
gap: var(--_kjun-extension-table-card-gap);
|
|
3777
|
-
margin-bottom: var(--_kjun-extension-table-card-gap);
|
|
3778
|
-
}
|
|
3779
|
-
|
|
3780
|
-
.kjun-table-card-header-left {
|
|
3781
|
-
display: flex;
|
|
3782
|
-
flex: 1;
|
|
3783
|
-
align-items: center;
|
|
3784
|
-
min-width: 0;
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
.kjun-table-card-header-actions {
|
|
3788
|
-
display: flex;
|
|
3789
|
-
flex-shrink: 0;
|
|
3790
|
-
gap: var(--_kjun-extension-table-card-field-gap);
|
|
3791
|
-
}
|
|
3792
3879
|
|
|
3793
|
-
.kjun-table-
|
|
3794
|
-
|
|
3795
|
-
overflow-wrap: anywhere;
|
|
3796
|
-
color: var(--_kjun-text-primary);
|
|
3797
|
-
font-size: var(--_kjun-type-card-title-size);
|
|
3798
|
-
line-height: var(--_kjun-type-card-title-line);
|
|
3799
|
-
font-weight: var(--_kjun-type-card-title-weight);
|
|
3800
|
-
letter-spacing: var(--_kjun-type-card-title-tracking);
|
|
3880
|
+
.kjun-table-scroll {
|
|
3881
|
+
overflow: auto;
|
|
3801
3882
|
}
|
|
3802
|
-
|
|
3803
|
-
.kjun-table-
|
|
3804
|
-
|
|
3805
|
-
font-size: var(--_kjun-type-caption-size);
|
|
3806
|
-
line-height: var(--_kjun-type-caption-line);
|
|
3807
|
-
font-weight: var(--_kjun-type-caption-weight);
|
|
3808
|
-
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
3883
|
+
/* A sticky header without maxHeight sticks to the page, so this wrapper must not become a scroll container. */
|
|
3884
|
+
.kjun-table-scroll[data-page-sticky] {
|
|
3885
|
+
overflow: visible;
|
|
3809
3886
|
}
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3887
|
+
.kjun-table {
|
|
3888
|
+
width: 100%;
|
|
3889
|
+
border-collapse: collapse;
|
|
3890
|
+
font-size: var(--_kjun-type-body-size);
|
|
3891
|
+
color: var(--_kjun-color-text);
|
|
3892
|
+
line-height: var(--_kjun-type-body-line);
|
|
3893
|
+
font-weight: var(--_kjun-type-body-weight);
|
|
3894
|
+
letter-spacing: var(--_kjun-type-body-tracking);
|
|
3815
3895
|
}
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
border-top: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
3819
|
-
margin-top: var(--_kjun-geometry-dimension-value12);
|
|
3820
|
-
padding-top: var(--_kjun-geometry-dimension-value12);
|
|
3896
|
+
.kjun-table thead {
|
|
3897
|
+
background: var(--_kjun-color-table-header-bg);
|
|
3821
3898
|
}
|
|
3822
|
-
|
|
3823
|
-
.kjun-table-card-section-label {
|
|
3824
|
-
margin-bottom: var(--_kjun-extension-table-card-metric-gap);
|
|
3825
|
-
color: var(--_kjun-text-tertiary);
|
|
3899
|
+
.kjun-table th {
|
|
3826
3900
|
font-size: var(--_kjun-type-control-small-size);
|
|
3901
|
+
text-align: left;
|
|
3902
|
+
color: var(--_kjun-color-text-secondary);
|
|
3903
|
+
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-color-border);
|
|
3904
|
+
padding: var(--_kjun-geometry-table-header-padding-y) var(--_kjun-geometry-table-header-padding-x);
|
|
3827
3905
|
line-height: var(--_kjun-type-control-small-line);
|
|
3828
3906
|
font-weight: var(--_kjun-type-control-small-weight);
|
|
3829
3907
|
letter-spacing: var(--_kjun-type-control-small-tracking);
|
|
3830
3908
|
}
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3909
|
+
.kjun-table th button {
|
|
3910
|
+
display: inline-flex;
|
|
3911
|
+
align-items: center;
|
|
3912
|
+
gap: var(--_kjun-geometry-dimension-value4);
|
|
3913
|
+
border: 0;
|
|
3914
|
+
padding: 0;
|
|
3915
|
+
background: transparent;
|
|
3916
|
+
color: inherit;
|
|
3917
|
+
cursor: pointer;
|
|
3918
|
+
font: inherit;
|
|
3834
3919
|
}
|
|
3835
|
-
|
|
3836
|
-
.kjun-table-
|
|
3837
|
-
|
|
3838
|
-
|
|
3920
|
+
/* A sortable column shows a quiet two-way arrow; the sorted column reads in the text color with its direction. */
|
|
3921
|
+
.kjun-table th button .kjun-table-sort-icon { color: var(--_kjun-color-text-tertiary); }
|
|
3922
|
+
.kjun-table th[aria-sort="ascending"] button,
|
|
3923
|
+
.kjun-table th[aria-sort="descending"] button { font-weight: var(--_kjun-type-section-title-weight); }
|
|
3924
|
+
.kjun-table th[aria-sort="ascending"] button,
|
|
3925
|
+
.kjun-table th[aria-sort="descending"] button,
|
|
3926
|
+
.kjun-table th[aria-sort="ascending"] button .kjun-table-sort-icon,
|
|
3927
|
+
.kjun-table th[aria-sort="descending"] button .kjun-table-sort-icon { color: var(--_kjun-color-text); }
|
|
3928
|
+
.kjun-table th button:hover .kjun-table-sort-icon { color: var(--_kjun-color-text-secondary); }
|
|
3929
|
+
.kjun-table th button:focus-visible {
|
|
3930
|
+
outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);
|
|
3931
|
+
outline-offset: var(--_kjun-state-focus-offset);
|
|
3932
|
+
border-radius: var(--_kjun-geometry-radius-radius4);
|
|
3839
3933
|
}
|
|
3840
|
-
|
|
3841
|
-
.kjun-table
|
|
3842
|
-
|
|
3843
|
-
|
|
3934
|
+
/* Rows part with the lighter divider; the header keeps the border line. */
|
|
3935
|
+
.kjun-table td {
|
|
3936
|
+
padding: var(--_kjun-geometry-table-cell-padding-regular-y) var(--_kjun-geometry-table-cell-padding-regular-x);
|
|
3937
|
+
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-color-divider);
|
|
3938
|
+
overflow-wrap: anywhere;
|
|
3844
3939
|
}
|
|
3845
|
-
|
|
3846
|
-
.kjun-table
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
font-weight: var(--_kjun-type-caption-weight);
|
|
3850
|
-
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
3940
|
+
/* Numbers read as one unit: a numeric column keeps its content width instead of breaking between digits. */
|
|
3941
|
+
.kjun-table td[data-numeric] {
|
|
3942
|
+
white-space: nowrap;
|
|
3943
|
+
overflow-wrap: normal;
|
|
3851
3944
|
}
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
width: 100%;
|
|
3855
|
-
}
|
|
3856
|
-
|
|
3857
|
-
.kjun-table-card-field {
|
|
3858
|
-
display: flex;
|
|
3859
|
-
flex-direction: column;
|
|
3860
|
-
gap: var(--_kjun-extension-table-card-value-gap);
|
|
3861
|
-
/* grid 자식의 기본 min-width:auto는 긴 콘텐츠(JSON 등)가 truncate를 무력화하고
|
|
3862
|
-
셀을 카드 밖까지 밀어내게 한다 — 0으로 풀어야 슬롯의 truncate가 동작한다 */
|
|
3863
|
-
min-width: 0;
|
|
3864
|
-
}
|
|
3865
|
-
|
|
3866
|
-
.kjun-table-card-field--full {
|
|
3867
|
-
grid-column: 1 / -1;
|
|
3868
|
-
}
|
|
3869
|
-
|
|
3870
|
-
.kjun-table-card-field--label-right .kjun-table-card-label {
|
|
3871
|
-
display: block;
|
|
3872
|
-
width: 100%;
|
|
3873
|
-
text-align: right;
|
|
3874
|
-
}
|
|
3875
|
-
|
|
3876
|
-
.kjun-table-card-label {
|
|
3877
|
-
color: var(--_kjun-text-tertiary);
|
|
3878
|
-
font-size: var(--_kjun-type-caption-size);
|
|
3879
|
-
line-height: var(--_kjun-type-caption-line);
|
|
3880
|
-
font-weight: var(--_kjun-type-caption-weight);
|
|
3881
|
-
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
3882
|
-
}
|
|
3883
|
-
|
|
3884
|
-
.kjun-table-card-value {
|
|
3885
|
-
color: var(--_kjun-text-primary);
|
|
3886
|
-
font-size: var(--_kjun-type-body-size);
|
|
3887
|
-
min-width: 0;
|
|
3888
|
-
line-height: var(--_kjun-type-body-line);
|
|
3889
|
-
font-weight: var(--_kjun-type-body-weight);
|
|
3890
|
-
letter-spacing: var(--_kjun-type-body-tracking);
|
|
3891
|
-
}
|
|
3892
|
-
|
|
3893
|
-
.kjun-table-card-badges {
|
|
3894
|
-
display: flex;
|
|
3895
|
-
align-items: center;
|
|
3896
|
-
gap: var(--_kjun-extension-table-card-field-gap);
|
|
3897
|
-
flex-shrink: 0;
|
|
3898
|
-
}
|
|
3899
|
-
|
|
3900
|
-
.kjun-table-card-actions {
|
|
3901
|
-
border-top: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
3902
|
-
padding-top: var(--_kjun-extension-table-card-gap);
|
|
3903
|
-
margin-top: var(--_kjun-extension-table-card-gap);
|
|
3904
|
-
display: flex;
|
|
3905
|
-
justify-content: flex-end;
|
|
3906
|
-
gap: var(--_kjun-extension-table-card-gap);
|
|
3907
|
-
}
|
|
3908
|
-
|
|
3909
|
-
.kjun-table-card-expand-toggle {
|
|
3910
|
-
display: flex;
|
|
3911
|
-
align-items: center;
|
|
3912
|
-
width: 100%;
|
|
3913
|
-
padding: var(--_kjun-extension-table-card-metric-gap) 0;
|
|
3914
|
-
margin-top: var(--_kjun-extension-table-card-field-gap);
|
|
3915
|
-
font-size: var(--_kjun-type-caption-size);
|
|
3916
|
-
color: var(--_kjun-text-tertiary);
|
|
3917
|
-
background: none;
|
|
3918
|
-
border: none;
|
|
3919
|
-
cursor: pointer;
|
|
3920
|
-
transition: color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
3921
|
-
line-height: var(--_kjun-type-caption-line);
|
|
3922
|
-
font-weight: var(--_kjun-type-caption-weight);
|
|
3923
|
-
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
3924
|
-
}
|
|
3925
|
-
|
|
3926
|
-
.kjun-table-card-expand-toggle:hover {
|
|
3927
|
-
color: var(--_kjun-text-secondary);
|
|
3928
|
-
}
|
|
3929
|
-
|
|
3930
|
-
.kjun-table-card-expand-content {
|
|
3931
|
-
border-top: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
3932
|
-
padding-top: var(--_kjun-extension-table-card-gap);
|
|
3933
|
-
margin-top: var(--_kjun-extension-table-card-field-gap);
|
|
3934
|
-
}
|
|
3935
|
-
|
|
3936
|
-
.kjun-table-card-empty {
|
|
3937
|
-
text-align: center;
|
|
3938
|
-
padding: var(--_kjun-extension-table-card-empty-padding);
|
|
3939
|
-
color: var(--_kjun-text-tertiary);
|
|
3940
|
-
}
|
|
3941
|
-
|
|
3942
|
-
.kjun-table-scroll {
|
|
3943
|
-
overflow: auto;
|
|
3944
|
-
}
|
|
3945
|
-
/* A sticky header without maxHeight sticks to the page, so this wrapper must not become a scroll container. */
|
|
3946
|
-
.kjun-table-scroll[data-page-sticky] {
|
|
3947
|
-
overflow: visible;
|
|
3948
|
-
}
|
|
3949
|
-
.kjun-table {
|
|
3950
|
-
width: 100%;
|
|
3951
|
-
border-collapse: collapse;
|
|
3952
|
-
font-size: var(--_kjun-type-body-size);
|
|
3953
|
-
color: var(--_kjun-color-text);
|
|
3954
|
-
line-height: var(--_kjun-type-body-line);
|
|
3955
|
-
font-weight: var(--_kjun-type-body-weight);
|
|
3956
|
-
letter-spacing: var(--_kjun-type-body-tracking);
|
|
3957
|
-
}
|
|
3958
|
-
.kjun-table thead {
|
|
3959
|
-
background: var(--_kjun-color-table-header-bg);
|
|
3960
|
-
}
|
|
3961
|
-
.kjun-table th {
|
|
3962
|
-
font-size: var(--_kjun-type-control-small-size);
|
|
3963
|
-
text-align: left;
|
|
3964
|
-
color: var(--_kjun-color-text-secondary);
|
|
3965
|
-
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-color-border);
|
|
3966
|
-
padding: var(--_kjun-geometry-table-header-padding-y) var(--_kjun-geometry-table-header-padding-x);
|
|
3967
|
-
line-height: var(--_kjun-type-control-small-line);
|
|
3968
|
-
font-weight: var(--_kjun-type-control-small-weight);
|
|
3969
|
-
letter-spacing: var(--_kjun-type-control-small-tracking);
|
|
3970
|
-
}
|
|
3971
|
-
.kjun-table th button {
|
|
3972
|
-
display: inline-flex;
|
|
3973
|
-
align-items: center;
|
|
3974
|
-
gap: var(--_kjun-geometry-dimension-value4);
|
|
3975
|
-
border: 0;
|
|
3976
|
-
padding: 0;
|
|
3977
|
-
background: transparent;
|
|
3978
|
-
color: inherit;
|
|
3979
|
-
cursor: pointer;
|
|
3980
|
-
font: inherit;
|
|
3981
|
-
}
|
|
3982
|
-
/* A sortable column shows a quiet two-way arrow; the sorted column reads in the text color with its direction. */
|
|
3983
|
-
.kjun-table th button .kjun-table-sort-icon { color: var(--_kjun-color-text-tertiary); }
|
|
3984
|
-
.kjun-table th[aria-sort="ascending"] button,
|
|
3985
|
-
.kjun-table th[aria-sort="descending"] button { font-weight: var(--_kjun-type-section-title-weight); }
|
|
3986
|
-
.kjun-table th[aria-sort="ascending"] button,
|
|
3987
|
-
.kjun-table th[aria-sort="descending"] button,
|
|
3988
|
-
.kjun-table th[aria-sort="ascending"] button .kjun-table-sort-icon,
|
|
3989
|
-
.kjun-table th[aria-sort="descending"] button .kjun-table-sort-icon { color: var(--_kjun-color-text); }
|
|
3990
|
-
.kjun-table th button:hover .kjun-table-sort-icon { color: var(--_kjun-color-text-secondary); }
|
|
3991
|
-
.kjun-table th button:focus-visible {
|
|
3992
|
-
outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);
|
|
3993
|
-
outline-offset: var(--_kjun-state-focus-offset);
|
|
3994
|
-
border-radius: var(--_kjun-geometry-radius-radius4);
|
|
3995
|
-
}
|
|
3996
|
-
/* Rows part with the lighter divider; the header keeps the border line. */
|
|
3997
|
-
.kjun-table td {
|
|
3998
|
-
padding: var(--_kjun-geometry-table-cell-padding-regular-y) var(--_kjun-geometry-table-cell-padding-regular-x);
|
|
3999
|
-
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-color-divider);
|
|
4000
|
-
overflow-wrap: anywhere;
|
|
4001
|
-
}
|
|
4002
|
-
/* Numbers read as one unit: a numeric column keeps its content width instead of breaking between digits. */
|
|
4003
|
-
.kjun-table td[data-numeric] {
|
|
4004
|
-
white-space: nowrap;
|
|
4005
|
-
overflow-wrap: normal;
|
|
4006
|
-
}
|
|
4007
|
-
.kjun-table[data-compact="true"] td {
|
|
4008
|
-
padding: var(--_kjun-geometry-table-cell-padding-compact-y) var(--_kjun-geometry-table-cell-padding-compact-x);
|
|
3945
|
+
.kjun-table[data-compact="true"] td {
|
|
3946
|
+
padding: var(--_kjun-geometry-table-cell-padding-compact-y) var(--_kjun-geometry-table-cell-padding-compact-x);
|
|
4009
3947
|
}
|
|
4010
3948
|
/* Stripes are a faint text tint so they never match the header or an expanded row. They follow the data rows
|
|
4011
3949
|
(data-stripe), so an expanded row or a group header does not flip the pattern. */
|
|
@@ -4142,6 +4080,8 @@
|
|
|
4142
4080
|
.kjun-table-toolbar {
|
|
4143
4081
|
background: var(--_kjun-color-surface);
|
|
4144
4082
|
}
|
|
4083
|
+
/* The narrow-screen sort choice: as wide as the search at most, narrower when both share a phone row. */
|
|
4084
|
+
.kjun-table-sort { flex: 1 1 0; min-width: 0; max-width: var(--_kjun-geometry-table-search-width); }
|
|
4145
4085
|
/* The selection bar shares the selected rows' fill. */
|
|
4146
4086
|
.kjun-table-selection {
|
|
4147
4087
|
background: var(--_kjun-color-selected-bg);
|
|
@@ -4149,6 +4089,216 @@
|
|
|
4149
4089
|
padding-inline-start: var(--_kjun-geometry-dimension-value8);
|
|
4150
4090
|
}
|
|
4151
4091
|
.kjun-table-selection > strong { margin-inline-end: auto; }
|
|
4092
|
+
|
|
4093
|
+
/* Narrow-screen table layouts: cards (responsive="card") and two-line rows (responsive="list"), with their totals. */
|
|
4094
|
+
/* Cards: one row per card on narrow screens. "stacked" is a field grid, "rows" label-value lines, "tiles" small cards,
|
|
4095
|
+
at least two a row and more as the width allows. Header (selection, title, badges), subtitle, highlight, fields, then one footer row (expand, actions). */
|
|
4096
|
+
.kjun-table-cards {
|
|
4097
|
+
display: flex;
|
|
4098
|
+
flex-direction: column;
|
|
4099
|
+
gap: var(--_kjun-extension-table-card-card-gap);
|
|
4100
|
+
padding: var(--_kjun-extension-table-card-list-padding);
|
|
4101
|
+
}
|
|
4102
|
+
.kjun-table-card-items, .kjun-table-card-group-section, .kjun-table-list-group {
|
|
4103
|
+
display: flex;
|
|
4104
|
+
flex-direction: column;
|
|
4105
|
+
gap: var(--_kjun-extension-table-card-card-gap);
|
|
4106
|
+
}
|
|
4107
|
+
/* Tiles: the ungrouped list, or each group's own list, is the grid. Two columns at least, more where each keeps tileMinWidth. */
|
|
4108
|
+
.kjun-table-cards[data-layout="tiles"]:not([data-grouped]), .kjun-table-cards[data-layout="tiles"] .kjun-table-card-items {
|
|
4109
|
+
display: grid;
|
|
4110
|
+
grid-template-columns: repeat(auto-fill, minmax(min(var(--_kjun-extension-table-card-tile-min-width), calc(50% - var(--_kjun-extension-table-card-card-gap) / 2)), 1fr));
|
|
4111
|
+
}
|
|
4112
|
+
.kjun-table-cards[data-layout="tiles"] > :is(.kjun-table-card-empty, .kjun-table-totals) { grid-column: 1 / -1; }
|
|
4113
|
+
/* A list group stacks its header and rows without the card gap; its header starts at the rows' text. */
|
|
4114
|
+
.kjun-table-list-group { gap: 0; }
|
|
4115
|
+
.kjun-table-list-group > .kjun-table-card-group { padding: var(--_kjun-geometry-dimension-value8) var(--_kjun-geometry-table-list-padding-x) var(--_kjun-geometry-dimension-value4); }
|
|
4116
|
+
.kjun-table-card-group {
|
|
4117
|
+
padding: var(--_kjun-geometry-dimension-value8) var(--_kjun-geometry-dimension-value4) 0;
|
|
4118
|
+
display: flex;
|
|
4119
|
+
align-items: center;
|
|
4120
|
+
color: var(--_kjun-text-secondary);
|
|
4121
|
+
font-size: var(--_kjun-type-caption-size);
|
|
4122
|
+
line-height: var(--_kjun-type-caption-line);
|
|
4123
|
+
font-weight: var(--_kjun-type-control-weight);
|
|
4124
|
+
}
|
|
4125
|
+
.kjun-table-card-group > .kjun-button { flex-shrink: 0; margin-inline-end: var(--_kjun-geometry-dimension-value4); }
|
|
4126
|
+
.kjun-table-card-group-total { margin-inline-start: auto; color: var(--_kjun-text-secondary); font-variant-numeric: tabular-nums; text-align: end; }
|
|
4127
|
+
.kjun-table-card-group-total > span + span::before { content: " · "; }
|
|
4128
|
+
.kjun-table-card-group-count { margin-inline-start: var(--_kjun-geometry-dimension-value4); color: var(--_kjun-text-tertiary); font-weight: var(--_kjun-type-caption-weight); }
|
|
4129
|
+
|
|
4130
|
+
.kjun-table-card {
|
|
4131
|
+
min-width: 0;
|
|
4132
|
+
background: var(--_kjun-color-surface);
|
|
4133
|
+
border: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
4134
|
+
border-radius: var(--_kjun-extension-table-card-radius);
|
|
4135
|
+
padding: var(--_kjun-extension-table-card-padding);
|
|
4136
|
+
transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
4137
|
+
}
|
|
4138
|
+
/* Only a card that opens something looks pressable; a selected card takes the selection fill. */
|
|
4139
|
+
.kjun-table-card[tabindex] { cursor: pointer; }
|
|
4140
|
+
.kjun-table-card[data-selected] { background: var(--_kjun-color-selected-bg); }
|
|
4141
|
+
.kjun-table-cards[data-layout="tiles"] .kjun-table-card { padding: var(--_kjun-extension-table-card-tile-padding); }
|
|
4142
|
+
@media (hover: hover) {
|
|
4143
|
+
.kjun-table-card[tabindex]:not([data-selected]):hover { background: var(--_kjun-bg-hover); }
|
|
4144
|
+
}
|
|
4145
|
+
/* The title opens the row for screen readers; it looks like the title and the card keeps the keyboard stop. */
|
|
4146
|
+
.kjun-table-card-open {
|
|
4147
|
+
all: unset;
|
|
4148
|
+
overflow-wrap: anywhere;
|
|
4149
|
+
cursor: pointer;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
/* justify-between 대신 left에 flex:1 — 인라인 액션이 있어도 배지/버튼이 항상 우측에 정렬된다.
|
|
4153
|
+
The left side is a grid: the selection box and title share the first line, the subtitle starts under the title. */
|
|
4154
|
+
.kjun-table-card-header {
|
|
4155
|
+
display: flex;
|
|
4156
|
+
align-items: flex-start;
|
|
4157
|
+
gap: var(--_kjun-extension-table-card-gap);
|
|
4158
|
+
}
|
|
4159
|
+
.kjun-table-card-header-left {
|
|
4160
|
+
display: grid;
|
|
4161
|
+
flex: 1;
|
|
4162
|
+
grid-template-columns: minmax(0, 1fr);
|
|
4163
|
+
align-items: center;
|
|
4164
|
+
column-gap: var(--_kjun-extension-table-card-gap);
|
|
4165
|
+
min-width: 0;
|
|
4166
|
+
}
|
|
4167
|
+
.kjun-table-card[data-selectable] .kjun-table-card-header-left { grid-template-columns: auto minmax(0, 1fr); }
|
|
4168
|
+
.kjun-table-card-header-left > .kjun-table-card-subtitle { grid-column: -2 / -1; }
|
|
4169
|
+
.kjun-table-card-header-actions, .kjun-table-card-badges { min-height: var(--_kjun-type-card-title-line); align-items: center; }
|
|
4170
|
+
.kjun-table-card-header-actions {
|
|
4171
|
+
display: flex;
|
|
4172
|
+
flex-shrink: 0;
|
|
4173
|
+
gap: var(--_kjun-extension-table-card-field-gap);
|
|
4174
|
+
}
|
|
4175
|
+
.kjun-table-card-title {
|
|
4176
|
+
min-width: 0;
|
|
4177
|
+
overflow-wrap: anywhere;
|
|
4178
|
+
color: var(--_kjun-text-primary);
|
|
4179
|
+
font-size: var(--_kjun-type-card-title-size);
|
|
4180
|
+
line-height: var(--_kjun-type-card-title-line);
|
|
4181
|
+
font-weight: var(--_kjun-type-card-title-weight);
|
|
4182
|
+
letter-spacing: var(--_kjun-type-card-title-tracking);
|
|
4183
|
+
}
|
|
4184
|
+
.kjun-table-cards[data-layout="tiles"] .kjun-table-card-title {
|
|
4185
|
+
font-size: var(--_kjun-type-control-size);
|
|
4186
|
+
line-height: var(--_kjun-type-control-line);
|
|
4187
|
+
font-weight: var(--_kjun-type-control-weight);
|
|
4188
|
+
}
|
|
4189
|
+
.kjun-table-card-subtitle {
|
|
4190
|
+
margin-top: var(--_kjun-extension-table-card-value-gap);
|
|
4191
|
+
color: var(--_kjun-text-secondary);
|
|
4192
|
+
font-size: var(--_kjun-type-caption-size);
|
|
4193
|
+
line-height: var(--_kjun-type-caption-line);
|
|
4194
|
+
font-weight: var(--_kjun-type-caption-weight);
|
|
4195
|
+
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
4196
|
+
overflow-wrap: anywhere;
|
|
4197
|
+
}
|
|
4198
|
+
.kjun-table-card-highlight { margin-top: var(--_kjun-extension-table-card-section-gap); }
|
|
4199
|
+
.kjun-table-card-highlight > .kjun-table-card-value {
|
|
4200
|
+
display: block;
|
|
4201
|
+
margin-top: var(--_kjun-extension-table-card-value-gap);
|
|
4202
|
+
font-size: var(--_kjun-type-section-title-size);
|
|
4203
|
+
line-height: var(--_kjun-type-section-title-line);
|
|
4204
|
+
font-weight: var(--_kjun-type-section-title-weight);
|
|
4205
|
+
font-variant-numeric: tabular-nums;
|
|
4206
|
+
}
|
|
4207
|
+
.kjun-table-cards[data-layout="tiles"] .kjun-table-card-highlight > .kjun-table-card-value {
|
|
4208
|
+
font-size: var(--_kjun-type-control-size);
|
|
4209
|
+
line-height: var(--_kjun-type-control-line);
|
|
4210
|
+
font-weight: var(--_kjun-type-control-weight);
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
/* Sections no longer carry labels or rules in a card; a gap separates them. */
|
|
4214
|
+
.kjun-table-card-section { margin-top: var(--_kjun-extension-table-card-section-gap); }
|
|
4215
|
+
.kjun-table-card-body {
|
|
4216
|
+
display: grid;
|
|
4217
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4218
|
+
gap: var(--_kjun-extension-table-card-section-gap) var(--_kjun-extension-table-card-section-gap);
|
|
4219
|
+
}
|
|
4220
|
+
.kjun-table-card-body--stack { grid-template-columns: 1fr; }
|
|
4221
|
+
.kjun-table-card-body--metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
4222
|
+
.kjun-table-card-body--metrics .kjun-table-card-field { align-items: center; text-align: center; }
|
|
4223
|
+
.kjun-table-card-body--metrics .kjun-table-card-value { width: 100%; }
|
|
4224
|
+
/* rows: one label-value line per field. */
|
|
4225
|
+
.kjun-table-card-body--rows { grid-template-columns: 1fr; gap: var(--_kjun-extension-table-card-metric-gap); }
|
|
4226
|
+
.kjun-table-card-body--rows .kjun-table-card-field { flex-direction: row; align-items: baseline; justify-content: space-between; gap: var(--_kjun-extension-table-card-gap); }
|
|
4227
|
+
.kjun-table-card-body--rows .kjun-table-card-value { text-align: end; }
|
|
4228
|
+
.kjun-table-card-field {
|
|
4229
|
+
display: flex;
|
|
4230
|
+
flex-direction: column;
|
|
4231
|
+
gap: var(--_kjun-extension-table-card-value-gap);
|
|
4232
|
+
/* grid 자식의 기본 min-width:auto는 긴 콘텐츠(JSON 등)가 truncate를 무력화하고
|
|
4233
|
+
셀을 카드 밖까지 밀어내게 한다 — 0으로 풀어야 슬롯의 truncate가 동작한다 */
|
|
4234
|
+
min-width: 0;
|
|
4235
|
+
}
|
|
4236
|
+
/* Card values start at their label whatever the column's table alignment. */
|
|
4237
|
+
.kjun-table-card-field .kjun-table-card-value { text-align: start; }
|
|
4238
|
+
.kjun-table-card-body--rows .kjun-table-card-field .kjun-table-card-value { text-align: end; }
|
|
4239
|
+
.kjun-table-card-field--full { grid-column: 1 / -1; }
|
|
4240
|
+
.kjun-table-card-field--label-right .kjun-table-card-label { display: block; width: 100%; text-align: right; }
|
|
4241
|
+
.kjun-table-card-label {
|
|
4242
|
+
flex: none;
|
|
4243
|
+
color: var(--_kjun-text-tertiary);
|
|
4244
|
+
font-size: var(--_kjun-type-caption-size);
|
|
4245
|
+
line-height: var(--_kjun-type-caption-line);
|
|
4246
|
+
font-weight: var(--_kjun-type-caption-weight);
|
|
4247
|
+
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
4248
|
+
}
|
|
4249
|
+
.kjun-table-card-value {
|
|
4250
|
+
color: var(--_kjun-text-primary);
|
|
4251
|
+
font-size: var(--_kjun-type-body-size);
|
|
4252
|
+
min-width: 0;
|
|
4253
|
+
line-height: var(--_kjun-type-body-line);
|
|
4254
|
+
font-weight: var(--_kjun-type-body-weight);
|
|
4255
|
+
letter-spacing: var(--_kjun-type-body-tracking);
|
|
4256
|
+
}
|
|
4257
|
+
.kjun-table-card-badges {
|
|
4258
|
+
display: flex;
|
|
4259
|
+
align-items: center;
|
|
4260
|
+
gap: var(--_kjun-extension-table-card-field-gap);
|
|
4261
|
+
flex-shrink: 0;
|
|
4262
|
+
}
|
|
4263
|
+
.kjun-table-cards[data-layout="tiles"] .kjun-table-card-header { flex-wrap: wrap; }
|
|
4264
|
+
/* One footer row: expand on the start side, row actions on the end side. */
|
|
4265
|
+
.kjun-table-card-footer {
|
|
4266
|
+
display: flex;
|
|
4267
|
+
align-items: center;
|
|
4268
|
+
justify-content: space-between;
|
|
4269
|
+
gap: var(--_kjun-extension-table-card-gap);
|
|
4270
|
+
margin-top: var(--_kjun-extension-table-card-footer-gap);
|
|
4271
|
+
padding-top: var(--_kjun-extension-table-card-footer-gap);
|
|
4272
|
+
border-top: var(--_kjun-border-default-width) solid var(--_kjun-color-divider);
|
|
4273
|
+
}
|
|
4274
|
+
.kjun-table-card-actions {
|
|
4275
|
+
display: flex;
|
|
4276
|
+
justify-content: flex-end;
|
|
4277
|
+
gap: var(--_kjun-extension-table-card-gap);
|
|
4278
|
+
margin-inline-start: auto;
|
|
4279
|
+
}
|
|
4280
|
+
.kjun-table-card-expand-toggle {
|
|
4281
|
+
display: flex;
|
|
4282
|
+
align-items: center;
|
|
4283
|
+
font-size: var(--_kjun-type-caption-size);
|
|
4284
|
+
color: var(--_kjun-text-secondary);
|
|
4285
|
+
line-height: var(--_kjun-type-caption-line);
|
|
4286
|
+
font-weight: var(--_kjun-type-control-weight);
|
|
4287
|
+
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
4288
|
+
}
|
|
4289
|
+
.kjun-table-card-expand-content {
|
|
4290
|
+
margin-top: var(--_kjun-extension-table-card-section-gap);
|
|
4291
|
+
padding: var(--_kjun-geometry-table-expanded-padding-y) var(--_kjun-geometry-table-expanded-padding-x);
|
|
4292
|
+
border-radius: var(--_kjun-geometry-radius-radius12);
|
|
4293
|
+
background: var(--_kjun-color-secondary);
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
.kjun-table-card-empty {
|
|
4297
|
+
text-align: center;
|
|
4298
|
+
padding: var(--_kjun-extension-table-card-empty-padding);
|
|
4299
|
+
color: var(--_kjun-text-tertiary);
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4152
4302
|
/* responsive="list": rows without a header, a title over one meta line and the value with badges at the end. */
|
|
4153
4303
|
.kjun-table-list {
|
|
4154
4304
|
display: flex;
|
|
@@ -4522,6 +4672,8 @@
|
|
|
4522
4672
|
letter-spacing: var(--_kjun-type-body-tracking);
|
|
4523
4673
|
}
|
|
4524
4674
|
.kjun-market-skeleton-identity { display: grid; grid-template-rows: var(--_kjun-type-body-line) var(--_kjun-type-caption-line); gap: var(--_kjun-geometry-dimension-value2); align-items: center; }
|
|
4675
|
+
.kjun-market-skeleton-identity > .kjun-skeleton { display: block; line-height: var(--_kjun-type-body-line); }
|
|
4676
|
+
.kjun-market-skeleton-identity > .kjun-skeleton + .kjun-skeleton { line-height: var(--_kjun-type-caption-line); }
|
|
4525
4677
|
.kjun-market-skeleton-value { display: inline-block; max-width: 100%; vertical-align: middle; }
|
|
4526
4678
|
|
|
4527
4679
|
/* Market tables fade their trailing edge while columns still overflow it, like the Native grid. */
|
|
@@ -4737,13 +4889,27 @@
|
|
|
4737
4889
|
border-radius: var(--_kjun-extension-kpi-row-radius);
|
|
4738
4890
|
}
|
|
4739
4891
|
.kjun-kpi-row__item {
|
|
4892
|
+
--_kjun-kpi-row-divider-left: var(--_kjun-border-default-width);
|
|
4893
|
+
--_kjun-kpi-row-divider-top: 0px;
|
|
4894
|
+
position: relative;
|
|
4740
4895
|
flex: 1;
|
|
4741
4896
|
padding: var(--_kjun-extension-kpi-row-md-item-padding-y) var(--_kjun-extension-kpi-row-md-item-padding-x);
|
|
4742
|
-
|
|
4897
|
+
/* Reserve the separator space without rounding its paint with the click target. */
|
|
4898
|
+
border-left: var(--_kjun-kpi-row-divider-left) solid transparent;
|
|
4899
|
+
border-top: var(--_kjun-kpi-row-divider-top) solid transparent;
|
|
4743
4900
|
min-width: 0;
|
|
4744
4901
|
}
|
|
4902
|
+
.kjun-kpi-row__item::before {
|
|
4903
|
+
content: "";
|
|
4904
|
+
position: absolute;
|
|
4905
|
+
inset: calc(-1 * var(--_kjun-kpi-row-divider-top)) 0 0 calc(-1 * var(--_kjun-kpi-row-divider-left));
|
|
4906
|
+
border-left: var(--_kjun-kpi-row-divider-left) solid var(--_kjun-border-primary);
|
|
4907
|
+
border-top: var(--_kjun-kpi-row-divider-top) solid var(--_kjun-border-primary);
|
|
4908
|
+
border-radius: 0;
|
|
4909
|
+
pointer-events: none;
|
|
4910
|
+
}
|
|
4745
4911
|
.kjun-kpi-row__item:first-child {
|
|
4746
|
-
|
|
4912
|
+
--_kjun-kpi-row-divider-left: 0px;
|
|
4747
4913
|
}
|
|
4748
4914
|
.kjun-kpi-row__item--clickable {
|
|
4749
4915
|
cursor: pointer;
|
|
@@ -4824,20 +4990,20 @@
|
|
|
4824
4990
|
}
|
|
4825
4991
|
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__item {
|
|
4826
4992
|
padding: var(--_kjun-extension-kpi-row-mobile-item-padding-y) var(--_kjun-extension-kpi-row-mobile-item-padding-x);
|
|
4827
|
-
|
|
4828
|
-
|
|
4993
|
+
--_kjun-kpi-row-divider-left: 0px;
|
|
4994
|
+
--_kjun-kpi-row-divider-top: 0px;
|
|
4829
4995
|
}
|
|
4830
4996
|
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__item:nth-child(even) {
|
|
4831
|
-
|
|
4997
|
+
--_kjun-kpi-row-divider-left: var(--_kjun-border-default-width);
|
|
4832
4998
|
}
|
|
4833
4999
|
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__item:nth-child(n + 3) {
|
|
4834
|
-
|
|
5000
|
+
--_kjun-kpi-row-divider-top: var(--_kjun-border-default-width);
|
|
4835
5001
|
}
|
|
4836
5002
|
/* 홀수 개수의 마지막 항목은 전폭으로 마감해 빈 반쪽 셀을 남기지 않는다. */
|
|
4837
5003
|
.kjun-kpi-row:not(.kjun-kpi-row--sm):not(.kjun-kpi-row--hero-first)
|
|
4838
5004
|
.kjun-kpi-row__item:last-child:nth-child(odd) {
|
|
4839
5005
|
grid-column: 1 / -1;
|
|
4840
|
-
|
|
5006
|
+
--_kjun-kpi-row-divider-left: 0px;
|
|
4841
5007
|
}
|
|
4842
5008
|
/* hero-first는 전폭 헤드라인 아래에 나머지 항목을 2열로 배치한다. */
|
|
4843
5009
|
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__item--full {
|
|
@@ -4845,12 +5011,12 @@
|
|
|
4845
5011
|
}
|
|
4846
5012
|
.kjun-kpi-row:not(.kjun-kpi-row--sm).kjun-kpi-row--hero-first
|
|
4847
5013
|
.kjun-kpi-row__item:nth-child(2) {
|
|
4848
|
-
|
|
4849
|
-
|
|
5014
|
+
--_kjun-kpi-row-divider-left: 0px;
|
|
5015
|
+
--_kjun-kpi-row-divider-top: var(--_kjun-border-default-width);
|
|
4850
5016
|
}
|
|
4851
5017
|
.kjun-kpi-row:not(.kjun-kpi-row--sm).kjun-kpi-row--hero-first
|
|
4852
5018
|
.kjun-kpi-row__item:nth-child(3) {
|
|
4853
|
-
|
|
5019
|
+
--_kjun-kpi-row-divider-left: var(--_kjun-border-default-width);
|
|
4854
5020
|
}
|
|
4855
5021
|
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__label-row {
|
|
4856
5022
|
gap: var(--_kjun-extension-kpi-row-mobile-label-gap);
|
|
@@ -4881,7 +5047,8 @@
|
|
|
4881
5047
|
.kjun-kpi-row__item:nth-child(n) {
|
|
4882
5048
|
flex: 0 0 calc((100% - var(--_kjun-extension-kpi-row-summary-gap-x)) / 2);
|
|
4883
5049
|
padding: 0;
|
|
4884
|
-
|
|
5050
|
+
--_kjun-kpi-row-divider-left: 0px;
|
|
5051
|
+
--_kjun-kpi-row-divider-top: 0px;
|
|
4885
5052
|
}
|
|
4886
5053
|
.kjun-kpi-row.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm)
|
|
4887
5054
|
.kjun-kpi-row__item--full:nth-child(n),
|
|
@@ -5001,20 +5168,20 @@
|
|
|
5001
5168
|
.kjun-kpi-row--sm .kjun-kpi-row__item {
|
|
5002
5169
|
flex: 1 1 50%;
|
|
5003
5170
|
padding: var(--_kjun-extension-kpi-row-small-mobile-item-padding-y) var(--_kjun-extension-kpi-row-small-mobile-item-padding-x);
|
|
5004
|
-
|
|
5005
|
-
|
|
5171
|
+
--_kjun-kpi-row-divider-left: 0px;
|
|
5172
|
+
--_kjun-kpi-row-divider-top: var(--_kjun-border-default-width);
|
|
5006
5173
|
}
|
|
5007
5174
|
.kjun-kpi-row--sm:not(.kjun-kpi-row--hero-first)
|
|
5008
5175
|
.kjun-kpi-row__item:first-child,
|
|
5009
5176
|
.kjun-kpi-row--sm:not(.kjun-kpi-row--hero-first)
|
|
5010
5177
|
.kjun-kpi-row__item:nth-child(2) {
|
|
5011
|
-
|
|
5178
|
+
--_kjun-kpi-row-divider-top: 0px;
|
|
5012
5179
|
}
|
|
5013
5180
|
.kjun-kpi-row--sm .kjun-kpi-row__item--full {
|
|
5014
5181
|
flex-basis: 100%;
|
|
5015
5182
|
}
|
|
5016
5183
|
.kjun-kpi-row--sm.kjun-kpi-row--hero-first .kjun-kpi-row__item:first-child {
|
|
5017
|
-
|
|
5184
|
+
--_kjun-kpi-row-divider-top: 0px;
|
|
5018
5185
|
}
|
|
5019
5186
|
.kjun-kpi-row--sm .kjun-kpi-row__value {
|
|
5020
5187
|
}
|
|
@@ -5108,44 +5275,123 @@
|
|
|
5108
5275
|
.kjun-card[data-pressable][aria-disabled="true"] { cursor: not-allowed; opacity: var(--_kjun-state-opacity-disabled); }
|
|
5109
5276
|
@media (prefers-reduced-motion: reduce) { .kjun-card[data-pressable] { transition: none; } .kjun-card[data-pressable]:active { transform: none; } }
|
|
5110
5277
|
|
|
5278
|
+
/* Toasts keep clear of the safe area at their edge, plus the app's offset (KjunFeedbackProvider placement / offset).
|
|
5279
|
+
The inset is padding inside the stack rather than its position, so the cards' shadows are never clipped, and
|
|
5280
|
+
inset-inline-end keeps the stack on the reading end in right-to-left pages. */
|
|
5111
5281
|
.kjun-toast-stack {
|
|
5112
5282
|
position: fixed;
|
|
5113
|
-
top: var(--_kjun-
|
|
5114
|
-
|
|
5283
|
+
top: calc(var(--_kjun-safe-area-top) + var(--_kjun-toast-offset, 0px));
|
|
5284
|
+
inset-inline-end: 0;
|
|
5115
5285
|
display: flex;
|
|
5116
5286
|
flex-direction: column;
|
|
5117
5287
|
gap: var(--_kjun-extension-toast-stack-gap);
|
|
5118
|
-
|
|
5288
|
+
padding: var(--_kjun-extension-toast-inset);
|
|
5289
|
+
max-height: calc(100dvh - var(--_kjun-safe-area-top) - var(--_kjun-safe-area-bottom) - var(--_kjun-toast-offset, 0px));
|
|
5290
|
+
box-sizing: border-box;
|
|
5119
5291
|
overflow: hidden;
|
|
5120
5292
|
pointer-events: none;
|
|
5121
5293
|
}
|
|
5294
|
+
.kjun-toast-stack[data-placement="bottom"] {
|
|
5295
|
+
top: auto;
|
|
5296
|
+
bottom: calc(var(--_kjun-safe-area-bottom) + var(--_kjun-toast-offset, 0px));
|
|
5297
|
+
}
|
|
5298
|
+
.kjun-toast-stack:empty { display: none; }
|
|
5299
|
+
/* A toast is one neutral card for every tone: colour lives in the status icon, and a danger toast also colours its
|
|
5300
|
+
heading. Width follows the content between minWidth and maxWidth; the slot lets it hug the stack's edge. */
|
|
5301
|
+
.kjun-toast-slot { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
|
|
5302
|
+
.kjun-toast-slot > * { min-width: 0; max-width: 100%; }
|
|
5303
|
+
/* Several cards share the widest card's width so the stack's far edge stays straight; capsules keep hugging. */
|
|
5304
|
+
.kjun-toast-stack[data-uniform="true"] .kjun-toast-slot:not(:has(.kjun-toast[data-compact="true"])) > * { flex: 1; }
|
|
5305
|
+
.kjun-toast-stack[data-uniform="true"] .kjun-toast:not([data-compact="true"]) { width: 100%; max-width: none; }
|
|
5306
|
+
/* Toasts not drawn as cards show as card edges behind the far card, with their count. On a narrow screen the
|
|
5307
|
+
folded stack's edges are a button that unfolds it. */
|
|
5308
|
+
.kjun-toast-more {
|
|
5309
|
+
position: relative;
|
|
5310
|
+
display: flex;
|
|
5311
|
+
justify-content: flex-end;
|
|
5312
|
+
align-items: flex-end;
|
|
5313
|
+
height: calc(var(--_kjun-extension-toast-peek-offset) * var(--_kjun-toast-peek-depth, 1));
|
|
5314
|
+
margin-top: calc(-1 * var(--_kjun-extension-toast-stack-gap));
|
|
5315
|
+
--_kjun-toast-peek-reach: calc(var(--_kjun-extension-toast-peek-offset) * var(--_kjun-toast-peek-depth, 1));
|
|
5316
|
+
padding: 0;
|
|
5317
|
+
border: 0;
|
|
5318
|
+
background: none;
|
|
5319
|
+
font: inherit;
|
|
5320
|
+
color: inherit;
|
|
5321
|
+
pointer-events: none;
|
|
5322
|
+
}
|
|
5323
|
+
.kjun-toast-stack[data-placement="bottom"] .kjun-toast-more { margin-top: 0; margin-bottom: calc(-1 * var(--_kjun-extension-toast-stack-gap)); align-items: flex-start; }
|
|
5324
|
+
.kjun-toast-more::before,
|
|
5325
|
+
.kjun-toast-more::after {
|
|
5326
|
+
content: "";
|
|
5327
|
+
position: absolute;
|
|
5328
|
+
inset-inline: var(--_kjun-extension-toast-peek-inset);
|
|
5329
|
+
/* Each edge starts behind the far card's rounded bottom and shows one peek offset below the one in front. */
|
|
5330
|
+
top: calc(-1 * var(--_kjun-extension-toast-radius));
|
|
5331
|
+
height: calc(var(--_kjun-extension-toast-radius) + var(--_kjun-extension-toast-peek-offset));
|
|
5332
|
+
border: var(--_kjun-border-default-width) solid var(--_kjun-color-border);
|
|
5333
|
+
border-radius: var(--_kjun-extension-toast-radius);
|
|
5334
|
+
background: var(--_kjun-color-surface);
|
|
5335
|
+
box-shadow: var(--_kjun-toast-elevation);
|
|
5336
|
+
}
|
|
5337
|
+
.kjun-toast-more::after { display: none; }
|
|
5338
|
+
.kjun-toast-more[data-depth="2"]::after {
|
|
5339
|
+
display: block;
|
|
5340
|
+
inset-inline: calc(2 * var(--_kjun-extension-toast-peek-inset));
|
|
5341
|
+
height: calc(var(--_kjun-extension-toast-radius) + 2 * var(--_kjun-extension-toast-peek-offset));
|
|
5342
|
+
z-index: -1;
|
|
5343
|
+
}
|
|
5344
|
+
.kjun-toast-stack[data-placement="bottom"] .kjun-toast-more::before,
|
|
5345
|
+
.kjun-toast-stack[data-placement="bottom"] .kjun-toast-more::after { top: auto; bottom: calc(-1 * var(--_kjun-extension-toast-radius)); }
|
|
5346
|
+
.kjun-toast-more-count {
|
|
5347
|
+
position: absolute;
|
|
5348
|
+
z-index: 2;
|
|
5349
|
+
top: var(--_kjun-toast-peek-reach);
|
|
5350
|
+
inset-inline-end: var(--_kjun-extension-toast-peek-inset);
|
|
5351
|
+
transform: translateY(-50%);
|
|
5352
|
+
padding: var(--_kjun-geometry-dimension-value2) var(--_kjun-geometry-dimension-value8);
|
|
5353
|
+
border-radius: var(--_kjun-extension-toast-compact-radius);
|
|
5354
|
+
background: var(--_kjun-color-text);
|
|
5355
|
+
color: var(--_kjun-color-surface);
|
|
5356
|
+
font-size: var(--_kjun-type-meta-size);
|
|
5357
|
+
line-height: var(--_kjun-type-meta-line);
|
|
5358
|
+
font-weight: var(--_kjun-type-control-weight);
|
|
5359
|
+
letter-spacing: var(--_kjun-type-meta-tracking);
|
|
5360
|
+
}
|
|
5361
|
+
.kjun-toast-stack[data-placement="bottom"] .kjun-toast-more-count { top: auto; bottom: var(--_kjun-toast-peek-reach); transform: translateY(50%); }
|
|
5362
|
+
/* An expanded stack shows every toast, so it scrolls when they outgrow the screen; its toggle folds it again. */
|
|
5363
|
+
.kjun-toast-stack[data-expanded] { overflow-y: auto; overscroll-behavior: contain; }
|
|
5364
|
+
.kjun-toast-more[data-expanded]::before,
|
|
5365
|
+
.kjun-toast-more[data-expanded]::after { display: none; }
|
|
5366
|
+
button.kjun-toast-more { pointer-events: auto; cursor: pointer; height: calc(var(--_kjun-extension-toast-peek-offset) * var(--_kjun-toast-peek-depth, 1) + var(--_kjun-geometry-native-minimum-touch-target) / 2); }
|
|
5367
|
+
button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring); outline-offset: var(--_kjun-state-focus-offset); border-radius: var(--_kjun-extension-toast-radius); }
|
|
5122
5368
|
.kjun-toast {
|
|
5123
5369
|
box-shadow: var(--_kjun-toast-elevation);
|
|
5124
5370
|
display: flex;
|
|
5125
|
-
align-items:
|
|
5371
|
+
align-items: flex-start;
|
|
5126
5372
|
gap: var(--_kjun-extension-toast-gap);
|
|
5127
|
-
padding: var(--_kjun-extension-toast-padding);
|
|
5373
|
+
padding: var(--_kjun-extension-toast-padding-y) var(--_kjun-extension-toast-padding-end) var(--_kjun-extension-toast-padding-y) var(--_kjun-extension-toast-padding-start);
|
|
5128
5374
|
background: var(--_kjun-color-surface);
|
|
5129
5375
|
border-radius: var(--_kjun-extension-toast-radius);
|
|
5130
5376
|
border: var(--_kjun-border-default-width) solid var(--_kjun-color-border);
|
|
5131
5377
|
min-width: var(--_kjun-extension-toast-min-width);
|
|
5132
5378
|
max-width: var(--_kjun-extension-toast-max-width);
|
|
5133
|
-
|
|
5134
|
-
overflow: hidden;
|
|
5379
|
+
box-sizing: border-box;
|
|
5135
5380
|
pointer-events: auto;
|
|
5381
|
+
word-break: keep-all;
|
|
5382
|
+
overflow-wrap: anywhere;
|
|
5383
|
+
/* Vertical drags still scroll the page; sideways ones are the swipe that closes the toast. */
|
|
5384
|
+
touch-action: pan-y;
|
|
5136
5385
|
}
|
|
5137
|
-
.kjun-toast[data-
|
|
5138
|
-
|
|
5139
|
-
}
|
|
5386
|
+
.kjun-toast[data-side="false"] { padding-inline-end: var(--_kjun-extension-toast-padding-start); }
|
|
5387
|
+
/* The icon sits in a box one text line tall, so it centres on the first line with or without a heading. */
|
|
5140
5388
|
.kjun-toast-icon {
|
|
5141
5389
|
display: flex;
|
|
5142
5390
|
align-items: center;
|
|
5143
5391
|
justify-content: center;
|
|
5144
5392
|
flex-shrink: 0;
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
font-weight: var(--_kjun-type-input-weight);
|
|
5148
|
-
letter-spacing: var(--_kjun-type-input-tracking);
|
|
5393
|
+
height: var(--_kjun-type-control-line);
|
|
5394
|
+
font-size: var(--_kjun-extension-toast-icon-size);
|
|
5149
5395
|
}
|
|
5150
5396
|
.kjun-toast-content {
|
|
5151
5397
|
flex: 1;
|
|
@@ -5155,38 +5401,61 @@
|
|
|
5155
5401
|
display: block;
|
|
5156
5402
|
font-size: var(--_kjun-type-control-size);
|
|
5157
5403
|
color: var(--_kjun-color-text);
|
|
5158
|
-
margin-bottom: var(--_kjun-extension-toast-title-gap);
|
|
5159
5404
|
line-height: var(--_kjun-type-control-line);
|
|
5160
5405
|
font-weight: var(--_kjun-type-control-weight);
|
|
5161
5406
|
letter-spacing: var(--_kjun-type-control-tracking);
|
|
5162
5407
|
}
|
|
5163
5408
|
.kjun-toast-message {
|
|
5409
|
+
display: block;
|
|
5164
5410
|
font-size: var(--_kjun-type-body-size);
|
|
5165
5411
|
color: var(--_kjun-color-text-secondary);
|
|
5166
|
-
overflow-wrap: anywhere;
|
|
5167
5412
|
line-height: var(--_kjun-type-body-line);
|
|
5168
5413
|
font-weight: var(--_kjun-type-body-weight);
|
|
5169
5414
|
letter-spacing: var(--_kjun-type-body-tracking);
|
|
5170
5415
|
}
|
|
5416
|
+
.kjun-toast strong + .kjun-toast-message { margin-top: var(--_kjun-extension-toast-title-gap); }
|
|
5417
|
+
/* Without a heading the message is the toast's one line: label weight in the text colour. */
|
|
5418
|
+
.kjun-toast[data-title="false"] .kjun-toast-message {
|
|
5419
|
+
color: var(--_kjun-color-text);
|
|
5420
|
+
font-size: var(--_kjun-type-label-size);
|
|
5421
|
+
line-height: var(--_kjun-type-label-line);
|
|
5422
|
+
font-weight: var(--_kjun-type-label-weight);
|
|
5423
|
+
letter-spacing: var(--_kjun-type-label-tracking);
|
|
5424
|
+
}
|
|
5425
|
+
.kjun-toast[data-tone="danger"] strong,
|
|
5426
|
+
.kjun-toast[data-tone="danger"][data-title="false"] .kjun-toast-message { color: var(--_kjun-color-danger); }
|
|
5427
|
+
.kjun-toast-actions { display: flex; margin-top: var(--_kjun-extension-toast-action-gap); }
|
|
5428
|
+
/* Actions read as text in every tone; the side column centres them and the close button on the first line. */
|
|
5429
|
+
.kjun-toast-side {
|
|
5430
|
+
display: flex;
|
|
5431
|
+
align-items: center;
|
|
5432
|
+
gap: var(--_kjun-extension-toast-side-gap);
|
|
5433
|
+
flex-shrink: 0;
|
|
5434
|
+
margin-block: calc((var(--_kjun-type-control-line) - var(--_kjun-extension-toast-close-size)) / 2);
|
|
5435
|
+
}
|
|
5171
5436
|
.kjun-toast-action {
|
|
5172
|
-
display:
|
|
5173
|
-
|
|
5437
|
+
display: inline-flex;
|
|
5438
|
+
align-items: center;
|
|
5439
|
+
min-height: var(--_kjun-type-control-line);
|
|
5174
5440
|
padding: 0;
|
|
5175
5441
|
background: none;
|
|
5176
5442
|
border: none;
|
|
5443
|
+
border-radius: var(--_kjun-extension-toast-close-radius);
|
|
5177
5444
|
font: inherit;
|
|
5178
|
-
font-size: var(--_kjun-type-
|
|
5179
|
-
color: var(--_kjun-color-
|
|
5445
|
+
font-size: var(--_kjun-type-control-size);
|
|
5446
|
+
color: var(--_kjun-color-text);
|
|
5447
|
+
text-decoration: underline;
|
|
5448
|
+
text-decoration-thickness: var(--_kjun-border-default-width);
|
|
5449
|
+
text-underline-offset: var(--_kjun-geometry-dimension-value3);
|
|
5450
|
+
white-space: nowrap;
|
|
5180
5451
|
cursor: pointer;
|
|
5181
5452
|
transition: color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
5182
|
-
line-height: var(--_kjun-type-
|
|
5183
|
-
font-weight: var(--_kjun-type-
|
|
5184
|
-
letter-spacing: var(--_kjun-type-
|
|
5185
|
-
}
|
|
5186
|
-
.kjun-toast-action:hover {
|
|
5187
|
-
color: var(--_kjun-color-brand-hover);
|
|
5188
|
-
text-decoration: underline;
|
|
5453
|
+
line-height: var(--_kjun-type-control-line);
|
|
5454
|
+
font-weight: var(--_kjun-type-control-weight);
|
|
5455
|
+
letter-spacing: var(--_kjun-type-control-tracking);
|
|
5189
5456
|
}
|
|
5457
|
+
.kjun-toast-side .kjun-toast-action { min-height: var(--_kjun-extension-toast-close-size); }
|
|
5458
|
+
.kjun-toast-action:hover { color: var(--_kjun-color-text-secondary); }
|
|
5190
5459
|
.kjun-toast-close {
|
|
5191
5460
|
display: flex;
|
|
5192
5461
|
align-items: center;
|
|
@@ -5198,7 +5467,8 @@
|
|
|
5198
5467
|
border: none;
|
|
5199
5468
|
border-radius: var(--_kjun-extension-toast-close-radius);
|
|
5200
5469
|
cursor: pointer;
|
|
5201
|
-
color: var(--_kjun-color-text-
|
|
5470
|
+
color: var(--_kjun-color-text-secondary);
|
|
5471
|
+
font-size: var(--_kjun-extension-toast-close-icon-size);
|
|
5202
5472
|
transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out), color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
5203
5473
|
flex-shrink: 0;
|
|
5204
5474
|
}
|
|
@@ -5211,56 +5481,48 @@
|
|
|
5211
5481
|
outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);
|
|
5212
5482
|
outline-offset: var(--_kjun-state-focus-offset);
|
|
5213
5483
|
}
|
|
5214
|
-
.
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
height: var(--_kjun-extension-toast-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
from {
|
|
5224
|
-
width: var(--_kjun-toast-start);
|
|
5225
|
-
}
|
|
5226
|
-
to {
|
|
5227
|
-
width: 0;
|
|
5228
|
-
}
|
|
5484
|
+
/* Compact: one short line in a capsule that only holds the icon, the message and an optional action. */
|
|
5485
|
+
.kjun-toast[data-compact="true"] {
|
|
5486
|
+
align-items: center;
|
|
5487
|
+
min-width: 0;
|
|
5488
|
+
min-height: var(--_kjun-extension-toast-compact-height);
|
|
5489
|
+
padding: 0 var(--_kjun-extension-toast-compact-padding-end) 0 var(--_kjun-extension-toast-compact-padding-start);
|
|
5490
|
+
gap: var(--_kjun-extension-toast-compact-gap);
|
|
5491
|
+
border-radius: var(--_kjun-extension-toast-compact-radius);
|
|
5492
|
+
white-space: nowrap;
|
|
5229
5493
|
}
|
|
5494
|
+
.kjun-toast[data-compact="true"] .kjun-toast-side { margin-block: 0; }
|
|
5230
5495
|
@media (width <= 640px) {
|
|
5231
5496
|
.kjun-toast-stack {
|
|
5232
|
-
|
|
5233
|
-
right: var(--_kjun-extension-toast-inset);
|
|
5497
|
+
inset-inline: 0;
|
|
5234
5498
|
}
|
|
5235
|
-
.kjun-toast {
|
|
5236
|
-
|
|
5499
|
+
.kjun-toast-slot { display: block; }
|
|
5500
|
+
.kjun-toast-slot:has(.kjun-toast[data-compact="true"]) { display: flex; justify-content: center; }
|
|
5501
|
+
.kjun-toast:not([data-compact="true"]) {
|
|
5237
5502
|
min-width: 0;
|
|
5238
5503
|
max-width: 100%;
|
|
5239
5504
|
width: 100%;
|
|
5240
|
-
box-sizing: border-box;
|
|
5241
5505
|
}
|
|
5242
5506
|
.kjun-toast-close {
|
|
5243
5507
|
min-width: var(--_kjun-geometry-native-minimum-touch-target);
|
|
5244
5508
|
min-height: var(--_kjun-geometry-native-minimum-touch-target);
|
|
5245
5509
|
}
|
|
5510
|
+
.kjun-toast-side { margin-block: calc((var(--_kjun-type-control-line) - var(--_kjun-geometry-native-minimum-touch-target)) / 2); }
|
|
5246
5511
|
}
|
|
5247
5512
|
@media (prefers-reduced-motion: reduce) {
|
|
5248
5513
|
.kjun-toast-action,
|
|
5249
5514
|
.kjun-toast-close {
|
|
5250
5515
|
transition: none;
|
|
5251
5516
|
}
|
|
5252
|
-
.kjun-toast-progress {
|
|
5253
|
-
animation: none;
|
|
5254
|
-
width: 100%;
|
|
5255
|
-
}
|
|
5256
5517
|
}
|
|
5257
5518
|
|
|
5258
5519
|
.kjun-list-section,.kjun-top-navigation,.kjun-bottom-navigation,.kjun-floating-navigation,.kjun-bottom-action-bar{min-width:0;max-width:100%;color:var(--_kjun-color-text);background:var(--_kjun-color-surface)}
|
|
5259
5520
|
.kjun-list-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--_kjun-extension-list-gap);padding:var(--_kjun-extension-list-padding)}.kjun-list-heading :is(h2,h3,h4){font-size:var(--_kjun-type-card-title-size);margin:0;line-height:var(--_kjun-type-card-title-line);font-weight:var(--_kjun-type-card-title-weight);letter-spacing:var(--_kjun-type-card-title-tracking)}.kjun-list-heading p{margin:var(--_kjun-geometry-dimension-value4) 0 0;font-size:var(--_kjun-type-caption-size);color:var(--_kjun-color-text-secondary);overflow-wrap:anywhere;line-height:var(--_kjun-type-caption-line);font-weight:var(--_kjun-type-caption-weight);letter-spacing:var(--_kjun-type-caption-tracking)}
|
|
5260
|
-
.kjun-list{list-style:none;padding:0;margin:0}.kjun-list-row{display:flex;align-items:center;gap:var(--_kjun-extension-list-gap);position:relative;min-width:0}/* Dividers start where the text does
|
|
5521
|
+
.kjun-list{list-style:none;padding:0;margin:0}.kjun-list-row{--_kjun-list-leading-width:var(--_kjun-extension-list-leading-width);display:flex;align-items:center;gap:var(--_kjun-extension-list-gap);position:relative;min-width:0}/* Dividers start where the text does, after the icon or custom leading column. */
|
|
5522
|
+
.kjun-list-row[data-leading=icon]{--_kjun-list-leading-width:var(--_kjun-geometry-dimension-value24)}
|
|
5261
5523
|
.kjun-list-row:not(:last-child)::after,.kjun-list-item:not(:last-child)::after{content:"";position:absolute;inset-inline:var(--_kjun-list-divider-inset,var(--_kjun-extension-list-padding)) 0;bottom:0;height:var(--_kjun-border-default-width);background:var(--_kjun-color-divider);pointer-events:none}
|
|
5262
|
-
.kjun-list-row[data-leading]{--_kjun-list-divider-inset:calc(var(--_kjun-extension-list-padding) + var(--_kjun-
|
|
5263
|
-
.kjun-list-leading{flex-shrink:0;display:flex;align-items:center;justify-content:center;min-width:var(--_kjun-
|
|
5524
|
+
.kjun-list-row[data-leading]{--_kjun-list-divider-inset:calc(var(--_kjun-extension-list-padding) + var(--_kjun-list-leading-width) + var(--_kjun-extension-list-gap))}.kjun-list[data-divider=false]>:is(.kjun-list-row,.kjun-list-item)::after{content:none}.kjun-list[data-density=compact] .kjun-list-main{min-height:var(--_kjun-extension-list-compact-minimum-height);padding-block:var(--_kjun-extension-list-compact-padding-y)}.kjun-list-main{display:flex;align-items:center;gap:var(--_kjun-extension-list-gap);flex:1;min-width:0;min-height:var(--_kjun-extension-list-minimum-height);padding:var(--_kjun-extension-list-padding);text-align:start;color:inherit;text-decoration:none;background:transparent;border:0;font:inherit}.kjun-list-main:is(button,a):not(:disabled,[aria-disabled=true]):hover{background:var(--_kjun-color-hover)}.kjun-list-main:is(button,a):not(:disabled,[aria-disabled=true]):active{background:var(--_kjun-color-active)}.kjun-list-body{flex:1;min-width:0}.kjun-list-content{display:block;margin-top:var(--_kjun-extension-list-description-gap)}.kjun-list-title,.kjun-list-description{display:block;overflow-wrap:anywhere;line-height:1.5}.kjun-list-title{font-size:var(--_kjun-type-control-size);line-height:var(--_kjun-type-control-line);font-weight:var(--_kjun-type-control-weight);letter-spacing:var(--_kjun-type-control-tracking)}.kjun-list-description{font-size:var(--_kjun-type-caption-size);color:var(--_kjun-color-text-secondary);line-height:var(--_kjun-type-caption-line);font-weight:var(--_kjun-type-caption-weight);letter-spacing:var(--_kjun-type-caption-tracking)}/* Icons use 24px; custom leading content, including avatars and images, keeps a 40px minimum. */
|
|
5525
|
+
.kjun-list-leading{flex-shrink:0;display:flex;align-items:center;justify-content:center;min-width:var(--_kjun-list-leading-width)}
|
|
5264
5526
|
.kjun-list-icon{color:var(--_kjun-color-text-secondary)}.kjun-list-trailing{overflow-wrap:anywhere;max-width:35%}.kjun-list-actions{display:flex;flex-wrap:wrap;gap:var(--_kjun-extension-list-actions-gap);padding-inline-end:var(--_kjun-extension-list-actions-padding);max-width:45%}
|
|
5265
5527
|
/* A disabled row disables its actions too, so the row never reads as partly available. */
|
|
5266
5528
|
.kjun-list-actions[data-disabled]{opacity:var(--_kjun-state-opacity-disabled)}
|
|
@@ -5293,8 +5555,19 @@
|
|
|
5293
5555
|
/* Bottom bars meet the screen edges, so their items draw the ring inside, like tabs. */
|
|
5294
5556
|
.kjun-scope .kjun-bottom-navigation a:focus-visible{outline-offset:var(--_kjun-state-focus-inset-offset)}
|
|
5295
5557
|
.kjun-scope :is(.kjun-list-main[aria-disabled=true],.kjun-bottom-navigation a[aria-disabled=true],.kjun-floating-navigation a[aria-disabled=true],.kjun-list-main:disabled){opacity:var(--_kjun-state-opacity-disabled);cursor:default}
|
|
5558
|
+
/* Slider: the rail runs the full width under the label and value; thumbs travel inside it, so the track keeps half a thumb of
|
|
5559
|
+
margin and the rail reaches back out to the edges. The touch area stays 44px while the visible band sits captionGap under the
|
|
5560
|
+
caption. */
|
|
5296
5561
|
.kjun-slider {
|
|
5297
|
-
|
|
5562
|
+
--_kjun-slider-track:var(--_kjun-extension-slider-track); --_kjun-slider-thumb:var(--_kjun-extension-slider-thumb);
|
|
5563
|
+
--_kjun-slider-band:var(--_kjun-extension-slider-track-height); --_kjun-slider-pressed:var(--_kjun-extension-slider-pressed-thumb);
|
|
5564
|
+
/* The lift plus a hairline in the border role, so a white thumb still reads on a white surface. */
|
|
5565
|
+
--_kjun-slider-thumb-shadow:0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border), var(--_kjun-slider-elevation);
|
|
5566
|
+
width:100%; min-width:var(--_kjun-extension-slider-minimum-width); display:grid;
|
|
5567
|
+
}
|
|
5568
|
+
.kjun-slider[data-size=sm] {
|
|
5569
|
+
--_kjun-slider-track:var(--_kjun-extension-slider-small-track); --_kjun-slider-thumb:var(--_kjun-extension-slider-small-thumb);
|
|
5570
|
+
--_kjun-slider-band:var(--_kjun-extension-slider-small-track-height); --_kjun-slider-pressed:var(--_kjun-extension-slider-small-pressed-thumb);
|
|
5298
5571
|
}
|
|
5299
5572
|
.kjun-slider-caption {
|
|
5300
5573
|
display:flex; align-items:baseline; justify-content:space-between;
|
|
@@ -5312,55 +5585,81 @@
|
|
|
5312
5585
|
font-size:var(--_kjun-type-control-size); line-height:var(--_kjun-type-control-line);
|
|
5313
5586
|
font-weight:var(--_kjun-type-control-weight); letter-spacing:var(--_kjun-type-control-tracking);
|
|
5314
5587
|
}
|
|
5588
|
+
.kjun-slider[data-size=sm] :is(.kjun-slider-label, .kjun-slider-value) {
|
|
5589
|
+
font-size:var(--_kjun-type-control-small-size); line-height:var(--_kjun-type-control-small-line); letter-spacing:var(--_kjun-type-control-small-tracking);
|
|
5590
|
+
}
|
|
5315
5591
|
.kjun-slider-track {
|
|
5316
|
-
height:var(--_kjun-geometry-native-minimum-touch-target); position:relative; margin-inline:calc(var(--_kjun-
|
|
5592
|
+
height:var(--_kjun-geometry-native-minimum-touch-target); position:relative; margin-inline:calc(var(--_kjun-slider-thumb) / 2);
|
|
5593
|
+
}
|
|
5594
|
+
.kjun-slider-caption + .kjun-slider-track {
|
|
5595
|
+
margin-top:calc(var(--_kjun-extension-slider-caption-gap) - (var(--_kjun-geometry-native-minimum-touch-target) - var(--_kjun-slider-band)) / 2);
|
|
5317
5596
|
}
|
|
5318
5597
|
.kjun-slider-rail, .kjun-slider-fill {
|
|
5319
|
-
position:absolute; top:calc(50% - var(--_kjun-
|
|
5320
|
-
height:var(--_kjun-
|
|
5321
|
-
|
|
5598
|
+
position:absolute; top:calc(50% - var(--_kjun-slider-track) / 2);
|
|
5599
|
+
height:var(--_kjun-slider-track); border-radius:var(--_kjun-geometry-radius-radius9999);
|
|
5600
|
+
}
|
|
5601
|
+
.kjun-slider-rail {
|
|
5602
|
+
left:calc(var(--_kjun-slider-thumb) / -2); right:calc(var(--_kjun-slider-thumb) / -2);
|
|
5603
|
+
background:color-mix(in srgb, var(--_kjun-color-text) calc(var(--_kjun-state-opacity-tint-active) * 100%), transparent);
|
|
5322
5604
|
}
|
|
5323
|
-
.kjun-slider-fill { background:var(--_kjun-color-brand);
|
|
5605
|
+
.kjun-slider-fill { background:var(--_kjun-color-brand); }
|
|
5606
|
+
/* One white thumb lifted by a contact shadow, like the switch thumb; pressing adds a brand halo and grows it to pressedThumb. */
|
|
5324
5607
|
.kjun-slider-thumb {
|
|
5325
|
-
top:50%; width:var(--_kjun-
|
|
5326
|
-
|
|
5327
|
-
|
|
5608
|
+
top:50%; width:var(--_kjun-slider-thumb); height:var(--_kjun-slider-thumb); border-radius:50%;
|
|
5609
|
+
background:var(--_kjun-color-switch-thumb); box-shadow:var(--_kjun-slider-thumb-shadow); touch-action:none; cursor:grab;
|
|
5610
|
+
transition:box-shadow var(--_kjun-motion-control) var(--_kjun-ease-out), width var(--_kjun-motion-control) var(--_kjun-ease-out), height var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
5611
|
+
}
|
|
5612
|
+
.kjun-slider-thumb[data-front] { z-index:1; }
|
|
5613
|
+
@media (hover: hover) {
|
|
5614
|
+
.kjun-slider:not([data-disabled=true]) .kjun-slider-thumb:hover {
|
|
5615
|
+
box-shadow:0 0 0 var(--_kjun-extension-slider-halo-size) color-mix(in srgb, var(--_kjun-color-brand) calc(var(--_kjun-state-opacity-tint-control) * 100%), transparent), var(--_kjun-slider-thumb-shadow);
|
|
5616
|
+
}
|
|
5617
|
+
}
|
|
5618
|
+
.kjun-slider:not([data-disabled=true]) .kjun-slider-thumb:is([data-dragging], .kjun-slider-thumb--dragging) {
|
|
5619
|
+
box-shadow:0 0 0 var(--_kjun-extension-slider-halo-size) color-mix(in srgb, var(--_kjun-color-brand) calc(var(--_kjun-state-opacity-tint-active) * 100%), transparent), var(--_kjun-slider-thumb-shadow);
|
|
5620
|
+
width:var(--_kjun-slider-pressed); height:var(--_kjun-slider-pressed); cursor:grabbing;
|
|
5328
5621
|
}
|
|
5329
|
-
.kjun-slider
|
|
5330
|
-
.kjun-slider:not([data-disabled=true]) .kjun-slider-thumb[data-dragging] { border-color:var(--_kjun-color-brand-active); cursor:grabbing; }
|
|
5331
|
-
.kjun-slider-thumb[data-focus-visible] { outline:var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring); outline-offset:var(--_kjun-state-focus-choice-offset); z-index:1; }
|
|
5622
|
+
.kjun-slider-thumb[data-focus-visible] { outline:var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring); outline-offset:var(--_kjun-state-focus-choice-offset); z-index:2; }
|
|
5332
5623
|
.kjun-slider[data-disabled=true] { opacity:var(--_kjun-state-opacity-disabled); }
|
|
5333
5624
|
.kjun-slider[data-disabled=true] .kjun-slider-thumb { cursor:default; }
|
|
5334
|
-
/*
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
}
|
|
5350
|
-
|
|
5351
|
-
.kjun-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
}
|
|
5356
|
-
.kjun-
|
|
5357
|
-
.kjun-
|
|
5358
|
-
.kjun-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
.kjun-
|
|
5362
|
-
.kjun-
|
|
5363
|
-
|
|
5625
|
+
/* marks: a dot at each mark on the rail (light on the fill), and its label under the band. Edge labels align to the rail ends. */
|
|
5626
|
+
.kjun-slider-mark {
|
|
5627
|
+
position:absolute; top:calc(50% - var(--_kjun-extension-slider-mark-size) / 2); width:var(--_kjun-extension-slider-mark-size); height:var(--_kjun-extension-slider-mark-size);
|
|
5628
|
+
margin-inline-start:calc(var(--_kjun-extension-slider-mark-size) / -2); border-radius:50%; background:var(--_kjun-color-text-tertiary); pointer-events:none;
|
|
5629
|
+
}
|
|
5630
|
+
.kjun-slider-mark[data-active] { background:var(--_kjun-color-switch-thumb); }
|
|
5631
|
+
.kjun-slider-marks {
|
|
5632
|
+
position:relative; margin-inline:calc(var(--_kjun-slider-thumb) / 2); height:var(--_kjun-type-caption-line);
|
|
5633
|
+
margin-top:calc(var(--_kjun-extension-slider-mark-label-gap) - (var(--_kjun-geometry-native-minimum-touch-target) - var(--_kjun-slider-band)) / 2);
|
|
5634
|
+
color:var(--_kjun-color-text-tertiary); font-size:var(--_kjun-type-caption-size); line-height:var(--_kjun-type-caption-line);
|
|
5635
|
+
}
|
|
5636
|
+
.kjun-slider-mark-label { position:absolute; top:0; transform:translateX(-50%); white-space:nowrap; }
|
|
5637
|
+
/* A mark label moves the nearer thumb to its value. */
|
|
5638
|
+
.kjun-slider:not([data-disabled=true]) .kjun-slider-mark-label { cursor:pointer; }
|
|
5639
|
+
.kjun-slider-mark-label[data-edge=start] { transform:translateX(calc(var(--_kjun-slider-thumb) / -2)); }
|
|
5640
|
+
.kjun-slider-mark-label[data-edge=end] { transform:translateX(calc(var(--_kjun-slider-thumb) / 2 - 100%)); }
|
|
5641
|
+
/* Vertical: the caption stacks above a rail that runs bottom (min) to top (max), length long; mark labels sit beside it. */
|
|
5642
|
+
.kjun-slider[data-orientation=vertical] {
|
|
5643
|
+
--_kjun-slider-length:var(--_kjun-extension-slider-vertical-length);
|
|
5644
|
+
width:auto; min-width:0; justify-items:center;
|
|
5645
|
+
}
|
|
5646
|
+
.kjun-slider[data-orientation=vertical]:has(.kjun-slider-marks) { grid-template-columns:auto auto; justify-content:center; column-gap:var(--_kjun-extension-slider-mark-label-gap); }
|
|
5647
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-caption { grid-column:1 / -1; flex-direction:column; align-items:center; gap:0; }
|
|
5648
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-value { margin-inline-start:0; }
|
|
5649
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-track {
|
|
5650
|
+
width:var(--_kjun-geometry-native-minimum-touch-target); height:var(--_kjun-slider-length); margin:calc(var(--_kjun-slider-thumb) / 2) 0;
|
|
5651
|
+
}
|
|
5652
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-caption + .kjun-slider-track { margin-top:calc(var(--_kjun-extension-slider-caption-gap) + var(--_kjun-slider-thumb) / 2); }
|
|
5653
|
+
.kjun-slider[data-orientation=vertical] :is(.kjun-slider-rail, .kjun-slider-fill) {
|
|
5654
|
+
top:auto; right:auto; height:auto; left:calc(50% - var(--_kjun-slider-track) / 2); width:var(--_kjun-slider-track);
|
|
5655
|
+
}
|
|
5656
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-rail { top:calc(var(--_kjun-slider-thumb) / -2); bottom:calc(var(--_kjun-slider-thumb) / -2); }
|
|
5657
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-thumb { left:50%; }
|
|
5658
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-mark { left:calc(50% - var(--_kjun-extension-slider-mark-size) / 2); margin:calc(var(--_kjun-extension-slider-mark-size) / -2) 0 0; }
|
|
5659
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-marks {
|
|
5660
|
+
justify-self:start; align-self:end; height:var(--_kjun-slider-length); margin:0 0 calc(var(--_kjun-slider-thumb) / 2);
|
|
5661
|
+
}
|
|
5662
|
+
.kjun-slider[data-orientation=vertical] .kjun-slider-mark-label { left:0; transform:translateY(-50%); }
|
|
5364
5663
|
|
|
5365
5664
|
.kjun-top-navigation { flex-shrink:0; }
|
|
5366
5665
|
.kjun-navigation-content {
|