@kjun-ui/react 0.20.0 → 0.21.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 +3911 -1680
- package/dist/index.js +3591 -1360
- package/dist/styles.css +1410 -356
- package/dist/types/packages/react/src/app-navigation.d.cts +9 -4
- package/dist/types/packages/react/src/app-navigation.d.ts +9 -4
- package/dist/types/packages/react/src/card-actions-context.d.cts +2 -0
- package/dist/types/packages/react/src/card-actions-context.d.ts +2 -0
- package/dist/types/packages/react/src/card.d.cts +15 -5
- package/dist/types/packages/react/src/card.d.ts +15 -5
- package/dist/types/packages/react/src/chip.d.cts +4 -2
- package/dist/types/packages/react/src/chip.d.ts +4 -2
- package/dist/types/packages/react/src/color-picker-parts.d.cts +58 -0
- package/dist/types/packages/react/src/color-picker-parts.d.ts +58 -0
- package/dist/types/packages/react/src/color-picker.d.cts +51 -0
- package/dist/types/packages/react/src/color-picker.d.ts +51 -0
- package/dist/types/packages/react/src/data-state.d.cts +3 -3
- package/dist/types/packages/react/src/data-state.d.ts +3 -3
- package/dist/types/packages/react/src/display.d.cts +14 -5
- package/dist/types/packages/react/src/display.d.ts +14 -5
- package/dist/types/packages/react/src/fab.d.cts +16 -7
- package/dist/types/packages/react/src/fab.d.ts +16 -7
- package/dist/types/packages/react/src/index.d.cts +4 -0
- package/dist/types/packages/react/src/index.d.ts +4 -0
- package/dist/types/packages/react/src/kpi-hero.d.cts +53 -0
- package/dist/types/packages/react/src/kpi-hero.d.ts +53 -0
- package/dist/types/packages/react/src/kpi-row.d.cts +41 -0
- package/dist/types/packages/react/src/kpi-row.d.ts +41 -0
- package/dist/types/packages/react/src/kpi.d.cts +2 -72
- package/dist/types/packages/react/src/kpi.d.ts +2 -72
- package/dist/types/packages/react/src/list-context.d.cts +8 -0
- package/dist/types/packages/react/src/list-context.d.ts +8 -0
- package/dist/types/packages/react/src/list.d.cts +50 -8
- package/dist/types/packages/react/src/list.d.ts +50 -8
- package/dist/types/packages/react/src/modal.d.cts +5 -2
- package/dist/types/packages/react/src/modal.d.ts +5 -2
- package/dist/types/packages/react/src/navigation.d.cts +2 -1
- package/dist/types/packages/react/src/navigation.d.ts +2 -1
- package/dist/types/packages/react/src/number-display.d.cts +2 -0
- package/dist/types/packages/react/src/number-display.d.ts +2 -0
- package/dist/types/packages/react/src/reorder-controls.d.cts +43 -0
- package/dist/types/packages/react/src/reorder-controls.d.ts +43 -0
- package/dist/types/packages/react/src/skeletons.d.cts +2 -1
- package/dist/types/packages/react/src/skeletons.d.ts +2 -1
- package/dist/types/packages/react/src/split-pane.d.cts +30 -0
- package/dist/types/packages/react/src/split-pane.d.ts +30 -0
- package/dist/types/packages/react/src/stacked-bar.d.cts +22 -0
- package/dist/types/packages/react/src/stacked-bar.d.ts +22 -0
- package/dist/types/packages/react/src/table-grid.d.cts +1 -1
- package/dist/types/packages/react/src/table-grid.d.ts +1 -1
- package/dist/types/packages/react/src/zone-gauge.d.cts +28 -0
- package/dist/types/packages/react/src/zone-gauge.d.ts +28 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.cts +1 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +1 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.cts +15 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.ts +15 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +25 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +25 -0
- package/dist/types/shared/package-runtime/card-layout.d.cts +34 -0
- package/dist/types/shared/package-runtime/card-layout.d.ts +34 -0
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +1 -1
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +1 -1
- package/dist/types/shared/package-runtime/chip-size.d.cts +4 -0
- package/dist/types/shared/package-runtime/chip-size.d.ts +4 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.cts +51 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.ts +51 -0
- package/dist/types/shared/package-runtime/color-picker.d.cts +92 -0
- package/dist/types/shared/package-runtime/color-picker.d.ts +92 -0
- package/dist/types/shared/package-runtime/color.d.cts +22 -0
- package/dist/types/shared/package-runtime/color.d.ts +22 -0
- package/dist/types/shared/package-runtime/distribution.d.cts +133 -0
- package/dist/types/shared/package-runtime/distribution.d.ts +133 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.cts +19 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.ts +19 -0
- package/dist/types/shared/package-runtime/kpi.d.cts +89 -0
- package/dist/types/shared/package-runtime/kpi.d.ts +89 -0
- package/dist/types/shared/package-runtime/layer-state.d.cts +2 -1
- package/dist/types/shared/package-runtime/layer-state.d.ts +2 -1
- package/dist/types/shared/package-runtime/list-leading.d.cts +38 -0
- package/dist/types/shared/package-runtime/list-leading.d.ts +38 -0
- package/dist/types/shared/package-runtime/list-row.d.cts +115 -4
- package/dist/types/shared/package-runtime/list-row.d.ts +115 -4
- package/dist/types/shared/package-runtime/market-layout.d.cts +3 -1
- package/dist/types/shared/package-runtime/market-layout.d.ts +3 -1
- package/dist/types/shared/package-runtime/market-query.d.cts +15 -0
- package/dist/types/shared/package-runtime/market-query.d.ts +15 -0
- package/dist/types/shared/package-runtime/messages/ko.d.cts +27 -0
- package/dist/types/shared/package-runtime/messages/ko.d.ts +27 -0
- package/dist/types/shared/package-runtime/messages-context.d.cts +27 -0
- package/dist/types/shared/package-runtime/messages-context.d.ts +27 -0
- package/dist/types/shared/package-runtime/number-sign.d.cts +9 -0
- package/dist/types/shared/package-runtime/number-sign.d.ts +9 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.cts +3 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.ts +3 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.cts +2 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.ts +2 -0
- package/dist/types/shared/package-runtime/reorder-session.d.cts +62 -0
- package/dist/types/shared/package-runtime/reorder-session.d.ts +62 -0
- package/dist/types/shared/package-runtime/reorder.d.cts +81 -0
- package/dist/types/shared/package-runtime/reorder.d.ts +81 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +14 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +14 -0
- package/dist/types/shared/package-runtime/split-pane.d.cts +46 -0
- package/dist/types/shared/package-runtime/split-pane.d.ts +46 -0
- package/dist/types/shared/package-runtime/table-columns.d.cts +28 -0
- package/dist/types/shared/package-runtime/table-columns.d.ts +28 -0
- package/dist/types/shared/package-runtime/table-presentation.d.cts +22 -2
- package/dist/types/shared/package-runtime/table-presentation.d.ts +22 -2
- package/dist/types/shared/package-runtime/table.d.cts +29 -0
- package/dist/types/shared/package-runtime/table.d.ts +29 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.cts +51 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.ts +51 -0
- package/dist/types/shared/package-runtime/use-layer.d.cts +4 -2
- package/dist/types/shared/package-runtime/use-layer.d.ts +4 -2
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -202,7 +202,10 @@
|
|
|
202
202
|
--_kjun-font-semibold: var(--_kjun-type-control-weight);
|
|
203
203
|
--_kjun-elevation-flat: none;
|
|
204
204
|
--_kjun-elevation-raised: 0px 1px 2px 0px var(--_kjun-color-shadow-subtle);
|
|
205
|
-
--_kjun-elevation-
|
|
205
|
+
--_kjun-elevation-handle: 0px 1px 3px 0px var(--_kjun-color-shadow);
|
|
206
|
+
--_kjun-elevation-lifted: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
207
|
+
--_kjun-elevation-floating: 0px 6px 16px 0px var(--_kjun-color-shadow), 0px 1px 3px 0px var(--_kjun-color-shadow-subtle);
|
|
208
|
+
--_kjun-elevation-docked: 0px -8px 24px 0px var(--_kjun-color-shadow-subtle), 0px -1px 0px 0px var(--_kjun-color-shadow-subtle);
|
|
206
209
|
--_kjun-motion-instant: 100ms;
|
|
207
210
|
--_kjun-motion-quick: 150ms;
|
|
208
211
|
--_kjun-motion-fast: 200ms;
|
|
@@ -238,13 +241,17 @@
|
|
|
238
241
|
--_kjun-card-elevation-flat: none;
|
|
239
242
|
--_kjun-card-elevation-raised: 0px 1px 2px 0px var(--_kjun-color-shadow-subtle);
|
|
240
243
|
--_kjun-modal-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
241
|
-
--_kjun-popover-elevation: 0px
|
|
244
|
+
--_kjun-popover-elevation: 0px 6px 16px 0px var(--_kjun-color-shadow), 0px 1px 3px 0px var(--_kjun-color-shadow-subtle);
|
|
245
|
+
--_kjun-fab-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
246
|
+
--_kjun-bottom-navigation-elevation: 0px -8px 24px 0px var(--_kjun-color-shadow-subtle), 0px -1px 0px 0px var(--_kjun-color-shadow-subtle);
|
|
247
|
+
--_kjun-floating-navigation-elevation: 0px 6px 16px 0px var(--_kjun-color-shadow), 0px 1px 3px 0px var(--_kjun-color-shadow-subtle);
|
|
242
248
|
--_kjun-slider-elevation: 0px 1px 3px 0px var(--_kjun-color-shadow);
|
|
243
|
-
--_kjun-menu-elevation: 0px
|
|
249
|
+
--_kjun-menu-elevation: 0px 6px 16px 0px var(--_kjun-color-shadow), 0px 1px 3px 0px var(--_kjun-color-shadow-subtle);
|
|
244
250
|
--_kjun-drawer-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
245
|
-
--_kjun-toast-elevation: 0px
|
|
251
|
+
--_kjun-toast-elevation: 0px 6px 16px 0px var(--_kjun-color-shadow), 0px 1px 3px 0px var(--_kjun-color-shadow-subtle);
|
|
246
252
|
--_kjun-switch-elevation: 0px 1px 3px 0px var(--_kjun-color-shadow);
|
|
247
253
|
--_kjun-tooltip-elevation: none;
|
|
254
|
+
--_kjun-carousel-elevation: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
248
255
|
--_kjun-drawer-elevation-left: 2px 0px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
249
256
|
--_kjun-drawer-elevation-right: -2px 0px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
250
257
|
--_kjun-drawer-elevation-top: 0px 2px 8px 0px var(--_kjun-color-shadow-subtle);
|
|
@@ -265,15 +272,18 @@
|
|
|
265
272
|
--_kjun-extension-popover-radius: 12px;
|
|
266
273
|
--_kjun-extension-popover-padding: 16px;
|
|
267
274
|
--_kjun-extension-popover-gap: 12px;
|
|
268
|
-
--_kjun-extension-popover-header-padding-bottom:
|
|
269
|
-
--_kjun-extension-state-title-size: 1.25rem;
|
|
270
|
-
--_kjun-extension-state-description-size: 0.75rem;
|
|
271
|
-
--_kjun-extension-state-padding-sm: 24px;
|
|
272
|
-
--_kjun-extension-state-padding-md: 48px;
|
|
273
|
-
--_kjun-extension-state-padding-lg: 80px;
|
|
275
|
+
--_kjun-extension-popover-header-padding-bottom: 8px;
|
|
274
276
|
--_kjun-extension-fab-size: 56px;
|
|
275
277
|
--_kjun-extension-fab-inset: 16px;
|
|
276
278
|
--_kjun-extension-fab-icon-size: 24px;
|
|
279
|
+
--_kjun-extension-fab-small-size: 48px;
|
|
280
|
+
--_kjun-extension-fab-small-icon-size: 20px;
|
|
281
|
+
--_kjun-extension-fab-label-gaps-sm: 6px;
|
|
282
|
+
--_kjun-extension-fab-label-gaps-md: 8px;
|
|
283
|
+
--_kjun-extension-fab-padding-start-sm: 12px;
|
|
284
|
+
--_kjun-extension-fab-padding-start-md: 16px;
|
|
285
|
+
--_kjun-extension-fab-padding-end-sm: 16px;
|
|
286
|
+
--_kjun-extension-fab-padding-end-md: 20px;
|
|
277
287
|
--_kjun-extension-list-padding: 16px;
|
|
278
288
|
--_kjun-extension-list-gap: 12px;
|
|
279
289
|
--_kjun-extension-list-minimum-height: 56px;
|
|
@@ -283,12 +293,40 @@
|
|
|
283
293
|
--_kjun-extension-list-actions-gap: 8px;
|
|
284
294
|
--_kjun-extension-list-actions-padding: 16px;
|
|
285
295
|
--_kjun-extension-list-leading-width: 40px;
|
|
296
|
+
--_kjun-extension-list-leading-sizes-xs: 24px;
|
|
297
|
+
--_kjun-extension-list-leading-sizes-sm: 32px;
|
|
298
|
+
--_kjun-extension-list-leading-sizes-md: 40px;
|
|
299
|
+
--_kjun-extension-list-leading-sizes-lg: 56px;
|
|
300
|
+
--_kjun-extension-list-leading-icon-sizes-xs: 16px;
|
|
301
|
+
--_kjun-extension-list-leading-icon-sizes-sm: 20px;
|
|
302
|
+
--_kjun-extension-list-leading-icon-sizes-md: 24px;
|
|
303
|
+
--_kjun-extension-list-leading-icon-sizes-lg: 28px;
|
|
304
|
+
--_kjun-extension-list-icon-background-radius: 9999px;
|
|
286
305
|
--_kjun-extension-list-bare-heading-padding-bottom: 4px;
|
|
306
|
+
--_kjun-extension-list-heading-padding-bottom: 8px;
|
|
287
307
|
--_kjun-extension-list-outside-label-gap: 8px;
|
|
288
308
|
--_kjun-extension-list-footer-gap: 8px;
|
|
289
309
|
--_kjun-extension-list-group-gap: 24px;
|
|
290
310
|
--_kjun-extension-list-flush-group-gap: 8px;
|
|
311
|
+
--_kjun-extension-list-minimum-inset: 6px;
|
|
312
|
+
--_kjun-extension-list-mark-size: 20px;
|
|
313
|
+
--_kjun-extension-list-mark-icon-size: 14px;
|
|
314
|
+
--_kjun-extension-list-checkbox-radius: 6px;
|
|
315
|
+
--_kjun-extension-list-badge-gap: 6px;
|
|
316
|
+
--_kjun-extension-list-open-minimum-height: 64px;
|
|
317
|
+
--_kjun-extension-list-open-compact-minimum-height: 56px;
|
|
318
|
+
--_kjun-extension-list-open-padding-x: 12px;
|
|
319
|
+
--_kjun-extension-list-open-padding-y: 12px;
|
|
320
|
+
--_kjun-extension-list-open-compact-padding-y: 8px;
|
|
321
|
+
--_kjun-extension-list-open-gap: 14px;
|
|
322
|
+
--_kjun-extension-list-open-row-inset: 4px;
|
|
323
|
+
--_kjun-extension-list-open-row-radius: 16px;
|
|
324
|
+
--_kjun-extension-list-open-leading-size: 40px;
|
|
325
|
+
--_kjun-extension-list-open-leading-radius: 12px;
|
|
326
|
+
--_kjun-extension-list-open-leading-icon-size: 20px;
|
|
327
|
+
--_kjun-extension-list-open-group-gap: 20px;
|
|
291
328
|
--_kjun-extension-list-icon-size: 20px;
|
|
329
|
+
--_kjun-extension-list-end-icon-size: 16px;
|
|
292
330
|
--_kjun-extension-navigation-minimum-height: 56px;
|
|
293
331
|
--_kjun-extension-navigation-padding: 16px;
|
|
294
332
|
--_kjun-extension-navigation-gap: 12px;
|
|
@@ -297,8 +335,8 @@
|
|
|
297
335
|
--_kjun-extension-navigation-actions-gap: 8px;
|
|
298
336
|
--_kjun-extension-navigation-item-gap: 4px;
|
|
299
337
|
--_kjun-extension-navigation-item-padding-x: 4px;
|
|
300
|
-
--_kjun-extension-navigation-item-padding-y:
|
|
301
|
-
--_kjun-extension-navigation-badge-padding-x:
|
|
338
|
+
--_kjun-extension-navigation-item-padding-y: 6px;
|
|
339
|
+
--_kjun-extension-navigation-badge-padding-x: 3px;
|
|
302
340
|
--_kjun-extension-navigation-badge-radius: 9999px;
|
|
303
341
|
--_kjun-extension-navigation-action-gap: 12px;
|
|
304
342
|
--_kjun-extension-accordion-minimum-height: 56px;
|
|
@@ -338,19 +376,24 @@
|
|
|
338
376
|
--_kjun-extension-top-navigation-icon-size: 24px;
|
|
339
377
|
--_kjun-extension-top-navigation-description-gap: 4px;
|
|
340
378
|
--_kjun-extension-top-navigation-actions-gap: 8px;
|
|
341
|
-
--_kjun-extension-bottom-navigation-minimum-height:
|
|
342
|
-
--_kjun-extension-bottom-navigation-icon-
|
|
379
|
+
--_kjun-extension-bottom-navigation-minimum-height: 60px;
|
|
380
|
+
--_kjun-extension-bottom-navigation-icon-only-minimum-height: 56px;
|
|
381
|
+
--_kjun-extension-bottom-navigation-icon-size: 28px;
|
|
382
|
+
--_kjun-extension-bottom-navigation-icon-stroke-width: 1.5px;
|
|
383
|
+
--_kjun-extension-bottom-navigation-selected-icon-stroke-width: 2px;
|
|
343
384
|
--_kjun-extension-bottom-navigation-item-gap: 4px;
|
|
344
385
|
--_kjun-extension-bottom-navigation-item-padding-x: 4px;
|
|
345
|
-
--_kjun-extension-bottom-navigation-item-padding-y:
|
|
346
|
-
--_kjun-extension-bottom-navigation-
|
|
347
|
-
--_kjun-extension-bottom-navigation-
|
|
348
|
-
--_kjun-extension-bottom-navigation-
|
|
349
|
-
--_kjun-extension-
|
|
350
|
-
--_kjun-extension-
|
|
351
|
-
--_kjun-extension-
|
|
352
|
-
--_kjun-extension-
|
|
353
|
-
--_kjun-extension-
|
|
386
|
+
--_kjun-extension-bottom-navigation-item-padding-y: 6px;
|
|
387
|
+
--_kjun-extension-bottom-navigation-item-maximum-width: 168px;
|
|
388
|
+
--_kjun-extension-bottom-navigation-press-inset: 4px;
|
|
389
|
+
--_kjun-extension-bottom-navigation-press-radius: 16px;
|
|
390
|
+
--_kjun-extension-navigation-badge-minimum-size: 16px;
|
|
391
|
+
--_kjun-extension-navigation-badge-padding-x: 3px;
|
|
392
|
+
--_kjun-extension-navigation-badge-offset: 4px;
|
|
393
|
+
--_kjun-extension-navigation-badge-overlap: 8px;
|
|
394
|
+
--_kjun-extension-navigation-badge-radius: 9999px;
|
|
395
|
+
--_kjun-extension-navigation-badge-dot-size: 8px;
|
|
396
|
+
--_kjun-extension-navigation-badge-dot-overlap: 6px;
|
|
354
397
|
--_kjun-extension-floating-navigation-item-size: 52px;
|
|
355
398
|
--_kjun-extension-floating-navigation-icon-size: 24px;
|
|
356
399
|
--_kjun-extension-floating-navigation-padding: 6px;
|
|
@@ -385,9 +428,14 @@
|
|
|
385
428
|
--_kjun-extension-chip-typography-lg-font-weight: 400;
|
|
386
429
|
--_kjun-extension-chip-typography-lg-letter-spacing-em: 0em;
|
|
387
430
|
--_kjun-extension-chip-radius: 9999px;
|
|
388
|
-
--_kjun-extension-chip-
|
|
431
|
+
--_kjun-extension-chip-font-weight: 500;
|
|
432
|
+
--_kjun-extension-chip-padding-x-sm: 8px;
|
|
433
|
+
--_kjun-extension-chip-padding-x-md: 12px;
|
|
434
|
+
--_kjun-extension-chip-padding-x-lg: 16px;
|
|
389
435
|
--_kjun-extension-chip-padding-y: 4px;
|
|
390
|
-
--_kjun-extension-chip-
|
|
436
|
+
--_kjun-extension-chip-gaps-sm: 4px;
|
|
437
|
+
--_kjun-extension-chip-gaps-md: 6px;
|
|
438
|
+
--_kjun-extension-chip-gaps-lg: 8px;
|
|
391
439
|
--_kjun-extension-chip-remove-size: 24px;
|
|
392
440
|
--_kjun-extension-chip-native-remove-size: 44px;
|
|
393
441
|
--_kjun-extension-chip-icon-sizes-sm: 14px;
|
|
@@ -410,8 +458,8 @@
|
|
|
410
458
|
--_kjun-extension-slider-small-pressed-thumb: 18px;
|
|
411
459
|
--_kjun-extension-slider-small-track-height: 24px;
|
|
412
460
|
--_kjun-extension-slider-minimum-width: 100px;
|
|
413
|
-
--_kjun-extension-radio-size:
|
|
414
|
-
--_kjun-extension-radio-dot:
|
|
461
|
+
--_kjun-extension-radio-size: 24px;
|
|
462
|
+
--_kjun-extension-radio-dot: 10px;
|
|
415
463
|
--_kjun-extension-radio-border-width: 2px;
|
|
416
464
|
--_kjun-extension-radio-label-gap: 8px;
|
|
417
465
|
--_kjun-extension-market-table-header-height: 44px;
|
|
@@ -446,13 +494,24 @@
|
|
|
446
494
|
--_kjun-extension-menu-divider-height: 1px;
|
|
447
495
|
--_kjun-extension-empty-title-size: 1rem;
|
|
448
496
|
--_kjun-extension-empty-title-line-height: 1.5rem;
|
|
449
|
-
--_kjun-extension-empty-description-size: 0.
|
|
450
|
-
--_kjun-extension-empty-description-line-height:
|
|
497
|
+
--_kjun-extension-empty-description-size: 0.875rem;
|
|
498
|
+
--_kjun-extension-empty-description-line-height: 1.25rem;
|
|
451
499
|
--_kjun-extension-empty-icon-size: 32px;
|
|
452
|
-
--_kjun-extension-empty-icon-
|
|
453
|
-
--_kjun-extension-empty-
|
|
454
|
-
--_kjun-extension-empty-
|
|
500
|
+
--_kjun-extension-empty-icon-stroke: 1.5px;
|
|
501
|
+
--_kjun-extension-empty-icon-gap: 16px;
|
|
502
|
+
--_kjun-extension-empty-description-gap: 4px;
|
|
503
|
+
--_kjun-extension-empty-action-gap: 20px;
|
|
504
|
+
--_kjun-extension-empty-actions-gap: 8px;
|
|
505
|
+
--_kjun-extension-empty-actions-max-width: 280px;
|
|
506
|
+
--_kjun-extension-empty-padding-x: 16px;
|
|
507
|
+
--_kjun-extension-empty-padding-y: 32px;
|
|
455
508
|
--_kjun-extension-empty-text-max-width: 360px;
|
|
509
|
+
--_kjun-extension-empty-sm-padding-y: 24px;
|
|
510
|
+
--_kjun-extension-empty-sm-icon-size: 24px;
|
|
511
|
+
--_kjun-extension-empty-sm-icon-gap: 12px;
|
|
512
|
+
--_kjun-extension-empty-sm-title-size: 0.875rem;
|
|
513
|
+
--_kjun-extension-empty-sm-title-line-height: 1.25rem;
|
|
514
|
+
--_kjun-extension-empty-sm-action-gap: 16px;
|
|
456
515
|
--_kjun-extension-pagination-selector-minimum-width: 104px;
|
|
457
516
|
--_kjun-extension-pagination-gap: 12px;
|
|
458
517
|
--_kjun-extension-pagination-padding: 16px;
|
|
@@ -513,13 +572,17 @@
|
|
|
513
572
|
--_kjun-extension-drawer-padding-x: 20px;
|
|
514
573
|
--_kjun-extension-drawer-padding-y: 16px;
|
|
515
574
|
--_kjun-extension-drawer-body-padding: 20px;
|
|
516
|
-
--_kjun-extension-drawer-
|
|
575
|
+
--_kjun-extension-drawer-sheet-radius: 16px;
|
|
517
576
|
--_kjun-extension-drawer-radius: 0px;
|
|
518
577
|
--_kjun-extension-drawer-close-radius: 8px;
|
|
519
578
|
--_kjun-extension-drawer-sheet-gap: 48px;
|
|
579
|
+
--_kjun-extension-drawer-title-action-gap: 12px;
|
|
580
|
+
--_kjun-extension-drawer-footer-gap: 12px;
|
|
581
|
+
--_kjun-extension-drawer-bare-body-padding-top: 8px;
|
|
520
582
|
--_kjun-extension-drawer-width: 400px;
|
|
583
|
+
--_kjun-extension-drawer-sheet-max-width: 640px;
|
|
521
584
|
--_kjun-extension-drawer-close-size: 32px;
|
|
522
|
-
--_kjun-extension-drawer-close-icon-size:
|
|
585
|
+
--_kjun-extension-drawer-close-icon-size: 18px;
|
|
523
586
|
--_kjun-extension-toast-min-width: 280px;
|
|
524
587
|
--_kjun-extension-toast-max-width: 400px;
|
|
525
588
|
--_kjun-extension-toast-close-size: 32px;
|
|
@@ -560,8 +623,13 @@
|
|
|
560
623
|
--_kjun-extension-alert-md-padding-y: 16px;
|
|
561
624
|
--_kjun-extension-alert-md-gap: 12px;
|
|
562
625
|
--_kjun-extension-alert-md-action-gap: 12px;
|
|
626
|
+
--_kjun-extension-alert-lg-padding-x: 20px;
|
|
627
|
+
--_kjun-extension-alert-lg-padding-y: 20px;
|
|
628
|
+
--_kjun-extension-alert-lg-gap: 14px;
|
|
629
|
+
--_kjun-extension-alert-lg-action-gap: 16px;
|
|
563
630
|
--_kjun-extension-alert-icon-sizes-sm: 16px;
|
|
564
631
|
--_kjun-extension-alert-icon-sizes-md: 18px;
|
|
632
|
+
--_kjun-extension-alert-icon-sizes-lg: 20px;
|
|
565
633
|
--_kjun-extension-alert-close-icon-size: 16px;
|
|
566
634
|
--_kjun-extension-table-card-padding: 16px;
|
|
567
635
|
--_kjun-extension-table-card-radius: 16px;
|
|
@@ -598,7 +666,6 @@
|
|
|
598
666
|
--_kjun-extension-skeleton-list-notification-padding-x: 12px;
|
|
599
667
|
--_kjun-extension-skeleton-line-heights-md: 16px;
|
|
600
668
|
--_kjun-extension-skeleton-avatar-size: 48px;
|
|
601
|
-
--_kjun-extension-skeleton-table-line-height: 14px;
|
|
602
669
|
--_kjun-extension-skeleton-block-height: 100px;
|
|
603
670
|
--_kjun-extension-skeleton-list-heights-market: 72px;
|
|
604
671
|
--_kjun-extension-skeleton-list-heights-compact: 56px;
|
|
@@ -610,6 +677,12 @@
|
|
|
610
677
|
--_kjun-extension-skeleton-identity-height: 20px;
|
|
611
678
|
--_kjun-extension-skeleton-list-avatar-size: 36px;
|
|
612
679
|
--_kjun-extension-choice-minimum-height: 32px;
|
|
680
|
+
--_kjun-extension-state-padding-sm: 24px;
|
|
681
|
+
--_kjun-extension-state-padding-md: 48px;
|
|
682
|
+
--_kjun-extension-state-padding-lg: 80px;
|
|
683
|
+
--_kjun-extension-state-minimum-heights-sm: 176px;
|
|
684
|
+
--_kjun-extension-state-minimum-heights-md: 240px;
|
|
685
|
+
--_kjun-extension-state-minimum-heights-lg: 320px;
|
|
613
686
|
--_kjun-extension-form-item-gap: 20px;
|
|
614
687
|
--_kjun-extension-form-label-gap: 8px;
|
|
615
688
|
--_kjun-extension-form-message-gap: 6px;
|
|
@@ -638,7 +711,7 @@
|
|
|
638
711
|
--_kjun-extension-switch-heights-lg: 32px;
|
|
639
712
|
--_kjun-extension-switch-padding: 2px;
|
|
640
713
|
--_kjun-extension-switch-radius: 9999px;
|
|
641
|
-
--_kjun-extension-switch-label-gap:
|
|
714
|
+
--_kjun-extension-switch-label-gap: 8px;
|
|
642
715
|
--_kjun-extension-switch-spinner-size: 12px;
|
|
643
716
|
--_kjun-extension-tooltip-padding-x: 8px;
|
|
644
717
|
--_kjun-extension-tooltip-padding-y: 4px;
|
|
@@ -683,12 +756,12 @@
|
|
|
683
756
|
--_kjun-extension-kpi-hero-radius: 12px;
|
|
684
757
|
--_kjun-extension-kpi-hero-layout-gap: 24px;
|
|
685
758
|
--_kjun-extension-kpi-hero-prefix-gap: 2px;
|
|
686
|
-
--_kjun-extension-kpi-hero-suffix-gap:
|
|
759
|
+
--_kjun-extension-kpi-hero-suffix-gap: 2px;
|
|
687
760
|
--_kjun-extension-kpi-hero-secondary-affix-gap: 2px;
|
|
688
761
|
--_kjun-extension-kpi-hero-item-padding: 10px;
|
|
689
762
|
--_kjun-extension-kpi-hero-md-padding-x: 28px;
|
|
690
763
|
--_kjun-extension-kpi-hero-md-padding-y: 24px;
|
|
691
|
-
--_kjun-extension-kpi-hero-md-label-gap:
|
|
764
|
+
--_kjun-extension-kpi-hero-md-label-gap: 4px;
|
|
692
765
|
--_kjun-extension-kpi-hero-md-delta-gap: 10px;
|
|
693
766
|
--_kjun-extension-kpi-hero-md-delta-margin: 12px;
|
|
694
767
|
--_kjun-extension-kpi-hero-md-secondary-gap: 56px;
|
|
@@ -716,6 +789,13 @@
|
|
|
716
789
|
--_kjun-extension-kpi-hero-mobile-secondary-padding: 12px;
|
|
717
790
|
--_kjun-extension-kpi-hero-mobile-secondary-label-gap: 4px;
|
|
718
791
|
--_kjun-extension-kpi-hero-small-mobile-gap: 16px;
|
|
792
|
+
--_kjun-extension-kpi-hero-aside-gap: 12px;
|
|
793
|
+
--_kjun-extension-kpi-hero-delta-chip-padding-x: 6px;
|
|
794
|
+
--_kjun-extension-kpi-hero-delta-chip-radius: 6px;
|
|
795
|
+
--_kjun-extension-kpi-hero-delta-icon-size: 16px;
|
|
796
|
+
--_kjun-extension-kpi-hero-value-skeleton-width: 192px;
|
|
797
|
+
--_kjun-extension-kpi-hero-mobile-value-skeleton-width: 154px;
|
|
798
|
+
--_kjun-extension-kpi-hero-sm-value-skeleton-width: 115px;
|
|
719
799
|
--_kjun-extension-kpi-hero-delta-skeleton-width: 220px;
|
|
720
800
|
--_kjun-extension-kpi-hero-secondary-skeleton-width: 55px;
|
|
721
801
|
--_kjun-extension-kpi-hero-description-skeleton-width: 58px;
|
|
@@ -724,21 +804,22 @@
|
|
|
724
804
|
--_kjun-extension-kpi-row-value-gap: 8px;
|
|
725
805
|
--_kjun-extension-kpi-row-segment-gap: 4px;
|
|
726
806
|
--_kjun-extension-kpi-row-separator-gap: 6px;
|
|
727
|
-
--_kjun-extension-kpi-row-
|
|
807
|
+
--_kjun-extension-kpi-row-segment-label-gap: 4px;
|
|
808
|
+
--_kjun-extension-kpi-row-badge-radius: 4px;
|
|
728
809
|
--_kjun-extension-kpi-row-badge-gap: 4px;
|
|
729
810
|
--_kjun-extension-kpi-row-badge-padding-x: 6px;
|
|
730
811
|
--_kjun-extension-kpi-row-badge-padding-y: 0px;
|
|
731
812
|
--_kjun-extension-kpi-row-md-padding-x: 8px;
|
|
732
|
-
--_kjun-extension-kpi-row-md-padding-y:
|
|
813
|
+
--_kjun-extension-kpi-row-md-padding-y: 10px;
|
|
733
814
|
--_kjun-extension-kpi-row-md-item-padding-x: 20px;
|
|
734
|
-
--_kjun-extension-kpi-row-md-item-padding-y:
|
|
735
|
-
--_kjun-extension-kpi-row-md-label-gap:
|
|
815
|
+
--_kjun-extension-kpi-row-md-item-padding-y: 10px;
|
|
816
|
+
--_kjun-extension-kpi-row-md-label-gap: 6px;
|
|
736
817
|
--_kjun-extension-kpi-row-md-label-margin: 8px;
|
|
737
818
|
--_kjun-extension-kpi-row-md-description-gap: 4px;
|
|
738
819
|
--_kjun-extension-kpi-row-sm-padding-x: 4px;
|
|
739
|
-
--_kjun-extension-kpi-row-sm-padding-y:
|
|
820
|
+
--_kjun-extension-kpi-row-sm-padding-y: 6px;
|
|
740
821
|
--_kjun-extension-kpi-row-sm-item-padding-x: 12px;
|
|
741
|
-
--_kjun-extension-kpi-row-sm-item-padding-y:
|
|
822
|
+
--_kjun-extension-kpi-row-sm-item-padding-y: 6px;
|
|
742
823
|
--_kjun-extension-kpi-row-sm-label-gap: 6px;
|
|
743
824
|
--_kjun-extension-kpi-row-sm-label-margin: 4px;
|
|
744
825
|
--_kjun-extension-kpi-row-sm-description-gap: 2px;
|
|
@@ -756,11 +837,23 @@
|
|
|
756
837
|
--_kjun-extension-kpi-row-summary-gap-x: 16px;
|
|
757
838
|
--_kjun-extension-kpi-row-summary-gap-y: 12px;
|
|
758
839
|
--_kjun-extension-kpi-row-summary-secondary-gap: 4px;
|
|
759
|
-
--_kjun-extension-kpi-row-
|
|
840
|
+
--_kjun-extension-kpi-row-affix-gap: 2px;
|
|
841
|
+
--_kjun-extension-kpi-row-chevron-size: 16px;
|
|
760
842
|
--_kjun-extension-kpi-row-label-skeleton-width: 80px;
|
|
761
843
|
--_kjun-extension-kpi-row-value-skeleton-width: 80px;
|
|
762
844
|
--_kjun-extension-kpi-row-segment-skeleton-width: 48px;
|
|
763
845
|
--_kjun-extension-kpi-row-description-skeleton-width: 90px;
|
|
846
|
+
--_kjun-extension-carousel-peek: 24px;
|
|
847
|
+
--_kjun-extension-carousel-indicator-size: 6px;
|
|
848
|
+
--_kjun-extension-carousel-indicator-active-width: 16px;
|
|
849
|
+
--_kjun-extension-carousel-indicator-press: 24px;
|
|
850
|
+
--_kjun-extension-carousel-indicator-press-width: 20px;
|
|
851
|
+
--_kjun-extension-carousel-indicator-offset: 12px;
|
|
852
|
+
--_kjun-extension-carousel-control-inset: 8px;
|
|
853
|
+
--_kjun-extension-carousel-focus-radius: 12px;
|
|
854
|
+
--_kjun-extension-carousel-header-gap: 12px;
|
|
855
|
+
--_kjun-extension-carousel-header-controls-gap: 8px;
|
|
856
|
+
--_kjun-extension-carousel-overlay-padding-x: 8px;
|
|
764
857
|
--_kjun-extension-spinner-sizes-xs: 12px;
|
|
765
858
|
--_kjun-extension-spinner-sizes-sm: 16px;
|
|
766
859
|
--_kjun-extension-spinner-sizes-md: 24px;
|
|
@@ -772,7 +865,7 @@
|
|
|
772
865
|
--_kjun-extension-spinner-stroke-widths-lg: 4px;
|
|
773
866
|
--_kjun-extension-spinner-stroke-widths-xl: 4px;
|
|
774
867
|
--_kjun-extension-progress-heights-sm: 4px;
|
|
775
|
-
--_kjun-extension-progress-heights-md:
|
|
868
|
+
--_kjun-extension-progress-heights-md: 6px;
|
|
776
869
|
--_kjun-extension-progress-heights-lg: 12px;
|
|
777
870
|
--_kjun-extension-progress-circle-sm-size: 24px;
|
|
778
871
|
--_kjun-extension-progress-circle-sm-stroke: 4px;
|
|
@@ -806,17 +899,54 @@
|
|
|
806
899
|
--_kjun-extension-floating-field-gap: 4px;
|
|
807
900
|
--_kjun-extension-scrollbar-width: 6px;
|
|
808
901
|
--_kjun-extension-scroll-fade-width: 24px;
|
|
809
|
-
--_kjun-extension-
|
|
810
|
-
--_kjun-extension-
|
|
811
|
-
--_kjun-extension-
|
|
812
|
-
--_kjun-extension-
|
|
813
|
-
--_kjun-extension-
|
|
814
|
-
--_kjun-extension-
|
|
815
|
-
--_kjun-extension-
|
|
816
|
-
--_kjun-extension-
|
|
817
|
-
--_kjun-extension-
|
|
818
|
-
--_kjun-extension-
|
|
819
|
-
--_kjun-extension-
|
|
902
|
+
--_kjun-extension-zone-gauge-track-height: 10px;
|
|
903
|
+
--_kjun-extension-zone-gauge-sm-track-height: 8px;
|
|
904
|
+
--_kjun-extension-zone-gauge-segment-gap: 2px;
|
|
905
|
+
--_kjun-extension-zone-gauge-marker-width: 6px;
|
|
906
|
+
--_kjun-extension-zone-gauge-marker-overhang: 6px;
|
|
907
|
+
--_kjun-extension-zone-gauge-marker-ring: 2px;
|
|
908
|
+
--_kjun-extension-zone-gauge-min-sliver: 4px;
|
|
909
|
+
--_kjun-extension-zone-gauge-caption-gap: 8px;
|
|
910
|
+
--_kjun-extension-zone-gauge-labels-gap: 6px;
|
|
911
|
+
--_kjun-extension-stacked-bar-track-height: 10px;
|
|
912
|
+
--_kjun-extension-stacked-bar-sm-track-height: 8px;
|
|
913
|
+
--_kjun-extension-stacked-bar-segment-gap: 2px;
|
|
914
|
+
--_kjun-extension-stacked-bar-min-segment: 8px;
|
|
915
|
+
--_kjun-extension-stacked-bar-caption-gap: 8px;
|
|
916
|
+
--_kjun-extension-stacked-bar-legend-top: 8px;
|
|
917
|
+
--_kjun-extension-stacked-bar-legend-gap: 16px;
|
|
918
|
+
--_kjun-extension-stacked-bar-legend-row-gap: 4px;
|
|
919
|
+
--_kjun-extension-stacked-bar-swatch-size: 10px;
|
|
920
|
+
--_kjun-extension-stacked-bar-swatch-radius: 3px;
|
|
921
|
+
--_kjun-extension-stacked-bar-swatch-gap: 6px;
|
|
922
|
+
--_kjun-extension-split-pane-handle-hit: 20px;
|
|
923
|
+
--_kjun-extension-split-pane-touch-handle-hit: 44px;
|
|
924
|
+
--_kjun-extension-split-pane-bar-width: 4px;
|
|
925
|
+
--_kjun-extension-split-pane-bar-length: 40px;
|
|
926
|
+
--_kjun-extension-split-pane-active-bar-length: 56px;
|
|
927
|
+
--_kjun-extension-color-picker-width: 240px;
|
|
928
|
+
--_kjun-extension-color-picker-padding: 12px;
|
|
929
|
+
--_kjun-extension-color-picker-gap: 12px;
|
|
930
|
+
--_kjun-extension-color-picker-channel-gap: 8px;
|
|
931
|
+
--_kjun-extension-color-picker-section-gap: 20px;
|
|
932
|
+
--_kjun-extension-color-picker-touch-channel-gap: 20px;
|
|
933
|
+
--_kjun-extension-color-picker-touch-max-width: 360px;
|
|
934
|
+
--_kjun-extension-color-picker-affix-gap: 4px;
|
|
935
|
+
--_kjun-extension-color-picker-area-height: 160px;
|
|
936
|
+
--_kjun-extension-color-picker-area-radius: 10px;
|
|
937
|
+
--_kjun-extension-color-picker-thumb-size: 20px;
|
|
938
|
+
--_kjun-extension-color-picker-channel-height: 12px;
|
|
939
|
+
--_kjun-extension-color-picker-channel-radius: 6px;
|
|
940
|
+
--_kjun-extension-color-picker-swatch-icon-size: 14px;
|
|
941
|
+
--_kjun-extension-color-picker-swatch-gap: 8px;
|
|
942
|
+
--_kjun-extension-color-picker-swatch-radius: 6px;
|
|
943
|
+
--_kjun-extension-color-picker-ring-width: 2px;
|
|
944
|
+
--_kjun-extension-color-picker-ring-gap: 2px;
|
|
945
|
+
--_kjun-extension-color-picker-checker-size: 8px;
|
|
946
|
+
--_kjun-extension-color-picker-alpha-input-width: 64px;
|
|
947
|
+
--_kjun-extension-color-picker-trigger-swatch-sm: 16px;
|
|
948
|
+
--_kjun-extension-color-picker-trigger-swatch-md: 20px;
|
|
949
|
+
--_kjun-extension-color-picker-trigger-swatch-lg: 24px;
|
|
820
950
|
--_kjun-extension-calendar-width: 312px;
|
|
821
951
|
--_kjun-extension-calendar-padding: 12px;
|
|
822
952
|
--_kjun-extension-calendar-header-height: 36px;
|
|
@@ -1002,6 +1132,15 @@
|
|
|
1002
1132
|
--_kjun-geometry-card-radii-xl: 24px;
|
|
1003
1133
|
--_kjun-geometry-card-subtitle-gap: 4px;
|
|
1004
1134
|
--_kjun-geometry-card-title-gap: 8px;
|
|
1135
|
+
--_kjun-geometry-card-header-gaps-none: 0px;
|
|
1136
|
+
--_kjun-geometry-card-header-gaps-sm: 8px;
|
|
1137
|
+
--_kjun-geometry-card-header-gaps-md: 12px;
|
|
1138
|
+
--_kjun-geometry-card-header-gaps-lg: 16px;
|
|
1139
|
+
--_kjun-geometry-card-title-min-width: 160px;
|
|
1140
|
+
--_kjun-geometry-card-side-media-width: 96px;
|
|
1141
|
+
--_kjun-geometry-card-media-aspects-wide: 1.7778px;
|
|
1142
|
+
--_kjun-geometry-card-media-aspects-standard: 1.3333px;
|
|
1143
|
+
--_kjun-geometry-card-media-aspects-square: 1px;
|
|
1005
1144
|
--_kjun-geometry-card-glass-blur: 10px;
|
|
1006
1145
|
--_kjun-geometry-table-mobile-breakpoint: 768px;
|
|
1007
1146
|
--_kjun-geometry-table-header-padding-x: 16px;
|
|
@@ -1029,6 +1168,7 @@
|
|
|
1029
1168
|
--_kjun-geometry-table-sort-icon-size: 12px;
|
|
1030
1169
|
--_kjun-geometry-table-sorted-icon-size: 14px;
|
|
1031
1170
|
--_kjun-geometry-table-search-width: 200px;
|
|
1171
|
+
--_kjun-geometry-table-sort-minimum-width: 120px;
|
|
1032
1172
|
--_kjun-geometry-dimension-value2: 2px;
|
|
1033
1173
|
--_kjun-geometry-dimension-value4: 4px;
|
|
1034
1174
|
--_kjun-geometry-dimension-value6: 6px;
|
|
@@ -1093,37 +1233,37 @@
|
|
|
1093
1233
|
--_kjun-card-border: var(--_kjun-color-card-border);
|
|
1094
1234
|
}
|
|
1095
1235
|
.kjun-scope .kjun-card[data-surface="accent"] {
|
|
1096
|
-
--_kjun-card-background:
|
|
1236
|
+
--_kjun-card-background: var(--_kjun-color-card-accent-start);
|
|
1097
1237
|
--_kjun-card-text: var(--_kjun-color-text);
|
|
1098
1238
|
--_kjun-card-description: var(--_kjun-color-text-secondary);
|
|
1099
1239
|
--_kjun-card-border: var(--_kjun-color-card-border);
|
|
1100
1240
|
}
|
|
1101
1241
|
.kjun-scope .kjun-card[data-surface="success"] {
|
|
1102
|
-
--_kjun-card-background:
|
|
1242
|
+
--_kjun-card-background: var(--_kjun-color-success-light);
|
|
1103
1243
|
--_kjun-card-text: var(--_kjun-color-text);
|
|
1104
1244
|
--_kjun-card-description: var(--_kjun-color-text-secondary);
|
|
1105
1245
|
--_kjun-card-border: var(--_kjun-color-card-border);
|
|
1106
1246
|
}
|
|
1107
1247
|
.kjun-scope .kjun-card[data-surface="warning"] {
|
|
1108
|
-
--_kjun-card-background:
|
|
1248
|
+
--_kjun-card-background: var(--_kjun-color-warning-light);
|
|
1109
1249
|
--_kjun-card-text: var(--_kjun-color-text);
|
|
1110
1250
|
--_kjun-card-description: var(--_kjun-color-text-secondary);
|
|
1111
1251
|
--_kjun-card-border: var(--_kjun-color-card-border);
|
|
1112
1252
|
}
|
|
1113
1253
|
.kjun-scope .kjun-card[data-surface="danger"] {
|
|
1114
|
-
--_kjun-card-background:
|
|
1254
|
+
--_kjun-card-background: var(--_kjun-color-danger-light);
|
|
1115
1255
|
--_kjun-card-text: var(--_kjun-color-text);
|
|
1116
1256
|
--_kjun-card-description: var(--_kjun-color-text-secondary);
|
|
1117
1257
|
--_kjun-card-border: var(--_kjun-color-card-border);
|
|
1118
1258
|
}
|
|
1119
1259
|
.kjun-scope .kjun-card[data-surface="subtle"] {
|
|
1120
|
-
--_kjun-card-background:
|
|
1260
|
+
--_kjun-card-background: var(--_kjun-color-card-subtle-start);
|
|
1121
1261
|
--_kjun-card-text: var(--_kjun-color-text);
|
|
1122
1262
|
--_kjun-card-description: var(--_kjun-color-text-secondary);
|
|
1123
1263
|
--_kjun-card-border: var(--_kjun-color-card-subtle-border);
|
|
1124
1264
|
}
|
|
1125
1265
|
.kjun-scope .kjun-card[data-surface="brand"] {
|
|
1126
|
-
--_kjun-card-background:
|
|
1266
|
+
--_kjun-card-background: var(--_kjun-color-brand);
|
|
1127
1267
|
--_kjun-card-text: var(--_kjun-color-on-brand);
|
|
1128
1268
|
--_kjun-card-description: var(--_kjun-color-on-brand);
|
|
1129
1269
|
--_kjun-card-border: var(--_kjun-color-card-border);
|
|
@@ -1404,7 +1544,7 @@
|
|
|
1404
1544
|
}
|
|
1405
1545
|
|
|
1406
1546
|
.kjun-scope .kjun-choice { position: relative; display: inline-flex; align-items: center; min-height: var(--_kjun-extension-choice-minimum-height); cursor: pointer; vertical-align: middle; }
|
|
1407
|
-
.kjun-scope .kjun-choice--disabled {
|
|
1547
|
+
.kjun-scope .kjun-choice--disabled { cursor: not-allowed; }
|
|
1408
1548
|
.kjun-scope .kjun-choice-label { margin-left: var(--_kjun-extension-checkbox-label-gap); font-size: var(--_kjun-type-label-size); color: var(--_kjun-text-primary); line-height: var(--_kjun-type-label-line); font-weight: var(--_kjun-type-label-weight); letter-spacing: var(--_kjun-type-label-tracking); }
|
|
1409
1549
|
.kjun-scope .kjun-choice-control {
|
|
1410
1550
|
display: flex;
|
|
@@ -1413,7 +1553,7 @@
|
|
|
1413
1553
|
justify-content: center;
|
|
1414
1554
|
width: var(--_kjun-extension-checkbox-sizes-md);
|
|
1415
1555
|
height: var(--_kjun-extension-checkbox-sizes-md);
|
|
1416
|
-
/* Control boundaries use the strong border role, like Radio; disabled
|
|
1556
|
+
/* Control boundaries use the strong border role, like Radio; disabled takes the disabled-text role. */
|
|
1417
1557
|
border: var(--_kjun-border-control-width) solid var(--_kjun-border-strong);
|
|
1418
1558
|
background: var(--_kjun-card-bg);
|
|
1419
1559
|
transition: border-color var(--_kjun-motion-control) var(--_kjun-ease-out), background-color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
@@ -1432,9 +1572,13 @@
|
|
|
1432
1572
|
.kjun-scope .kjun-radio--checked { border-color: var(--_kjun-brand); }
|
|
1433
1573
|
.kjun-scope .kjun-radio-dot { width: var(--_kjun-extension-radio-dot); height: var(--_kjun-extension-radio-dot); border-radius: 50%; background: var(--_kjun-brand); }
|
|
1434
1574
|
.kjun-scope .kjun-radio + .kjun-choice-label { margin-left: var(--_kjun-extension-radio-label-gap); }
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
.kjun-scope .kjun-choice--disabled .kjun-
|
|
1575
|
+
/* One disabled rule, as Button and fields: nothing fades. Text, strokes and brand fills take the disabled-text role;
|
|
1576
|
+
resting fills (the box surface, the off track) stay, so checked and on still read apart from unchecked and off. */
|
|
1577
|
+
.kjun-scope .kjun-choice--disabled :is(.kjun-choice-label, .kjun-choice-description) { color: var(--_kjun-text-disabled); }
|
|
1578
|
+
.kjun-scope .kjun-choice--disabled :is(.kjun-radio, .kjun-checkbox) { border-color: var(--_kjun-text-disabled); }
|
|
1579
|
+
.kjun-scope .kjun-choice--disabled .kjun-checkbox--checked { background: var(--_kjun-text-disabled); color: var(--_kjun-card-bg); }
|
|
1580
|
+
.kjun-scope .kjun-choice--disabled .kjun-radio-dot,
|
|
1581
|
+
.kjun-scope .kjun-choice--disabled .kjun-switch--on { background: var(--_kjun-text-disabled); }
|
|
1438
1582
|
.kjun-scope .kjun-choice input:focus-visible + .kjun-choice-control, .kjun-scope .kjun-switch:focus-visible {
|
|
1439
1583
|
outline: var(--_kjun-state-focus-width) solid var(--_kjun-focus-ring);
|
|
1440
1584
|
outline-offset: var(--_kjun-state-focus-choice-offset);
|
|
@@ -2154,7 +2298,12 @@
|
|
|
2154
2298
|
margin-bottom: 0;
|
|
2155
2299
|
}
|
|
2156
2300
|
|
|
2157
|
-
/* Avatar
|
|
2301
|
+
/* Avatar: in a flex row the skeleton is as wide as its avatar and never shrinks, so the clipping root cannot cut the
|
|
2302
|
+
circle; the avatar fills a width given on the root. */
|
|
2303
|
+
.kjun-skeleton[data-type="avatar"] {
|
|
2304
|
+
flex: none;
|
|
2305
|
+
width: auto;
|
|
2306
|
+
}
|
|
2158
2307
|
.kjun-skeleton-avatar {
|
|
2159
2308
|
background: var(--_kjun-skeleton);
|
|
2160
2309
|
flex-shrink: 0;
|
|
@@ -2171,6 +2320,11 @@
|
|
|
2171
2320
|
height: 50%;
|
|
2172
2321
|
margin-bottom: 0;
|
|
2173
2322
|
}
|
|
2323
|
+
/* KPI values: the bar stands as tall as the value's digits (the font's cap height), not half its line, so a loading
|
|
2324
|
+
KPI reads at the weight of the number it replaces. */
|
|
2325
|
+
:is(.kjun-kpi-row__value, .kjun-kpi-hero__value, .kjun-kpi-hero__sec-value) .kjun-skeleton[data-type="line"] .kjun-skeleton-slot > .kjun-skeleton-line {
|
|
2326
|
+
height: min(100%, max(50%, 1cap));
|
|
2327
|
+
}
|
|
2174
2328
|
/* 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
2329
|
role's line box is never stretched by the surrounding text's line height. */
|
|
2176
2330
|
.kjun-skeleton[data-type="line"] {
|
|
@@ -2190,22 +2344,12 @@
|
|
|
2190
2344
|
margin-top: var(--_kjun-extension-skeleton-padding);
|
|
2191
2345
|
}
|
|
2192
2346
|
|
|
2193
|
-
/* Table
|
|
2194
|
-
.
|
|
2195
|
-
|
|
2196
|
-
border-radius: var(--_kjun-extension-skeleton-block-radius);
|
|
2197
|
-
overflow: hidden;
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
.kjun-skeleton-table-header {
|
|
2201
|
-
display: flex;
|
|
2202
|
-
background: var(--_kjun-bg-secondary);
|
|
2203
|
-
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2347
|
+
/* Table: rows of a KjunTable at rest. No frame and no header fill, only row dividers; header bars sit in the caption
|
|
2348
|
+
line box and cell bars in the body line box, and every column after the first ends at the cell's end like values. */
|
|
2349
|
+
.kjun-skeleton-table-header,
|
|
2206
2350
|
.kjun-skeleton-table-row {
|
|
2207
2351
|
display: flex;
|
|
2208
|
-
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-
|
|
2352
|
+
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-color-divider);
|
|
2209
2353
|
}
|
|
2210
2354
|
|
|
2211
2355
|
.kjun-skeleton-table-row:last-child {
|
|
@@ -2214,17 +2358,22 @@
|
|
|
2214
2358
|
|
|
2215
2359
|
.kjun-skeleton-table-cell {
|
|
2216
2360
|
flex: 1;
|
|
2361
|
+
min-width: 0;
|
|
2217
2362
|
padding: var(--_kjun-geometry-dimension-value12) var(--_kjun-geometry-dimension-value16);
|
|
2218
2363
|
}
|
|
2219
2364
|
|
|
2220
|
-
.kjun-skeleton-table-cell .kjun-skeleton-
|
|
2221
|
-
|
|
2222
|
-
height: var(--_kjun-extension-skeleton-table-line-height);
|
|
2365
|
+
.kjun-skeleton-table-cell[data-align="end"] > .kjun-skeleton-slot {
|
|
2366
|
+
justify-content: flex-end;
|
|
2223
2367
|
}
|
|
2224
2368
|
|
|
2225
|
-
/* Stat: one KpiRow item, label, value and description on their own line boxes.
|
|
2369
|
+
/* Stat: one KpiRow item, label, value and description on their own line boxes. The value bar stands as tall as the
|
|
2370
|
+
value's digits (the cap height at the value's size), like a loading KpiRow. */
|
|
2226
2371
|
.kjun-skeleton-stat > .kjun-skeleton-slot:nth-child(2) {
|
|
2227
2372
|
margin-top: var(--_kjun-extension-kpi-row-md-label-gap);
|
|
2373
|
+
font-size: var(--_kjun-type-display-sm-size);
|
|
2374
|
+
}
|
|
2375
|
+
.kjun-skeleton-stat > .kjun-skeleton-slot:nth-child(2) > .kjun-skeleton-line {
|
|
2376
|
+
height: min(100%, max(50%, 1cap));
|
|
2228
2377
|
}
|
|
2229
2378
|
.kjun-skeleton-stat > .kjun-skeleton-slot:last-child {
|
|
2230
2379
|
margin-top: var(--_kjun-extension-kpi-row-md-description-gap);
|
|
@@ -2278,38 +2427,64 @@
|
|
|
2278
2427
|
flex-direction: column;
|
|
2279
2428
|
align-items: center;
|
|
2280
2429
|
justify-content: center;
|
|
2281
|
-
padding: var(--_kjun-
|
|
2430
|
+
padding: var(--_kjun-extension-empty-padding-y) var(--_kjun-extension-empty-padding-x);
|
|
2282
2431
|
text-align: center;
|
|
2432
|
+
/* Korean wraps between words; a long unbroken string still wraps inside the box. */
|
|
2433
|
+
word-break: keep-all;
|
|
2434
|
+
overflow-wrap: break-word;
|
|
2283
2435
|
color: var(--_kjun-color-text-secondary);
|
|
2284
2436
|
font-size: var(--_kjun-type-body-size);
|
|
2285
2437
|
line-height: var(--_kjun-type-body-line);
|
|
2286
2438
|
font-weight: var(--_kjun-type-body-weight);
|
|
2287
2439
|
letter-spacing: var(--_kjun-type-body-tracking);
|
|
2288
2440
|
}
|
|
2289
|
-
.
|
|
2441
|
+
/* Parts are matched by class, so text an app places in the action area keeps its own type. */
|
|
2442
|
+
.kjun-empty-title {
|
|
2290
2443
|
margin: 0;
|
|
2291
2444
|
font-size: var(--_kjun-extension-empty-title-size); font-weight: var(--_kjun-type-card-title-weight); letter-spacing: var(--_kjun-type-card-title-tracking);
|
|
2292
2445
|
line-height: var(--_kjun-extension-empty-title-line-height);
|
|
2293
2446
|
color: var(--_kjun-color-text);
|
|
2294
2447
|
}
|
|
2295
|
-
|
|
2448
|
+
/* A quiet line icon: it introduces the message without outweighing the title. */
|
|
2449
|
+
.kjun-empty-icon {
|
|
2296
2450
|
margin-bottom: var(--_kjun-extension-empty-icon-gap);
|
|
2297
|
-
color: var(--_kjun-color-text-
|
|
2451
|
+
color: var(--_kjun-color-text-tertiary);
|
|
2298
2452
|
}
|
|
2299
|
-
.kjun-empty
|
|
2300
|
-
font-size: var(--_kjun-extension-empty-description-size); font-weight: var(--_kjun-type-
|
|
2453
|
+
.kjun-empty-description {
|
|
2454
|
+
font-size: var(--_kjun-extension-empty-description-size); font-weight: var(--_kjun-type-body-weight); letter-spacing: var(--_kjun-type-body-tracking);
|
|
2301
2455
|
line-height: var(--_kjun-extension-empty-description-line-height);
|
|
2302
2456
|
color: var(--_kjun-color-text-secondary);
|
|
2303
2457
|
margin-top: var(--_kjun-extension-empty-description-gap);
|
|
2304
2458
|
}
|
|
2305
2459
|
/* Centred copy keeps a readable line length in wide containers. */
|
|
2306
|
-
.kjun-empty
|
|
2307
|
-
.kjun-empty
|
|
2460
|
+
.kjun-empty-title,
|
|
2461
|
+
.kjun-empty-description {
|
|
2308
2462
|
max-width: var(--_kjun-extension-empty-text-max-width);
|
|
2309
2463
|
}
|
|
2310
|
-
.kjun-empty
|
|
2464
|
+
.kjun-empty-actions {
|
|
2465
|
+
display: flex;
|
|
2466
|
+
flex-wrap: wrap;
|
|
2467
|
+
justify-content: center;
|
|
2468
|
+
gap: var(--_kjun-extension-empty-actions-gap);
|
|
2469
|
+
max-width: 100%;
|
|
2311
2470
|
margin-top: var(--_kjun-extension-empty-action-gap);
|
|
2312
2471
|
}
|
|
2472
|
+
/* Phones stack the actions in their own order, one full-width button per line. */
|
|
2473
|
+
@media (width <= 640px) {
|
|
2474
|
+
.kjun-empty-actions {
|
|
2475
|
+
flex-direction: column;
|
|
2476
|
+
align-items: stretch;
|
|
2477
|
+
width: var(--_kjun-extension-empty-actions-max-width);
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
/* :where keeps size sm at the base rules' weight, so a list or data state that owns the space wins in any file order. */
|
|
2481
|
+
.kjun-empty:where([data-size="sm"]) { padding-block: var(--_kjun-extension-empty-sm-padding-y); }
|
|
2482
|
+
:where(.kjun-empty[data-size="sm"]) .kjun-empty-icon { margin-bottom: var(--_kjun-extension-empty-sm-icon-gap); }
|
|
2483
|
+
:where(.kjun-empty[data-size="sm"]) .kjun-empty-title {
|
|
2484
|
+
font-size: var(--_kjun-extension-empty-sm-title-size);
|
|
2485
|
+
line-height: var(--_kjun-extension-empty-sm-title-line-height);
|
|
2486
|
+
}
|
|
2487
|
+
:where(.kjun-empty[data-size="sm"]) .kjun-empty-actions { margin-top: var(--_kjun-extension-empty-sm-action-gap); }
|
|
2313
2488
|
.kjun-spinner {
|
|
2314
2489
|
display: inline-flex;
|
|
2315
2490
|
align-items: center;
|
|
@@ -2349,6 +2524,13 @@
|
|
|
2349
2524
|
border-radius: var(--_kjun-extension-alert-sm-radius);
|
|
2350
2525
|
padding: var(--_kjun-extension-alert-sm-padding-y) var(--_kjun-extension-alert-sm-padding-x);
|
|
2351
2526
|
}
|
|
2527
|
+
/* lg: more room and a larger title line, so the three sizes read as a scale. */
|
|
2528
|
+
.kjun-alert[data-size="lg"] {
|
|
2529
|
+
--_kjun-alert-line: var(--_kjun-type-control-large-line);
|
|
2530
|
+
--_kjun-alert-action-gap: var(--_kjun-extension-alert-lg-action-gap);
|
|
2531
|
+
gap: var(--_kjun-extension-alert-lg-gap);
|
|
2532
|
+
padding: var(--_kjun-extension-alert-lg-padding-y) var(--_kjun-extension-alert-lg-padding-x);
|
|
2533
|
+
}
|
|
2352
2534
|
.kjun-alert-icon {
|
|
2353
2535
|
display: flex;
|
|
2354
2536
|
align-items: center;
|
|
@@ -2386,6 +2568,12 @@
|
|
|
2386
2568
|
font-weight: var(--_kjun-type-control-small-weight);
|
|
2387
2569
|
letter-spacing: var(--_kjun-type-control-small-tracking);
|
|
2388
2570
|
}
|
|
2571
|
+
.kjun-alert[data-size="lg"] .kjun-alert-title {
|
|
2572
|
+
font-size: var(--_kjun-type-control-large-size);
|
|
2573
|
+
line-height: var(--_kjun-type-control-large-line);
|
|
2574
|
+
font-weight: var(--_kjun-type-control-large-weight);
|
|
2575
|
+
letter-spacing: var(--_kjun-type-control-large-tracking);
|
|
2576
|
+
}
|
|
2389
2577
|
.kjun-alert[data-size="sm"] .kjun-alert-description {
|
|
2390
2578
|
font-size: var(--_kjun-type-caption-size);
|
|
2391
2579
|
line-height: var(--_kjun-type-caption-line);
|
|
@@ -2439,8 +2627,9 @@
|
|
|
2439
2627
|
font-weight: var(--_kjun-type-caption-weight);
|
|
2440
2628
|
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
2441
2629
|
}
|
|
2630
|
+
/* The empty rail shares the switch-track role with Slider and RangeSlider. */
|
|
2442
2631
|
.kjun-progress-track {
|
|
2443
|
-
background: var(--_kjun-color-
|
|
2632
|
+
background: var(--_kjun-color-switch-track);
|
|
2444
2633
|
border-radius: var(--_kjun-geometry-radius-radius9999);
|
|
2445
2634
|
overflow: hidden;
|
|
2446
2635
|
}
|
|
@@ -2486,7 +2675,7 @@
|
|
|
2486
2675
|
flex-shrink: 0;
|
|
2487
2676
|
}
|
|
2488
2677
|
.kjun-progress-circle > svg { position: absolute; inset: 0; display: block; }
|
|
2489
|
-
.kjun-progress-circle-track { stroke: var(--_kjun-color-
|
|
2678
|
+
.kjun-progress-circle-track { stroke: var(--_kjun-color-switch-track); }
|
|
2490
2679
|
.kjun-progress-circle-value { transition: stroke-dashoffset var(--_kjun-motion-progress) var(--_kjun-ease-out); }
|
|
2491
2680
|
.kjun-progress-circle-percent {
|
|
2492
2681
|
position: relative;
|
|
@@ -2614,22 +2803,19 @@
|
|
|
2614
2803
|
cursor: pointer;
|
|
2615
2804
|
transition: color var(--_kjun-motion-indicator) var(--_kjun-ease-out);
|
|
2616
2805
|
}
|
|
2617
|
-
/* The selected segment
|
|
2618
|
-
secondary are close (light palettes). Inset keeps the segment's size. */
|
|
2806
|
+
/* The selected segment is a surface fill on the secondary track, with no edge: in-flow controls are fill-only. */
|
|
2619
2807
|
.kjun-button-group button[aria-pressed="true"] {
|
|
2620
2808
|
background: var(--_kjun-color-surface);
|
|
2621
|
-
box-shadow: inset 0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border);
|
|
2622
2809
|
color: var(--_kjun-color-text);
|
|
2623
2810
|
font-weight: var(--_kjun-type-control-weight);
|
|
2624
2811
|
}
|
|
2625
|
-
.kjun-button-group[data-indicator] button[aria-pressed="true"] { background: transparent;
|
|
2812
|
+
.kjun-button-group[data-indicator] button[aria-pressed="true"] { background: transparent; }
|
|
2626
2813
|
.kjun-button-group-indicator {
|
|
2627
2814
|
position: absolute;
|
|
2628
2815
|
left: 0;
|
|
2629
2816
|
pointer-events: none;
|
|
2630
2817
|
border-radius: var(--_kjun-geometry-button-group-item-radii-md);
|
|
2631
2818
|
background: var(--_kjun-color-surface);
|
|
2632
|
-
box-shadow: inset 0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border);
|
|
2633
2819
|
}
|
|
2634
2820
|
.kjun-button-group-indicator[data-animate="true"] {
|
|
2635
2821
|
transition: transform var(--_kjun-motion-indicator) var(--_kjun-ease-out), width var(--_kjun-motion-indicator) var(--_kjun-ease-out);
|
|
@@ -2643,8 +2829,9 @@
|
|
|
2643
2829
|
.kjun-button-group button:hover:not(:disabled):not([aria-pressed="true"]) {
|
|
2644
2830
|
background: var(--_kjun-color-hover);
|
|
2645
2831
|
}
|
|
2832
|
+
/* One disabled rule, as Button and fields: no fading; the ink takes the disabled-text role and fills stay. */
|
|
2646
2833
|
.kjun-button-group button:disabled {
|
|
2647
|
-
|
|
2834
|
+
color: var(--_kjun-color-text-disabled);
|
|
2648
2835
|
cursor: not-allowed;
|
|
2649
2836
|
}
|
|
2650
2837
|
/* Narrow groups scroll; the clipped edge fades so a cut option reads as more content. Vue keeps its ds- root class. */
|
|
@@ -2701,10 +2888,10 @@
|
|
|
2701
2888
|
color: var(--_kjun-color-filter-selected-text);
|
|
2702
2889
|
font-weight: var(--_kjun-type-control-weight);
|
|
2703
2890
|
}
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
}
|
|
2891
|
+
/* One disabled rule, as Button and fields: the chip keeps its fill (a selected chip stays inverted) and its ink
|
|
2892
|
+
takes the disabled-text role. */
|
|
2893
|
+
.kjun-filter-chip:disabled { cursor: not-allowed; }
|
|
2894
|
+
.kjun-filter-chip:disabled > span { color: var(--_kjun-color-text-disabled); }
|
|
2708
2895
|
.kjun-filter-chip:hover:not(:disabled):not([aria-pressed="true"]) > span {
|
|
2709
2896
|
background: var(--_kjun-color-hover);
|
|
2710
2897
|
}
|
|
@@ -2743,19 +2930,19 @@
|
|
|
2743
2930
|
display: inline-block;
|
|
2744
2931
|
max-width: 100%;
|
|
2745
2932
|
}
|
|
2746
|
-
/* An open action menu keeps its active paint after hover/focus leaves
|
|
2747
|
-
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="secondary"]:not(:disabled) {
|
|
2933
|
+
/* An open action menu or Popover keeps its trigger button in the active paint after hover/focus leaves it. */
|
|
2934
|
+
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="secondary"]:not(:disabled), .kjun-button[aria-haspopup="dialog"][aria-expanded="true"][data-variant="secondary"]:not(:disabled) {
|
|
2748
2935
|
background: var(--_kjun-color-button-secondary-active);
|
|
2749
2936
|
}
|
|
2750
|
-
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="ghost"]:not(:disabled) {
|
|
2937
|
+
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="ghost"]:not(:disabled), .kjun-button[aria-haspopup="dialog"][aria-expanded="true"][data-variant="ghost"]:not(:disabled) {
|
|
2751
2938
|
background: var(--_kjun-color-active);
|
|
2752
2939
|
color: var(--_kjun-color-text);
|
|
2753
2940
|
}
|
|
2754
|
-
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="primary"]:not(:disabled) { background: var(--_kjun-color-brand-active); }
|
|
2755
|
-
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="danger"]:not(:disabled) { background: var(--_kjun-color-danger-active); }
|
|
2756
|
-
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="success"]:not(:disabled) { background: var(--_kjun-color-success-active); }
|
|
2757
|
-
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="warning"]:not(:disabled) { background: var(--_kjun-color-warning-active); }
|
|
2758
|
-
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="danger-ghost"]:not(:disabled) {
|
|
2941
|
+
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="primary"]:not(:disabled), .kjun-button[aria-haspopup="dialog"][aria-expanded="true"][data-variant="primary"]:not(:disabled) { background: var(--_kjun-color-brand-active); }
|
|
2942
|
+
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="danger"]:not(:disabled), .kjun-button[aria-haspopup="dialog"][aria-expanded="true"][data-variant="danger"]:not(:disabled) { background: var(--_kjun-color-danger-active); }
|
|
2943
|
+
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="success"]:not(:disabled), .kjun-button[aria-haspopup="dialog"][aria-expanded="true"][data-variant="success"]:not(:disabled) { background: var(--_kjun-color-success-active); }
|
|
2944
|
+
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="warning"]:not(:disabled), .kjun-button[aria-haspopup="dialog"][aria-expanded="true"][data-variant="warning"]:not(:disabled) { background: var(--_kjun-color-warning-active); }
|
|
2945
|
+
.kjun-button.kjun-menu-button[aria-expanded="true"][data-variant="danger-ghost"]:not(:disabled), .kjun-button[aria-haspopup="dialog"][aria-expanded="true"][data-variant="danger-ghost"]:not(:disabled) {
|
|
2759
2946
|
background: var(--_kjun-color-danger-bg);
|
|
2760
2947
|
color: var(--_kjun-color-danger-dark);
|
|
2761
2948
|
}
|
|
@@ -2782,10 +2969,16 @@
|
|
|
2782
2969
|
/* With a header only the body scrolls: the panel and dialog become clipping flex columns. */
|
|
2783
2970
|
.kjun-popover-has-header { display:flex; flex-direction:column; overflow:hidden; }
|
|
2784
2971
|
.kjun-popover-has-header .kjun-popover-dialog { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
|
|
2785
|
-
/* A light title on the panel itself: control type,
|
|
2972
|
+
/* A light title on the panel itself: control type, the body follows after a short gap. The divider appears only over a scrolled body. */
|
|
2786
2973
|
.kjun-popover-header { flex:none; padding:var(--_kjun-extension-popover-padding) var(--_kjun-extension-popover-padding) var(--_kjun-extension-popover-header-padding-bottom); 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); word-break:keep-all; overflow-wrap:anywhere; }
|
|
2787
2974
|
.kjun-popover-has-header .kjun-popover-content:not([data-no-padding="true"]) { padding-top:0; }
|
|
2788
2975
|
.kjun-popover-body { flex:1 1 auto; min-height:0; overflow-y:auto; }
|
|
2976
|
+
/* Once the body has scrolled, the fixed header draws a divider over it; while more remains below, the body fades out. */
|
|
2977
|
+
.kjun-popover-header:has(+ .kjun-popover-body[data-scrolled]) { box-shadow:0 var(--_kjun-border-default-width) 0 var(--_kjun-color-divider); }
|
|
2978
|
+
.kjun-popover-body[data-more] {
|
|
2979
|
+
-webkit-mask-image: linear-gradient(to bottom, currentColor calc(100% - var(--_kjun-extension-scroll-fade-width)), transparent);
|
|
2980
|
+
mask-image: linear-gradient(to bottom, currentColor calc(100% - var(--_kjun-extension-scroll-fade-width)), transparent);
|
|
2981
|
+
}
|
|
2789
2982
|
.kjun-popover-content { display:flex; flex-direction:column; gap:var(--_kjun-extension-popover-gap); padding:var(--_kjun-extension-popover-padding); min-width:0; word-break:keep-all; overflow-wrap:anywhere; }
|
|
2790
2983
|
.kjun-popover-content[data-no-padding="true"] { padding:0; gap:0; }
|
|
2791
2984
|
.kjun-tooltip {
|
|
@@ -2916,6 +3109,10 @@
|
|
|
2916
3109
|
.kjun-drawer-overlay[data-position="bottom"] {
|
|
2917
3110
|
align-items: flex-end;
|
|
2918
3111
|
}
|
|
3112
|
+
/* A top sheet hugs its content like the bottom one instead of stretching to the height limit. */
|
|
3113
|
+
.kjun-drawer-overlay[data-position="top"] {
|
|
3114
|
+
align-items: flex-start;
|
|
3115
|
+
}
|
|
2919
3116
|
.kjun-drawer {
|
|
2920
3117
|
position: relative;
|
|
2921
3118
|
max-width: 100%;
|
|
@@ -2955,6 +3152,34 @@
|
|
|
2955
3152
|
justify-content: space-between;
|
|
2956
3153
|
padding: var(--_kjun-extension-drawer-padding-y) var(--_kjun-extension-drawer-padding-x);
|
|
2957
3154
|
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-color-border);
|
|
3155
|
+
flex-shrink: 0;
|
|
3156
|
+
}
|
|
3157
|
+
/* Like the Modal title: long titles wrap and stay clear of the close button. */
|
|
3158
|
+
.kjun-drawer-title {
|
|
3159
|
+
flex: 1;
|
|
3160
|
+
min-width: 0;
|
|
3161
|
+
padding-right: var(--_kjun-extension-drawer-title-action-gap);
|
|
3162
|
+
overflow-wrap: anywhere;
|
|
3163
|
+
}
|
|
3164
|
+
/* Close button only: no title band or divider, the body follows closely. */
|
|
3165
|
+
.kjun-drawer-header[data-bare] {
|
|
3166
|
+
justify-content: flex-end;
|
|
3167
|
+
padding-bottom: 0;
|
|
3168
|
+
border-bottom: 0;
|
|
3169
|
+
}
|
|
3170
|
+
.kjun-drawer-header[data-bare] + .kjun-drawer-body:not([data-no-padding]) {
|
|
3171
|
+
padding-top: var(--_kjun-extension-drawer-bare-body-padding-top);
|
|
3172
|
+
}
|
|
3173
|
+
/* The glyph sits on the content edge; the button's own inset hangs into the header padding. */
|
|
3174
|
+
.kjun-drawer-header > .kjun-button {
|
|
3175
|
+
margin-right: calc((var(--_kjun-extension-drawer-close-icon-size) - var(--_kjun-extension-drawer-close-size)) / 2);
|
|
3176
|
+
}
|
|
3177
|
+
@media (pointer: coarse) {
|
|
3178
|
+
.kjun-drawer-header > .kjun-button::after {
|
|
3179
|
+
content: "";
|
|
3180
|
+
position: absolute;
|
|
3181
|
+
inset: calc((var(--_kjun-extension-drawer-close-size) - var(--_kjun-geometry-native-minimum-touch-target)) / 2);
|
|
3182
|
+
}
|
|
2958
3183
|
}
|
|
2959
3184
|
.kjun-drawer-header h2 {
|
|
2960
3185
|
margin: 0;
|
|
@@ -2967,11 +3192,40 @@
|
|
|
2967
3192
|
min-height: 0;
|
|
2968
3193
|
overflow: auto;
|
|
2969
3194
|
flex: 1;
|
|
3195
|
+
padding: var(--_kjun-extension-drawer-body-padding);
|
|
2970
3196
|
}
|
|
3197
|
+
.kjun-drawer-body[data-no-padding] { padding: 0; }
|
|
2971
3198
|
.kjun-drawer-footer {
|
|
3199
|
+
display: flex;
|
|
3200
|
+
flex-wrap: wrap;
|
|
3201
|
+
justify-content: flex-end;
|
|
3202
|
+
gap: var(--_kjun-extension-drawer-footer-gap);
|
|
3203
|
+
flex-shrink: 0;
|
|
2972
3204
|
padding: var(--_kjun-extension-drawer-padding-y) var(--_kjun-extension-drawer-padding-x);
|
|
2973
3205
|
border-top: var(--_kjun-border-default-width) solid var(--_kjun-color-border);
|
|
2974
3206
|
}
|
|
3207
|
+
/* A single wrapper (the app's own action layout) keeps the full row. */
|
|
3208
|
+
.kjun-drawer-footer > :only-child:not(.kjun-button) { flex: 1; min-width: 0; }
|
|
3209
|
+
.kjun-drawer-overlay[data-position="left"] .kjun-drawer { box-shadow: var(--_kjun-drawer-elevation-left); }
|
|
3210
|
+
.kjun-drawer-overlay[data-position="top"] .kjun-drawer { box-shadow: var(--_kjun-drawer-elevation-top); }
|
|
3211
|
+
.kjun-drawer-overlay[data-position="bottom"] .kjun-drawer { box-shadow: var(--_kjun-drawer-elevation-bottom); }
|
|
3212
|
+
/* Sheets round the corners that face the page. */
|
|
3213
|
+
.kjun-drawer-overlay[data-position="bottom"] .kjun-drawer { border-top-left-radius: var(--_kjun-extension-drawer-sheet-radius); border-top-right-radius: var(--_kjun-extension-drawer-sheet-radius); }
|
|
3214
|
+
.kjun-drawer-overlay[data-position="top"] .kjun-drawer { border-bottom-left-radius: var(--_kjun-extension-drawer-sheet-radius); border-bottom-right-radius: var(--_kjun-extension-drawer-sheet-radius); }
|
|
3215
|
+
/* Phones: a side drawer leaves the sheet gap of page visible, and a bottom sheet's buttons share the width. */
|
|
3216
|
+
@media (width <= 640px) {
|
|
3217
|
+
.kjun-drawer-overlay:is([data-position="left"], [data-position="right"]) .kjun-drawer {
|
|
3218
|
+
max-width: calc(100% - var(--_kjun-extension-drawer-sheet-gap));
|
|
3219
|
+
}
|
|
3220
|
+
.kjun-drawer-overlay[data-position="bottom"] .kjun-drawer-footer > .kjun-button { flex: 1; }
|
|
3221
|
+
}
|
|
3222
|
+
/* Wider screens: top and bottom sheets stop at a readable width, centered. */
|
|
3223
|
+
@media (width > 640px) {
|
|
3224
|
+
.kjun-drawer-overlay:is([data-position="top"], [data-position="bottom"]) { justify-content: center; }
|
|
3225
|
+
.kjun-drawer-overlay:is([data-position="top"], [data-position="bottom"]) .kjun-drawer {
|
|
3226
|
+
max-width: var(--_kjun-extension-drawer-sheet-max-width);
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
2975
3229
|
.kjun-select-shell {
|
|
2976
3230
|
position: relative;
|
|
2977
3231
|
min-width: 0;
|
|
@@ -3079,10 +3333,6 @@
|
|
|
3079
3333
|
/* A failed search reads as an error, never as an empty result. */
|
|
3080
3334
|
.kjun-select-empty[role="alert"] { color: var(--_kjun-color-danger); }
|
|
3081
3335
|
|
|
3082
|
-
.kjun-drawer-overlay[data-position="left"] .kjun-drawer { box-shadow: var(--_kjun-drawer-elevation-left); }
|
|
3083
|
-
.kjun-drawer-overlay[data-position="top"] .kjun-drawer { box-shadow: var(--_kjun-drawer-elevation-top); }
|
|
3084
|
-
.kjun-drawer-overlay[data-position="bottom"] .kjun-drawer { box-shadow: var(--_kjun-drawer-elevation-bottom); }
|
|
3085
|
-
.kjun-drawer-overlay[data-position="bottom"] .kjun-drawer { border-top-left-radius:var(--_kjun-extension-drawer-bottom-radius); border-top-right-radius:var(--_kjun-extension-drawer-bottom-radius); }
|
|
3086
3336
|
|
|
3087
3337
|
.kjun-tabs {
|
|
3088
3338
|
--_kjun-tab-height:var(--_kjun-extension-tabs-height);
|
|
@@ -3294,8 +3544,9 @@
|
|
|
3294
3544
|
.kjun-pagination button:not(.kjun-select-trigger):hover:not(:disabled) {
|
|
3295
3545
|
background: var(--_kjun-color-hover);
|
|
3296
3546
|
}
|
|
3547
|
+
/* One disabled rule, as Button and fields: no fading; the arrow takes the disabled-text role. */
|
|
3297
3548
|
.kjun-pagination button:not(.kjun-select-trigger):disabled {
|
|
3298
|
-
|
|
3549
|
+
color: var(--_kjun-color-text-disabled);
|
|
3299
3550
|
cursor: not-allowed;
|
|
3300
3551
|
}
|
|
3301
3552
|
.kjun-pagination button:not(.kjun-select-trigger)[aria-current] {
|
|
@@ -3402,11 +3653,16 @@
|
|
|
3402
3653
|
color: inherit;
|
|
3403
3654
|
text-decoration: none;
|
|
3404
3655
|
}
|
|
3405
|
-
/* Text links
|
|
3406
|
-
.
|
|
3656
|
+
/* Text links are underlined, so they read as links in body text of the same colour; they also show the
|
|
3657
|
+
new-window cue that the screen reader text announces. Icon-only links stay bare. */
|
|
3658
|
+
.kjun-external-link:has(> .kjun-external-link-icon) {
|
|
3407
3659
|
text-decoration: underline;
|
|
3660
|
+
text-decoration-thickness: var(--_kjun-border-default-width);
|
|
3408
3661
|
text-underline-offset: var(--_kjun-geometry-dimension-value2);
|
|
3409
3662
|
}
|
|
3663
|
+
.kjun-external-link:has(> .kjun-external-link-icon):hover {
|
|
3664
|
+
text-decoration-thickness: var(--_kjun-geometry-dimension-value2);
|
|
3665
|
+
}
|
|
3410
3666
|
.kjun-external-link-icon {
|
|
3411
3667
|
margin-inline-start: var(--_kjun-geometry-dimension-value4);
|
|
3412
3668
|
vertical-align: middle;
|
|
@@ -3502,6 +3758,7 @@
|
|
|
3502
3758
|
}
|
|
3503
3759
|
/* Row: KjunListRow's padding, gap and minimum height; the divider starts where the text does. */
|
|
3504
3760
|
.kjun-list-skeleton-row[data-variant="row"] {
|
|
3761
|
+
--_kjun-skeleton-row-padding-y: var(--_kjun-extension-list-padding);
|
|
3505
3762
|
position: relative;
|
|
3506
3763
|
gap: var(--_kjun-extension-list-gap);
|
|
3507
3764
|
min-height: var(--_kjun-extension-list-minimum-height);
|
|
@@ -3566,8 +3823,10 @@
|
|
|
3566
3823
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3567
3824
|
}
|
|
3568
3825
|
}
|
|
3569
|
-
/* The skeleton keeps the chart's height: the drawing
|
|
3826
|
+
/* The skeleton keeps the chart's height: the drawing fills all of it, so the grid lines sit where the chart's
|
|
3827
|
+
will. The loading text is announced (kjun-sr-only) and takes no room. */
|
|
3570
3828
|
.kjun-chart-skeleton {
|
|
3829
|
+
position: relative;
|
|
3571
3830
|
display: flex;
|
|
3572
3831
|
flex-direction: column;
|
|
3573
3832
|
width: 100%;
|
|
@@ -3646,39 +3905,50 @@
|
|
|
3646
3905
|
opacity: var(--_kjun-state-opacity-pending);
|
|
3647
3906
|
}
|
|
3648
3907
|
/* Only the skeleton-coloured parts pulse; the grid lines hold still. */
|
|
3649
|
-
/*
|
|
3908
|
+
/* Like every other skeleton they pulse towards the shine colour, never towards transparent, so a faint base
|
|
3909
|
+
colour does not disappear at the peak. Matrix cells share the chart's delay, so the matrix pulses as one and
|
|
3910
|
+
muted cells keep their own opacity through it. */
|
|
3650
3911
|
.kjun-chart-skeleton-label,
|
|
3651
|
-
.kjun-chart-skeleton-
|
|
3652
|
-
.kjun-chart-skeleton-matrix {
|
|
3912
|
+
.kjun-chart-skeleton-cell {
|
|
3653
3913
|
animation: kjun-chart-pulse var(--_kjun-motion-shimmer) ease-in-out infinite;
|
|
3654
3914
|
animation-delay: var(--_kjun-skeleton-delay, 0ms);
|
|
3655
3915
|
}
|
|
3916
|
+
.kjun-chart-skeleton-donut {
|
|
3917
|
+
animation: kjun-chart-ring-pulse var(--_kjun-motion-shimmer) ease-in-out infinite;
|
|
3918
|
+
animation-delay: var(--_kjun-skeleton-delay, 0ms);
|
|
3919
|
+
}
|
|
3656
3920
|
@keyframes kjun-chart-pulse {
|
|
3657
3921
|
50% {
|
|
3658
|
-
|
|
3922
|
+
background-color: var(--_kjun-color-skeleton-shine);
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
@keyframes kjun-chart-ring-pulse {
|
|
3926
|
+
50% {
|
|
3927
|
+
border-color: var(--_kjun-color-skeleton-shine);
|
|
3659
3928
|
}
|
|
3660
3929
|
}
|
|
3661
3930
|
@media (prefers-reduced-motion: reduce) {
|
|
3662
3931
|
.kjun-chart-skeleton-label,
|
|
3663
3932
|
.kjun-chart-skeleton-donut,
|
|
3664
|
-
.kjun-chart-skeleton-
|
|
3933
|
+
.kjun-chart-skeleton-cell {
|
|
3665
3934
|
animation: none;
|
|
3666
3935
|
}
|
|
3667
3936
|
}
|
|
3668
3937
|
|
|
3669
|
-
|
|
3670
|
-
.kjun-error-fallback
|
|
3671
|
-
.kjun-error-fallback
|
|
3672
|
-
|
|
3673
|
-
|
|
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; }
|
|
3938
|
+
/* The boundary's fallback is a KjunEmpty inside a data state's padding and minimum height; only the icon says error. */
|
|
3939
|
+
.kjun-error-fallback { display: flex; flex-direction: column; justify-content: center; }
|
|
3940
|
+
.kjun-error-fallback .kjun-empty { padding-block: 0; }
|
|
3941
|
+
.kjun-error-fallback .kjun-empty-icon { color: var(--_kjun-color-danger); }
|
|
3942
|
+
.kjun-error-fallback .kjun-empty-actions { max-width: 100%; }
|
|
3675
3943
|
|
|
3676
3944
|
.kjun-data-status > .kjun-spinner { flex-shrink: 0; }
|
|
3677
3945
|
.kjun-data-status > span:last-child { min-width: 0; overflow-wrap: anywhere; }
|
|
3678
3946
|
.kjun-data-loading { display: flex; flex-direction: column; align-items: center; gap: var(--_kjun-geometry-dimension-value12); text-align: center; }
|
|
3679
3947
|
.kjun-data-loading > p { margin: 0; max-width: 100%; overflow-wrap: anywhere; font-size: var(--_kjun-type-body-size); line-height: var(--_kjun-type-body-line); font-weight: var(--_kjun-type-body-weight); letter-spacing: var(--_kjun-type-body-tracking); color: var(--_kjun-color-text-secondary); }
|
|
3948
|
+
/* State blocks centre their content inside the size's minimum height. */
|
|
3949
|
+
.kjun-data-loading-block, .kjun-data-error, .kjun-data-empty { display: flex; flex-direction: column; justify-content: center; }
|
|
3680
3950
|
.kjun-data-empty .kjun-empty { padding-block: 0; }
|
|
3681
|
-
.kjun-data-empty .kjun-empty
|
|
3951
|
+
.kjun-data-empty .kjun-empty-actions { max-width: 100%; }
|
|
3682
3952
|
.kjun-data-warning { margin-top: var(--_kjun-geometry-dimension-value12); }
|
|
3683
3953
|
.kjun-state-actions .kjun-button {
|
|
3684
3954
|
--_kjun-data-action-height: var(--_kjun-geometry-button-heights-md);
|
|
@@ -3693,6 +3963,37 @@
|
|
|
3693
3963
|
.kjun-state-actions .kjun-button[data-size="lg"] { --_kjun-data-action-height: var(--_kjun-geometry-button-heights-lg); }
|
|
3694
3964
|
.kjun-state-actions .kjun-button[data-size="xl"] { --_kjun-data-action-height: var(--_kjun-geometry-button-heights-xl); }
|
|
3695
3965
|
.kjun-state-actions .kjun-button > .kjun-button-label { min-width: 0; }
|
|
3966
|
+
/* Row in an open KjunListSection: the open row's padding, height and inset, a rounded leading square, no dividers. */
|
|
3967
|
+
.kjun-list-skeleton-row[data-variant="row"][data-open] {
|
|
3968
|
+
gap: var(--_kjun-extension-list-open-gap);
|
|
3969
|
+
min-height: var(--_kjun-extension-list-open-minimum-height);
|
|
3970
|
+
--_kjun-skeleton-row-padding-y: var(--_kjun-extension-list-open-padding-y);
|
|
3971
|
+
padding: var(--_kjun-extension-list-open-padding-y) var(--_kjun-extension-list-open-padding-x);
|
|
3972
|
+
margin-inline: var(--_kjun-extension-list-open-row-inset);
|
|
3973
|
+
}
|
|
3974
|
+
.kjun-list-skeleton-row[data-variant="row"][data-open]::after { content: none; }
|
|
3975
|
+
/* Row in a compact KjunListSection: the compact row's padding and height, default or open. */
|
|
3976
|
+
.kjun-list-skeleton-row[data-variant="row"][data-density="compact"] {
|
|
3977
|
+
--_kjun-skeleton-row-padding-y: var(--_kjun-extension-list-compact-padding-y);
|
|
3978
|
+
min-height: var(--_kjun-extension-list-compact-minimum-height);
|
|
3979
|
+
padding-block: var(--_kjun-extension-list-compact-padding-y);
|
|
3980
|
+
}
|
|
3981
|
+
.kjun-list-skeleton-row[data-variant="row"][data-open][data-density="compact"] {
|
|
3982
|
+
--_kjun-skeleton-row-padding-y: var(--_kjun-extension-list-open-compact-padding-y);
|
|
3983
|
+
min-height: var(--_kjun-extension-list-open-compact-minimum-height);
|
|
3984
|
+
padding-block: var(--_kjun-extension-list-open-compact-padding-y);
|
|
3985
|
+
}
|
|
3986
|
+
/* Like ListRow: without a description the leading square and a switch reach into the padding (down to the minimum
|
|
3987
|
+
inset), so a one-line skeleton row keeps the row's minimum height. */
|
|
3988
|
+
.kjun-list-skeleton-row[data-variant="row"]:not(:has(> .kjun-list-skeleton-label > .kjun-skeleton + .kjun-skeleton)) > :is(.kjun-list-skeleton-leading, .kjun-list-skeleton-trailing[data-kind="switch"]) {
|
|
3989
|
+
margin-block: min(0px, calc(var(--_kjun-extension-list-minimum-inset) - var(--_kjun-skeleton-row-padding-y)));
|
|
3990
|
+
}
|
|
3991
|
+
.kjun-list-skeleton-row[data-open] .kjun-list-skeleton-leading {
|
|
3992
|
+
width: var(--_kjun-extension-list-open-leading-size);
|
|
3993
|
+
height: var(--_kjun-extension-list-open-leading-size);
|
|
3994
|
+
border-radius: var(--_kjun-extension-list-open-leading-radius);
|
|
3995
|
+
overflow: hidden;
|
|
3996
|
+
}
|
|
3696
3997
|
|
|
3697
3998
|
.kjun-animated-number,
|
|
3698
3999
|
.kjun-signed-value,
|
|
@@ -3705,6 +4006,10 @@
|
|
|
3705
4006
|
font-variant-numeric: tabular-nums;
|
|
3706
4007
|
font-family: var(--_kjun-font-numeric);
|
|
3707
4008
|
}
|
|
4009
|
+
/* A leading sign (split off by the components) drops tabular width so it sits tight to the digits. */
|
|
4010
|
+
.kjun-number-sign {
|
|
4011
|
+
font-variant-numeric: proportional-nums;
|
|
4012
|
+
}
|
|
3708
4013
|
/* The side is explicit: a lone unit (the delta percent) is both first and last child and would take both gaps. */
|
|
3709
4014
|
.kjun-number-affix[data-side="prefix"] {
|
|
3710
4015
|
margin-right: var(--_kjun-extension-financial-affix-gap);
|
|
@@ -3905,6 +4210,55 @@
|
|
|
3905
4210
|
line-height: var(--_kjun-type-control-small-line);
|
|
3906
4211
|
font-weight: var(--_kjun-type-control-small-weight);
|
|
3907
4212
|
letter-spacing: var(--_kjun-type-control-small-tracking);
|
|
4213
|
+
/* A header names its column in one line; the column is at least that wide. */
|
|
4214
|
+
white-space: nowrap;
|
|
4215
|
+
}
|
|
4216
|
+
/* A column group's label sits over its columns, centred, with the same rule under it as the header row. */
|
|
4217
|
+
.kjun-table th.kjun-table-column-group {
|
|
4218
|
+
text-align: center;
|
|
4219
|
+
}
|
|
4220
|
+
/* Move buttons sit side by side in the row's last column. */
|
|
4221
|
+
/* The column is as wide as its two buttons and ends at the row's end edge, like a cell's text. */
|
|
4222
|
+
.kjun-table .kjun-table-action-cell.kjun-table-reorder-cell {
|
|
4223
|
+
width: calc(2 * var(--_kjun-geometry-button-heights-sm) + var(--_kjun-extension-list-actions-gap) + 2 * var(--_kjun-geometry-table-cell-padding-compact-x));
|
|
4224
|
+
padding-inline: var(--_kjun-geometry-table-cell-padding-compact-x);
|
|
4225
|
+
text-align: end;
|
|
4226
|
+
white-space: nowrap;
|
|
4227
|
+
}
|
|
4228
|
+
/* A cell over two or more columns is a note about them, not one column's value: centred and quieter. */
|
|
4229
|
+
.kjun-table td.kjun-table-merged {
|
|
4230
|
+
color: var(--_kjun-color-text-secondary);
|
|
4231
|
+
}
|
|
4232
|
+
/* The note starts where the cells' text starts. */
|
|
4233
|
+
.kjun-table-reorder-note {
|
|
4234
|
+
margin: var(--_kjun-geometry-dimension-value8) 0 0;
|
|
4235
|
+
padding-inline: var(--_kjun-geometry-table-cell-padding-regular-x);
|
|
4236
|
+
font-size: var(--_kjun-type-caption-size);
|
|
4237
|
+
line-height: var(--_kjun-type-caption-line);
|
|
4238
|
+
color: var(--_kjun-color-text-tertiary);
|
|
4239
|
+
}
|
|
4240
|
+
/* A pressable cell: the whole cell is the button and keeps the cell's text, alignment and numbers. */
|
|
4241
|
+
.kjun-table-cell-button {
|
|
4242
|
+
display: block;
|
|
4243
|
+
width: 100%;
|
|
4244
|
+
margin: 0;
|
|
4245
|
+
padding: 0;
|
|
4246
|
+
border: 0;
|
|
4247
|
+
background: transparent;
|
|
4248
|
+
color: inherit;
|
|
4249
|
+
font: inherit;
|
|
4250
|
+
letter-spacing: inherit;
|
|
4251
|
+
text-align: inherit;
|
|
4252
|
+
cursor: pointer;
|
|
4253
|
+
border-radius: var(--_kjun-geometry-radius-radius4);
|
|
4254
|
+
}
|
|
4255
|
+
.kjun-table-cell-button:hover {
|
|
4256
|
+
text-decoration: underline;
|
|
4257
|
+
text-underline-offset: var(--_kjun-geometry-dimension-value3);
|
|
4258
|
+
}
|
|
4259
|
+
.kjun-table-cell-button:focus-visible {
|
|
4260
|
+
outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);
|
|
4261
|
+
outline-offset: var(--_kjun-state-focus-offset);
|
|
3908
4262
|
}
|
|
3909
4263
|
.kjun-table th button {
|
|
3910
4264
|
display: inline-flex;
|
|
@@ -3931,17 +4285,27 @@
|
|
|
3931
4285
|
outline-offset: var(--_kjun-state-focus-offset);
|
|
3932
4286
|
border-radius: var(--_kjun-geometry-radius-radius4);
|
|
3933
4287
|
}
|
|
3934
|
-
/* Rows part with the lighter divider; the header keeps the border line.
|
|
4288
|
+
/* Rows part with the lighter divider; the header keeps the border line. Text breaks between words (Korean
|
|
4289
|
+
included), never inside one, and a text column keeps a readable minimum: when the columns no longer fit,
|
|
4290
|
+
the table scroll container scrolls sideways instead of crushing them a syllable per line. */
|
|
3935
4291
|
.kjun-table td {
|
|
3936
4292
|
padding: var(--_kjun-geometry-table-cell-padding-regular-y) var(--_kjun-geometry-table-cell-padding-regular-x);
|
|
3937
4293
|
border-bottom: var(--_kjun-border-default-width) solid var(--_kjun-color-divider);
|
|
3938
|
-
|
|
4294
|
+
word-break: keep-all;
|
|
4295
|
+
overflow-wrap: break-word;
|
|
4296
|
+
}
|
|
4297
|
+
.kjun-table tbody > tr:not(.kjun-table-expanded, .kjun-table-summary) > td:not(.kjun-table-action-cell, .kjun-table-empty, [data-numeric], [data-date]) {
|
|
4298
|
+
min-width: var(--_kjun-geometry-dimension-value80);
|
|
3939
4299
|
}
|
|
3940
|
-
/* Numbers read as one unit:
|
|
3941
|
-
.kjun-table td[data-numeric] {
|
|
4300
|
+
/* Numbers and dates read as one unit: the column keeps its content width instead of breaking between digits. */
|
|
4301
|
+
.kjun-table td:is([data-numeric], [data-date]) {
|
|
3942
4302
|
white-space: nowrap;
|
|
3943
4303
|
overflow-wrap: normal;
|
|
3944
4304
|
}
|
|
4305
|
+
/* Short tokens (badges, pills) never break inside. */
|
|
4306
|
+
.kjun-table td :is(.kjun-badge, .kjun-table-pill) {
|
|
4307
|
+
white-space: nowrap;
|
|
4308
|
+
}
|
|
3945
4309
|
.kjun-table[data-compact="true"] td {
|
|
3946
4310
|
padding: var(--_kjun-geometry-table-cell-padding-compact-y) var(--_kjun-geometry-table-cell-padding-compact-x);
|
|
3947
4311
|
}
|
|
@@ -4055,7 +4419,11 @@
|
|
|
4055
4419
|
}
|
|
4056
4420
|
/* Neither stripes nor hover paint group and summary rows. */
|
|
4057
4421
|
.kjun-table tbody > tr:is(.kjun-table-group, .kjun-table-summary):is(:nth-child(n), :hover) { background: transparent; }
|
|
4058
|
-
|
|
4422
|
+
/* The expanded panel spans the whole row and wraps as ordinary text; it takes no column minimum or nowrap. */
|
|
4423
|
+
.kjun-table-expanded > td {
|
|
4424
|
+
padding: var(--_kjun-geometry-table-expanded-padding-y) var(--_kjun-geometry-table-expanded-padding-x);
|
|
4425
|
+
white-space: normal;
|
|
4426
|
+
}
|
|
4059
4427
|
.kjun-table-expanded {
|
|
4060
4428
|
background: var(--_kjun-color-secondary);
|
|
4061
4429
|
}
|
|
@@ -4080,8 +4448,13 @@
|
|
|
4080
4448
|
.kjun-table-toolbar {
|
|
4081
4449
|
background: var(--_kjun-color-surface);
|
|
4082
4450
|
}
|
|
4083
|
-
/* The narrow-screen sort choice: as wide as the search at most,
|
|
4084
|
-
|
|
4451
|
+
/* The narrow-screen sort choice: as wide as the search at most, never so narrow that its label truncates;
|
|
4452
|
+
when both no longer share a phone row it wraps to a line of its own. */
|
|
4453
|
+
.kjun-table-sort {
|
|
4454
|
+
flex: 1 0 var(--_kjun-geometry-table-sort-minimum-width);
|
|
4455
|
+
min-width: var(--_kjun-geometry-table-sort-minimum-width);
|
|
4456
|
+
max-width: var(--_kjun-geometry-table-search-width);
|
|
4457
|
+
}
|
|
4085
4458
|
/* The selection bar shares the selected rows' fill. */
|
|
4086
4459
|
.kjun-table-selection {
|
|
4087
4460
|
background: var(--_kjun-color-selected-bg);
|
|
@@ -4127,10 +4500,10 @@
|
|
|
4127
4500
|
.kjun-table-card-group-total > span + span::before { content: " · "; }
|
|
4128
4501
|
.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
4502
|
|
|
4503
|
+
/* Cards sit in the page flow, so they are fill-only: the secondary fill, no outline. */
|
|
4130
4504
|
.kjun-table-card {
|
|
4131
4505
|
min-width: 0;
|
|
4132
|
-
background: var(--_kjun-color-
|
|
4133
|
-
border: var(--_kjun-border-default-width) solid var(--_kjun-border-primary);
|
|
4506
|
+
background: var(--_kjun-color-secondary);
|
|
4134
4507
|
border-radius: var(--_kjun-extension-table-card-radius);
|
|
4135
4508
|
padding: var(--_kjun-extension-table-card-padding);
|
|
4136
4509
|
transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
@@ -4140,7 +4513,10 @@
|
|
|
4140
4513
|
.kjun-table-card[data-selected] { background: var(--_kjun-color-selected-bg); }
|
|
4141
4514
|
.kjun-table-cards[data-layout="tiles"] .kjun-table-card { padding: var(--_kjun-extension-table-card-tile-padding); }
|
|
4142
4515
|
@media (hover: hover) {
|
|
4143
|
-
|
|
4516
|
+
/* Hover deepens the fill a step with the text tint, so it never matches the selection fill. */
|
|
4517
|
+
.kjun-table-card[tabindex]:not([data-selected]):hover {
|
|
4518
|
+
background: color-mix(in srgb, var(--_kjun-color-text) calc(var(--_kjun-state-opacity-tint-fill) * 100%), var(--_kjun-color-secondary));
|
|
4519
|
+
}
|
|
4144
4520
|
}
|
|
4145
4521
|
/* The title opens the row for screen readers; it looks like the title and the card keeps the keyboard stop. */
|
|
4146
4522
|
.kjun-table-card-open {
|
|
@@ -4271,6 +4647,10 @@
|
|
|
4271
4647
|
padding-top: var(--_kjun-extension-table-card-footer-gap);
|
|
4272
4648
|
border-top: var(--_kjun-border-default-width) solid var(--_kjun-color-divider);
|
|
4273
4649
|
}
|
|
4650
|
+
/* A second group (a reorderable table's move buttons) sits right beside the first instead of splitting the space. */
|
|
4651
|
+
.kjun-table-card-actions + .kjun-table-card-actions {
|
|
4652
|
+
margin-inline-start: 0;
|
|
4653
|
+
}
|
|
4274
4654
|
.kjun-table-card-actions {
|
|
4275
4655
|
display: flex;
|
|
4276
4656
|
justify-content: flex-end;
|
|
@@ -4290,7 +4670,8 @@
|
|
|
4290
4670
|
margin-top: var(--_kjun-extension-table-card-section-gap);
|
|
4291
4671
|
padding: var(--_kjun-geometry-table-expanded-padding-y) var(--_kjun-geometry-table-expanded-padding-x);
|
|
4292
4672
|
border-radius: var(--_kjun-geometry-radius-radius12);
|
|
4293
|
-
|
|
4673
|
+
/* The card is the secondary fill, so its expanded panel sits on the surface. */
|
|
4674
|
+
background: var(--_kjun-color-surface);
|
|
4294
4675
|
}
|
|
4295
4676
|
|
|
4296
4677
|
.kjun-table-card-empty {
|
|
@@ -4494,6 +4875,10 @@
|
|
|
4494
4875
|
border-radius: 0;
|
|
4495
4876
|
}
|
|
4496
4877
|
.kjun-market-table-grid {
|
|
4878
|
+
/* Default column widths; the layout reads them so a narrow screen can tighten them below. */
|
|
4879
|
+
--_kjun-market-table-identity-width: var(--_kjun-extension-market-table-identity-width);
|
|
4880
|
+
--_kjun-market-table-column-width: var(--_kjun-extension-market-table-column-width);
|
|
4881
|
+
--_kjun-market-table-actions-width: var(--_kjun-extension-market-table-actions-width);
|
|
4497
4882
|
border-collapse: collapse;
|
|
4498
4883
|
table-layout: fixed;
|
|
4499
4884
|
}
|
|
@@ -4542,7 +4927,7 @@
|
|
|
4542
4927
|
background: var(--_kjun-color-hover);
|
|
4543
4928
|
}
|
|
4544
4929
|
.kjun-market-table-grid .kjun-market-actions {
|
|
4545
|
-
width: var(--_kjun-
|
|
4930
|
+
width: var(--_kjun-market-table-actions-width);
|
|
4546
4931
|
padding: var(--_kjun-geometry-dimension-value12) var(--_kjun-geometry-dimension-value4);
|
|
4547
4932
|
text-align: center;
|
|
4548
4933
|
}
|
|
@@ -4565,6 +4950,9 @@
|
|
|
4565
4950
|
scrollbar-width: none;
|
|
4566
4951
|
}
|
|
4567
4952
|
.kjun-metric-pills button {
|
|
4953
|
+
display: inline-flex;
|
|
4954
|
+
align-items: center;
|
|
4955
|
+
gap: var(--_kjun-geometry-dimension-value4);
|
|
4568
4956
|
flex: 0 0 auto;
|
|
4569
4957
|
padding: var(--_kjun-geometry-dimension-value8) var(--_kjun-geometry-dimension-value16);
|
|
4570
4958
|
border: 0;
|
|
@@ -4586,8 +4974,17 @@
|
|
|
4586
4974
|
.kjun-metric-pills button:focus-visible {
|
|
4587
4975
|
outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);
|
|
4588
4976
|
}
|
|
4589
|
-
.kjun-metric-
|
|
4590
|
-
|
|
4977
|
+
.kjun-metric-label { display: inline-grid; }
|
|
4978
|
+
.kjun-metric-label::before, .kjun-metric-label::after {
|
|
4979
|
+
content: attr(data-label);
|
|
4980
|
+
visibility: hidden;
|
|
4981
|
+
grid-area: 1 / 1;
|
|
4982
|
+
}
|
|
4983
|
+
.kjun-metric-label::before { font-weight: var(--_kjun-type-label-weight); }
|
|
4984
|
+
.kjun-metric-label::after { font-weight: var(--_kjun-type-number-lg-weight); }
|
|
4985
|
+
.kjun-metric-label > span { grid-area: 1 / 1; }
|
|
4986
|
+
.kjun-metric-sort[data-visible="false"] { visibility: hidden; }
|
|
4987
|
+
.kjun-metric-sort {
|
|
4591
4988
|
font-size: var(--_kjun-type-caption-size);
|
|
4592
4989
|
line-height: var(--_kjun-type-caption-line);
|
|
4593
4990
|
font-weight: var(--_kjun-type-caption-weight);
|
|
@@ -4629,7 +5026,9 @@
|
|
|
4629
5026
|
display: -webkit-box;
|
|
4630
5027
|
-webkit-box-orient: vertical;
|
|
4631
5028
|
-webkit-line-clamp: 2;
|
|
4632
|
-
|
|
5029
|
+
/* Korean names break between words, never inside one. */
|
|
5030
|
+
word-break: keep-all;
|
|
5031
|
+
overflow-wrap: break-word;
|
|
4633
5032
|
white-space: normal;
|
|
4634
5033
|
}
|
|
4635
5034
|
.kjun-market-simple-list .kjun-market-quote, .kjun-mobile-simple-list .kjun-mobile-simple-list__quote {
|
|
@@ -4661,9 +5060,26 @@
|
|
|
4661
5060
|
.kjun-market-simple-list .kjun-market-footer {
|
|
4662
5061
|
padding-inline: var(--_kjun-geometry-dimension-value20);
|
|
4663
5062
|
}
|
|
5063
|
+
/* A phone table keeps name, price and change in view: the two toggles sit side by side without slack,
|
|
5064
|
+
the name gives way first (ellipsis), and metric columns hold a price's width. */
|
|
5065
|
+
.kjun-market-table-grid {
|
|
5066
|
+
--_kjun-market-table-identity-width: var(--_kjun-geometry-dimension-value56);
|
|
5067
|
+
--_kjun-market-table-column-width: var(--_kjun-geometry-dimension-value96);
|
|
5068
|
+
--_kjun-market-table-actions-width: calc(2 * var(--_kjun-extension-icon-toggle-sizes-xs) + 2 * var(--_kjun-geometry-dimension-value4));
|
|
5069
|
+
}
|
|
5070
|
+
.kjun-market-table-grid :is(th, td):not(.kjun-market-actions) {
|
|
5071
|
+
padding-inline: var(--_kjun-geometry-dimension-value4);
|
|
5072
|
+
}
|
|
5073
|
+
/* The price status moves under the price instead of widening its column. */
|
|
5074
|
+
.kjun-market-table-grid td .kjun-price-status {
|
|
5075
|
+
display: flex;
|
|
5076
|
+
justify-content: flex-end;
|
|
5077
|
+
margin-inline-start: 0;
|
|
5078
|
+
margin-top: var(--_kjun-geometry-dimension-value2);
|
|
5079
|
+
}
|
|
4664
5080
|
}
|
|
4665
5081
|
|
|
4666
|
-
.kjun-market-column-label { padding:var(--_kjun-geometry-dimension-value8) var(--_kjun-geometry-dimension-value16); text-align:right; font-size:var(--_kjun-type-caption-size); color:var(--_kjun-color-text-secondary); overflow-wrap:
|
|
5082
|
+
.kjun-market-column-label { padding:var(--_kjun-geometry-dimension-value8) var(--_kjun-geometry-dimension-value16); text-align:right; font-size:var(--_kjun-type-caption-size); color:var(--_kjun-color-text-secondary); word-break:keep-all; overflow-wrap:break-word; line-height: var(--_kjun-type-caption-line); font-weight: var(--_kjun-type-caption-weight); letter-spacing: var(--_kjun-type-caption-tracking); }
|
|
4667
5083
|
|
|
4668
5084
|
.kjun-market-table-grid .kjun-market-name {
|
|
4669
5085
|
font-size: var(--_kjun-type-body-size);
|
|
@@ -4711,8 +5127,7 @@
|
|
|
4711
5127
|
.kjun-kpi-hero__affix {
|
|
4712
5128
|
color: var(--_kjun-text-primary);
|
|
4713
5129
|
}
|
|
4714
|
-
/* prefix
|
|
4715
|
-
"$ 8,798.69"처럼 기호가 떨어져 보였다. 보조 지표(sec-affix)와 같은 2px로 맞춘다. */
|
|
5130
|
+
/* A unit reads with its number: prefix and suffix both sit 2px away, like every other KPI unit. */
|
|
4716
5131
|
.kjun-kpi-hero__affix:first-child {
|
|
4717
5132
|
margin-right: var(--_kjun-extension-kpi-hero-prefix-gap);
|
|
4718
5133
|
}
|
|
@@ -4728,10 +5143,27 @@
|
|
|
4728
5143
|
font-family: var(--_kjun-font-numeric);
|
|
4729
5144
|
font-variant-numeric: tabular-nums;
|
|
4730
5145
|
}
|
|
4731
|
-
.
|
|
4732
|
-
}
|
|
5146
|
+
/* The percent change is a tinted chip, so the amount and the rate read as two values without dimming either. */
|
|
4733
5147
|
.kjun-kpi-hero__delta-pct {
|
|
4734
|
-
|
|
5148
|
+
padding: 0 var(--_kjun-extension-kpi-hero-delta-chip-padding-x);
|
|
5149
|
+
border-radius: var(--_kjun-extension-kpi-hero-delta-chip-radius);
|
|
5150
|
+
}
|
|
5151
|
+
/* The default caret is a closed outline; filling it with the text colour draws a solid, round-cornered triangle. */
|
|
5152
|
+
.kjun-kpi-hero__delta-icon {
|
|
5153
|
+
fill: currentColor;
|
|
5154
|
+
width: var(--_kjun-extension-kpi-hero-delta-icon-size);
|
|
5155
|
+
height: var(--_kjun-extension-kpi-hero-delta-icon-size);
|
|
5156
|
+
margin-right: var(--_kjun-extension-kpi-hero-prefix-gap);
|
|
5157
|
+
vertical-align: middle;
|
|
5158
|
+
}
|
|
5159
|
+
.kjun-kpi-hero__delta-icon[data-direction="down"] {
|
|
5160
|
+
transform: rotate(180deg);
|
|
5161
|
+
}
|
|
5162
|
+
.kjun-kpi-hero__delta-line .kjun-number-affix[data-side="prefix"] {
|
|
5163
|
+
margin-right: var(--_kjun-extension-kpi-hero-secondary-affix-gap);
|
|
5164
|
+
}
|
|
5165
|
+
.kjun-kpi-hero__delta-line .kjun-number-affix[data-side="suffix"] {
|
|
5166
|
+
margin-left: var(--_kjun-extension-kpi-hero-secondary-affix-gap);
|
|
4735
5167
|
}
|
|
4736
5168
|
.kjun-kpi-hero__delta-desc {
|
|
4737
5169
|
color: var(--_kjun-text-tertiary);
|
|
@@ -4746,17 +5178,13 @@
|
|
|
4746
5178
|
}
|
|
4747
5179
|
.kjun-kpi-hero__sec-label {
|
|
4748
5180
|
color: var(--_kjun-text-tertiary);
|
|
4749
|
-
text-transform: uppercase;
|
|
4750
5181
|
margin-bottom: var(--_kjun-extension-kpi-hero-md-secondary-label-gap);
|
|
4751
5182
|
}
|
|
4752
5183
|
.kjun-kpi-hero__sec-value {
|
|
4753
5184
|
font-family: var(--_kjun-font-numeric);
|
|
4754
5185
|
font-variant-numeric: tabular-nums;
|
|
4755
5186
|
}
|
|
4756
|
-
/* Like the delta
|
|
4757
|
-
.kjun-kpi-hero__sec-affix {
|
|
4758
|
-
font-weight: var(--_kjun-type-caption-weight);
|
|
4759
|
-
}
|
|
5187
|
+
/* Like the delta units and Native, a unit takes its value's colour at the unit weight. */
|
|
4760
5188
|
.kjun-kpi-hero__sec-affix:first-child {
|
|
4761
5189
|
margin-right: var(--_kjun-extension-kpi-hero-secondary-affix-gap);
|
|
4762
5190
|
}
|
|
@@ -4772,22 +5200,23 @@
|
|
|
4772
5200
|
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) {
|
|
4773
5201
|
padding: var(--_kjun-extension-kpi-hero-mobile-padding-y) var(--_kjun-extension-kpi-hero-mobile-padding-x);
|
|
4774
5202
|
}
|
|
4775
|
-
/* 좁은
|
|
4776
|
-
.kjun-kpi-
|
|
5203
|
+
/* 좁은 화면에서는 aside가 핵심 금액의 폭을 잠식하지 않도록 변동선 아래 전폭으로 내려간다. */
|
|
5204
|
+
.kjun-kpi-hero__layout {
|
|
5205
|
+
flex-direction: column;
|
|
5206
|
+
align-items: stretch;
|
|
5207
|
+
gap: var(--_kjun-extension-kpi-hero-aside-gap);
|
|
5208
|
+
}
|
|
5209
|
+
.kjun-kpi-hero[data-aside-mobile="hidden"] .kjun-kpi-hero__aside {
|
|
4777
5210
|
display: none;
|
|
4778
5211
|
}
|
|
4779
5212
|
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) .kjun-kpi-hero__label {
|
|
4780
5213
|
margin-bottom: var(--_kjun-extension-kpi-hero-mobile-label-gap);
|
|
4781
5214
|
}
|
|
4782
|
-
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) .kjun-kpi-hero__value {
|
|
4783
|
-
}
|
|
4784
5215
|
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) .kjun-kpi-hero__delta-line {
|
|
4785
5216
|
flex-wrap: wrap;
|
|
4786
5217
|
gap: var(--_kjun-extension-kpi-hero-mobile-delta-gap);
|
|
4787
5218
|
margin-top: var(--_kjun-extension-kpi-hero-mobile-delta-margin);
|
|
4788
5219
|
}
|
|
4789
|
-
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) .kjun-kpi-hero__delta-abs {
|
|
4790
|
-
}
|
|
4791
5220
|
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) .kjun-kpi-hero__secondary {
|
|
4792
5221
|
flex-wrap: nowrap;
|
|
4793
5222
|
gap: var(--_kjun-extension-kpi-hero-mobile-secondary-gap);
|
|
@@ -4810,11 +5239,8 @@
|
|
|
4810
5239
|
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) .kjun-kpi-hero__sec-label {
|
|
4811
5240
|
margin-bottom: var(--_kjun-extension-kpi-hero-mobile-secondary-label-gap);
|
|
4812
5241
|
overflow: visible;
|
|
4813
|
-
text-transform: none;
|
|
4814
5242
|
white-space: normal;
|
|
4815
5243
|
}
|
|
4816
|
-
.kjun-kpi-hero:not(.kjun-kpi-hero--sm) .kjun-kpi-hero__sec-value {
|
|
4817
|
-
}
|
|
4818
5244
|
}
|
|
4819
5245
|
|
|
4820
5246
|
/* 좁은 화면에서 보조 지표가 셋 이상이면 두 열로 감싼다. 한 줄에 몰아 숫자가 자릿수 사이에서 끊기지 않게 한다. */
|
|
@@ -4840,18 +5266,10 @@
|
|
|
4840
5266
|
.kjun-kpi-hero--sm .kjun-kpi-hero__label {
|
|
4841
5267
|
margin-bottom: var(--_kjun-extension-kpi-hero-sm-label-gap);
|
|
4842
5268
|
}
|
|
4843
|
-
.kjun-kpi-hero--sm .kjun-kpi-hero__value {
|
|
4844
|
-
}
|
|
4845
5269
|
.kjun-kpi-hero--sm .kjun-kpi-hero__delta-line {
|
|
4846
5270
|
margin-top: var(--_kjun-extension-kpi-hero-sm-delta-margin);
|
|
4847
5271
|
gap: var(--_kjun-extension-kpi-hero-sm-delta-gap);
|
|
4848
5272
|
}
|
|
4849
|
-
.kjun-kpi-hero--sm .kjun-kpi-hero__delta-abs {
|
|
4850
|
-
}
|
|
4851
|
-
.kjun-kpi-hero--sm .kjun-kpi-hero__delta-pct {
|
|
4852
|
-
}
|
|
4853
|
-
.kjun-kpi-hero--sm .kjun-kpi-hero__delta-desc {
|
|
4854
|
-
}
|
|
4855
5273
|
.kjun-kpi-hero--sm .kjun-kpi-hero__secondary {
|
|
4856
5274
|
gap: var(--_kjun-extension-kpi-hero-sm-secondary-gap);
|
|
4857
5275
|
margin-top: var(--_kjun-extension-kpi-hero-sm-secondary-margin);
|
|
@@ -4860,8 +5278,6 @@
|
|
|
4860
5278
|
.kjun-kpi-hero--sm .kjun-kpi-hero__sec-label {
|
|
4861
5279
|
margin-bottom: var(--_kjun-extension-kpi-hero-sm-secondary-label-gap);
|
|
4862
5280
|
}
|
|
4863
|
-
.kjun-kpi-hero--sm .kjun-kpi-hero__sec-value {
|
|
4864
|
-
}
|
|
4865
5281
|
.kjun-kpi-hero--sm .kjun-kpi-hero__sec-desc {
|
|
4866
5282
|
margin-top: var(--_kjun-extension-kpi-hero-sm-description-gap);
|
|
4867
5283
|
}
|
|
@@ -4870,8 +5286,6 @@
|
|
|
4870
5286
|
.kjun-kpi-hero--sm .kjun-kpi-hero__secondary {
|
|
4871
5287
|
gap: var(--_kjun-extension-kpi-hero-small-mobile-gap);
|
|
4872
5288
|
}
|
|
4873
|
-
.kjun-kpi-hero--sm .kjun-kpi-hero__value {
|
|
4874
|
-
}
|
|
4875
5289
|
}
|
|
4876
5290
|
|
|
4877
5291
|
/* surface="none": 앱의 카드·모달·전폭 목록 안에서는 자체 카드 표면을 그리지 않는다. 미디어 규칙보다 뒤에 두어 좁은 화면에서도 이긴다. */
|
|
@@ -4883,6 +5297,8 @@
|
|
|
4883
5297
|
}
|
|
4884
5298
|
|
|
4885
5299
|
.kjun-kpi-row {
|
|
5300
|
+
/* Every value line is as tall as this size's number line, so a text value or a missing dash keeps the row even. */
|
|
5301
|
+
--_kjun-kpi-row-value-line: var(--_kjun-type-display-sm-line);
|
|
4886
5302
|
display: flex;
|
|
4887
5303
|
padding: var(--_kjun-extension-kpi-row-md-padding-y) var(--_kjun-extension-kpi-row-md-padding-x);
|
|
4888
5304
|
background: var(--_kjun-card-bg);
|
|
@@ -4911,6 +5327,12 @@
|
|
|
4911
5327
|
.kjun-kpi-row__item:first-child {
|
|
4912
5328
|
--_kjun-kpi-row-divider-left: 0px;
|
|
4913
5329
|
}
|
|
5330
|
+
/* A link cell reads like the other cells: no link colour or underline. */
|
|
5331
|
+
a.kjun-kpi-row__item {
|
|
5332
|
+
display: block;
|
|
5333
|
+
color: inherit;
|
|
5334
|
+
text-decoration: none;
|
|
5335
|
+
}
|
|
4914
5336
|
.kjun-kpi-row__item--clickable {
|
|
4915
5337
|
cursor: pointer;
|
|
4916
5338
|
border-radius: var(--_kjun-extension-kpi-row-item-radius);
|
|
@@ -4926,7 +5348,8 @@
|
|
|
4926
5348
|
.kjun-kpi-row__label-row {
|
|
4927
5349
|
display: flex;
|
|
4928
5350
|
align-items: center;
|
|
4929
|
-
|
|
5351
|
+
/* A label badge sits right after its label, as that label's state, not at the far edge of the cell. */
|
|
5352
|
+
justify-content: flex-start;
|
|
4930
5353
|
gap: var(--_kjun-extension-kpi-row-md-label-gap);
|
|
4931
5354
|
margin-bottom: var(--_kjun-extension-kpi-row-md-label-margin);
|
|
4932
5355
|
}
|
|
@@ -4946,22 +5369,33 @@
|
|
|
4946
5369
|
min-width: 0;
|
|
4947
5370
|
flex-shrink: 1;
|
|
4948
5371
|
}
|
|
4949
|
-
.kjun-kpi-row__badge-dot {
|
|
4950
|
-
display: inline-block;
|
|
4951
|
-
width: var(--_kjun-extension-kpi-row-dot-size);
|
|
4952
|
-
height: var(--_kjun-extension-kpi-row-dot-size);
|
|
4953
|
-
border-radius: 50%;
|
|
4954
|
-
}
|
|
4955
5372
|
/* 값과 배지를 같은 행에 배치하고 긴 콘텐츠는 가용 폭 안에서 줄바꿈한다. */
|
|
4956
5373
|
.kjun-kpi-row__value-row {
|
|
4957
5374
|
display: flex;
|
|
4958
5375
|
align-items: center;
|
|
4959
5376
|
gap: var(--_kjun-extension-kpi-row-value-gap);
|
|
4960
5377
|
min-width: 0;
|
|
5378
|
+
min-height: var(--_kjun-kpi-row-value-line);
|
|
5379
|
+
}
|
|
5380
|
+
.kjun-kpi-row__affix[data-side="prefix"] {
|
|
5381
|
+
margin-right: var(--_kjun-extension-kpi-row-affix-gap);
|
|
5382
|
+
}
|
|
5383
|
+
.kjun-kpi-row__affix[data-side="suffix"] {
|
|
5384
|
+
margin-left: var(--_kjun-extension-kpi-row-affix-gap);
|
|
5385
|
+
}
|
|
5386
|
+
/* A clickable cell ends its value line with a chevron, so it reads as pressable without a pointer. */
|
|
5387
|
+
.kjun-kpi-row__chevron {
|
|
5388
|
+
flex-shrink: 0;
|
|
5389
|
+
width: var(--_kjun-extension-kpi-row-chevron-size);
|
|
5390
|
+
height: var(--_kjun-extension-kpi-row-chevron-size);
|
|
5391
|
+
margin-left: auto;
|
|
5392
|
+
color: var(--_kjun-text-tertiary);
|
|
4961
5393
|
}
|
|
4962
5394
|
.kjun-kpi-row__value {
|
|
4963
5395
|
font-family: var(--_kjun-font-numeric);
|
|
4964
5396
|
font-variant-numeric: tabular-nums;
|
|
5397
|
+
/* A number and its units are one word: "1,234,567원" moves to the next line whole, never leaving "원" alone. */
|
|
5398
|
+
word-break: keep-all;
|
|
4965
5399
|
}
|
|
4966
5400
|
/* 텍스트형 값(예: 최대 증가/감소 지표명) — 큰 숫자 글자 크기는 긴 한글명이 모바일 반폭 칸에서 여러 줄로
|
|
4967
5401
|
터지므로, 텍스트에 맞는 크기 + 한글 단어 보존(keep-all)으로 행 높이를 안정화한다. */
|
|
@@ -4987,6 +5421,7 @@
|
|
|
4987
5421
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4988
5422
|
padding: var(--_kjun-extension-kpi-row-mobile-padding-y) var(--_kjun-extension-kpi-row-mobile-padding-x);
|
|
4989
5423
|
overflow: hidden;
|
|
5424
|
+
--_kjun-kpi-row-value-line: var(--_kjun-type-number-lg-line);
|
|
4990
5425
|
}
|
|
4991
5426
|
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__item {
|
|
4992
5427
|
padding: var(--_kjun-extension-kpi-row-mobile-item-padding-y) var(--_kjun-extension-kpi-row-mobile-item-padding-x);
|
|
@@ -5022,10 +5457,6 @@
|
|
|
5022
5457
|
gap: var(--_kjun-extension-kpi-row-mobile-label-gap);
|
|
5023
5458
|
margin-bottom: var(--_kjun-extension-kpi-row-mobile-label-margin);
|
|
5024
5459
|
}
|
|
5025
|
-
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__value {
|
|
5026
|
-
}
|
|
5027
|
-
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__value--text {
|
|
5028
|
-
}
|
|
5029
5460
|
.kjun-kpi-row:not(.kjun-kpi-row--sm) .kjun-kpi-row__desc {
|
|
5030
5461
|
margin-top: var(--_kjun-extension-kpi-row-mobile-description-gap);
|
|
5031
5462
|
}
|
|
@@ -5042,6 +5473,7 @@
|
|
|
5042
5473
|
gap: var(--_kjun-extension-kpi-row-summary-gap-y) var(--_kjun-extension-kpi-row-summary-gap-x);
|
|
5043
5474
|
padding: var(--_kjun-extension-kpi-row-summary-padding-y) var(--_kjun-extension-kpi-row-summary-padding-x);
|
|
5044
5475
|
overflow: visible;
|
|
5476
|
+
--_kjun-kpi-row-value-line: var(--_kjun-type-display-sm-line);
|
|
5045
5477
|
}
|
|
5046
5478
|
.kjun-kpi-row.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm)
|
|
5047
5479
|
.kjun-kpi-row__item:nth-child(n) {
|
|
@@ -5056,17 +5488,10 @@
|
|
|
5056
5488
|
.kjun-kpi-row__item--summary-full:nth-child(n) {
|
|
5057
5489
|
flex-basis: 100%;
|
|
5058
5490
|
}
|
|
5059
|
-
.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm) .kjun-kpi-row__value {
|
|
5060
|
-
}
|
|
5061
|
-
.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm)
|
|
5062
|
-
.kjun-kpi-row__value--text {
|
|
5063
|
-
}
|
|
5064
5491
|
.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm)
|
|
5065
5492
|
.kjun-kpi-row__value--mobile-neutral {
|
|
5066
5493
|
color: var(--_kjun-text-primary);
|
|
5067
5494
|
}
|
|
5068
|
-
.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm) .kjun-kpi-row__desc {
|
|
5069
|
-
}
|
|
5070
5495
|
.kjun-kpi-row.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm)
|
|
5071
5496
|
.kjun-kpi-row__item--secondary:nth-child(n) {
|
|
5072
5497
|
display: flex;
|
|
@@ -5075,6 +5500,10 @@
|
|
|
5075
5500
|
align-items: baseline;
|
|
5076
5501
|
gap: var(--_kjun-extension-kpi-row-segment-gap);
|
|
5077
5502
|
max-width: 100%;
|
|
5503
|
+
--_kjun-kpi-row-value-line: auto;
|
|
5504
|
+
}
|
|
5505
|
+
.kjun-kpi-row--mobile-summary .kjun-kpi-row__item--secondary .kjun-kpi-row__chevron {
|
|
5506
|
+
display: none;
|
|
5078
5507
|
}
|
|
5079
5508
|
.kjun-kpi-row--mobile-summary .kjun-kpi-row__item--secondary:last-child {
|
|
5080
5509
|
margin-left: auto;
|
|
@@ -5103,10 +5532,6 @@
|
|
|
5103
5532
|
/* Korean labels and values wrap at spaces, not between syllables; anywhere stays the last resort. */
|
|
5104
5533
|
word-break: keep-all;
|
|
5105
5534
|
}
|
|
5106
|
-
.kjun-kpi-row--mobile-summary
|
|
5107
|
-
.kjun-kpi-row__item--secondary
|
|
5108
|
-
.kjun-kpi-row__value {
|
|
5109
|
-
}
|
|
5110
5535
|
.kjun-kpi-row--mobile-summary
|
|
5111
5536
|
.kjun-kpi-row__item--secondary
|
|
5112
5537
|
.kjun-kpi-row__desc {
|
|
@@ -5124,7 +5549,7 @@
|
|
|
5124
5549
|
.kjun-kpi-row__item--secondary
|
|
5125
5550
|
.kjun-kpi-row__segment-label {
|
|
5126
5551
|
display: inline;
|
|
5127
|
-
margin-right: var(--_kjun-
|
|
5552
|
+
margin-right: var(--_kjun-extension-kpi-row-segment-label-gap);
|
|
5128
5553
|
color: var(--_kjun-text-secondary);
|
|
5129
5554
|
}
|
|
5130
5555
|
.kjun-kpi-row--mobile-summary
|
|
@@ -5137,9 +5562,18 @@
|
|
|
5137
5562
|
}
|
|
5138
5563
|
}
|
|
5139
5564
|
|
|
5565
|
+
@media (width <= 400px) {
|
|
5566
|
+
/* On a phone the summary's half-width cell is too narrow for a display number and its unit, so the headline
|
|
5567
|
+
values step down one type level (to the grid's number size) instead of wrapping the unit under them. */
|
|
5568
|
+
.kjun-kpi-row.kjun-kpi-row--mobile-summary:not(.kjun-kpi-row--sm) {
|
|
5569
|
+
--_kjun-kpi-row-value-line: var(--_kjun-type-number-lg-line);
|
|
5570
|
+
}
|
|
5571
|
+
}
|
|
5572
|
+
|
|
5140
5573
|
/* size=sm — 모달, 컴팩트 카드 내부용 */
|
|
5141
5574
|
.kjun-kpi-row--sm {
|
|
5142
5575
|
padding: var(--_kjun-extension-kpi-row-sm-padding-y) var(--_kjun-extension-kpi-row-sm-padding-x);
|
|
5576
|
+
--_kjun-kpi-row-value-line: var(--_kjun-type-number-lg-line);
|
|
5143
5577
|
}
|
|
5144
5578
|
.kjun-kpi-row--sm .kjun-kpi-row__item {
|
|
5145
5579
|
padding: var(--_kjun-extension-kpi-row-sm-item-padding-y) var(--_kjun-extension-kpi-row-sm-item-padding-x);
|
|
@@ -5148,12 +5582,6 @@
|
|
|
5148
5582
|
margin-bottom: var(--_kjun-extension-kpi-row-sm-label-margin);
|
|
5149
5583
|
gap: var(--_kjun-extension-kpi-row-sm-label-gap);
|
|
5150
5584
|
}
|
|
5151
|
-
.kjun-kpi-row--sm .kjun-kpi-row__label {
|
|
5152
|
-
}
|
|
5153
|
-
.kjun-kpi-row--sm .kjun-kpi-row__value {
|
|
5154
|
-
}
|
|
5155
|
-
.kjun-kpi-row--sm .kjun-kpi-row__value--text {
|
|
5156
|
-
}
|
|
5157
5585
|
.kjun-kpi-row--sm .kjun-kpi-row__desc {
|
|
5158
5586
|
margin-top: var(--_kjun-extension-kpi-row-sm-description-gap);
|
|
5159
5587
|
}
|
|
@@ -5183,8 +5611,6 @@
|
|
|
5183
5611
|
.kjun-kpi-row--sm.kjun-kpi-row--hero-first .kjun-kpi-row__item:first-child {
|
|
5184
5612
|
--_kjun-kpi-row-divider-top: 0px;
|
|
5185
5613
|
}
|
|
5186
|
-
.kjun-kpi-row--sm .kjun-kpi-row__value {
|
|
5187
|
-
}
|
|
5188
5614
|
}
|
|
5189
5615
|
|
|
5190
5616
|
/* surface="none": 앱의 카드·모달·전폭 목록 안에서는 자체 카드 표면을 그리지 않는다. 미디어 규칙보다 뒤에 두어 좁은 화면에서도 이긴다. */
|
|
@@ -5198,6 +5624,8 @@
|
|
|
5198
5624
|
.kjun-card {
|
|
5199
5625
|
position: relative;
|
|
5200
5626
|
min-width: 0;
|
|
5627
|
+
/* Korean wraps between words; a long unbroken string still wraps inside the card. */
|
|
5628
|
+
word-break: keep-all;
|
|
5201
5629
|
overflow-wrap: anywhere;
|
|
5202
5630
|
background: var(--_kjun-card-background);
|
|
5203
5631
|
color: var(--_kjun-card-text);
|
|
@@ -5221,6 +5649,20 @@
|
|
|
5221
5649
|
border-top-right-radius: inherit;
|
|
5222
5650
|
}
|
|
5223
5651
|
.kjun-card-media > img { display: block; width: 100%; height: auto; }
|
|
5652
|
+
/* A fixed ratio (mediaAspect) or a side column fills the frame; images and video crop to it. */
|
|
5653
|
+
.kjun-card-media:is([data-aspect], [data-side]) > * { display: block; width: 100%; height: 100%; }
|
|
5654
|
+
.kjun-card-media:is([data-aspect], [data-side]) > :is(img, video) { object-fit: cover; }
|
|
5655
|
+
/* Media at the start: a fixed column beside the header, body and footer, rounded on the start side only. */
|
|
5656
|
+
.kjun-card[data-media="start"] { display: grid; grid-template-columns: var(--_kjun-geometry-card-side-media-width) minmax(0, 1fr); align-content: start; }
|
|
5657
|
+
.kjun-card[data-media="start"] > :not(.kjun-card-media) { grid-column: 2; }
|
|
5658
|
+
.kjun-card[data-media="start"] > .kjun-card-media {
|
|
5659
|
+
grid-column: 1;
|
|
5660
|
+
border-start-start-radius: inherit;
|
|
5661
|
+
border-end-start-radius: inherit;
|
|
5662
|
+
border-start-end-radius: 0;
|
|
5663
|
+
border-end-end-radius: 0;
|
|
5664
|
+
}
|
|
5665
|
+
.kjun-card[data-media="start"] > .kjun-card-media[data-aspect] { align-self: start; }
|
|
5224
5666
|
.kjun-card > .kjun-card-media:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
|
|
5225
5667
|
.kjun-card > .kjun-card-header {
|
|
5226
5668
|
display: flex;
|
|
@@ -5229,39 +5671,35 @@
|
|
|
5229
5671
|
gap: var(--_kjun-geometry-card-title-gap);
|
|
5230
5672
|
padding: var(--_kjun-card-padding);
|
|
5231
5673
|
}
|
|
5674
|
+
/* Without a divider the header sits a step closer to the body than to the card edge, so title and body read as one group. */
|
|
5675
|
+
.kjun-card[data-dividers="false"] > .kjun-card-header:has(+ .kjun-card-body) { padding-bottom: var(--_kjun-card-header-gap); }
|
|
5232
5676
|
.kjun-card > .kjun-card-header[data-description="true"] { align-items: flex-start; }
|
|
5677
|
+
/* Actions beside a title line up with its first line, also when the title wraps. */
|
|
5678
|
+
.kjun-card > .kjun-card-header[data-titled] { align-items: first baseline; }
|
|
5233
5679
|
.kjun-card-heading { flex: 1 1 auto; min-width: 0; max-width: 100%; }
|
|
5234
|
-
|
|
5235
|
-
.kjun-card-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
overflow-wrap: anywhere;
|
|
5241
|
-
padding-block: max(0px, calc((var(--_kjun-card-action-height) - 1lh) / 2)) !important;
|
|
5242
|
-
}
|
|
5243
|
-
.kjun-card-actions > .kjun-button[data-size="xs"] { --_kjun-card-action-height: var(--_kjun-geometry-button-heights-xs); }
|
|
5244
|
-
.kjun-card-actions > .kjun-button[data-size="sm"] { --_kjun-card-action-height: var(--_kjun-geometry-button-heights-sm); }
|
|
5245
|
-
.kjun-card-actions > .kjun-button[data-size="lg"] { --_kjun-card-action-height: var(--_kjun-geometry-button-heights-lg); }
|
|
5246
|
-
.kjun-card-actions > .kjun-button[data-size="xl"] { --_kjun-card-action-height: var(--_kjun-geometry-button-heights-xl); }
|
|
5247
|
-
.kjun-card-actions > .kjun-button > .kjun-button-label { min-width: 0; }
|
|
5248
|
-
.kjun-card-heading > h3 {
|
|
5680
|
+
/* A title keeps a minimum width beside the actions: a badge stays on the title row, a wide action moves below at the start. A custom header keeps its own width. */
|
|
5681
|
+
.kjun-card-heading[data-title] { flex-basis: var(--_kjun-geometry-card-title-min-width); }
|
|
5682
|
+
.kjun-card-actions { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--_kjun-geometry-card-title-gap); }
|
|
5683
|
+
/* Actions alone in a header keep the end of the row. */
|
|
5684
|
+
.kjun-card-actions:first-child { margin-inline-start: auto; }
|
|
5685
|
+
.kjun-card-title {
|
|
5249
5686
|
margin: 0;
|
|
5250
5687
|
font-size: var(--_kjun-type-card-title-size);
|
|
5251
5688
|
line-height: var(--_kjun-type-card-title-line);
|
|
5252
5689
|
font-weight: var(--_kjun-type-card-title-weight);
|
|
5253
5690
|
letter-spacing: var(--_kjun-type-card-title-tracking);
|
|
5254
5691
|
}
|
|
5255
|
-
.kjun-card-
|
|
5692
|
+
.kjun-card-subtitle {
|
|
5256
5693
|
margin: var(--_kjun-geometry-card-subtitle-gap) 0 0;
|
|
5257
5694
|
color: var(--_kjun-card-description);
|
|
5258
|
-
font-size: var(--_kjun-type-
|
|
5259
|
-
line-height: var(--_kjun-type-
|
|
5260
|
-
font-weight: var(--_kjun-type-
|
|
5261
|
-
letter-spacing: var(--_kjun-type-
|
|
5695
|
+
font-size: var(--_kjun-type-body-size);
|
|
5696
|
+
line-height: var(--_kjun-type-body-line);
|
|
5697
|
+
font-weight: var(--_kjun-type-body-weight);
|
|
5698
|
+
letter-spacing: var(--_kjun-type-body-tracking);
|
|
5262
5699
|
}
|
|
5263
5700
|
.kjun-card > .kjun-card-body { min-width: 0; padding: var(--_kjun-card-body-padding); }
|
|
5264
5701
|
.kjun-card > .kjun-card-footer { padding: var(--_kjun-card-padding); }
|
|
5702
|
+
.kjun-card > .kjun-card-footer[data-align="end"] { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--_kjun-geometry-card-title-gap); }
|
|
5265
5703
|
.kjun-card[data-dividers="false"] > .kjun-card-header + .kjun-card-body { padding-top: 0; }
|
|
5266
5704
|
.kjun-card[data-dividers="false"]:not([data-body-padding="none"]) > .kjun-card-body + .kjun-card-footer,
|
|
5267
5705
|
.kjun-card[data-dividers="false"] > .kjun-card-header + .kjun-card-footer { padding-top: 0; }
|
|
@@ -5269,11 +5707,18 @@
|
|
|
5269
5707
|
.kjun-card[data-dividers="true"] > .kjun-card-footer:not(:first-child) { border-top: var(--_kjun-border-default-width) solid var(--_kjun-card-border); }
|
|
5270
5708
|
/* A pressable card is one button: it lifts on hover, presses in on activation and shows the focus ring. */
|
|
5271
5709
|
.kjun-card[data-pressable] { box-shadow: var(--_kjun-card-shadow); cursor: pointer; transition: box-shadow var(--_kjun-motion-control) var(--_kjun-ease-out), transform var(--_kjun-motion-control) var(--_kjun-ease-out); }
|
|
5272
|
-
|
|
5710
|
+
/* Hover lifts one step: flat to raised, raised to floating. */
|
|
5711
|
+
.kjun-card[data-pressable]:hover:not([aria-disabled="true"]) { box-shadow: var(--_kjun-elevation-raised); }
|
|
5712
|
+
.kjun-card[data-pressable][data-elevation="raised"]:hover:not([aria-disabled="true"]) { box-shadow: var(--_kjun-elevation-lifted); }
|
|
5273
5713
|
.kjun-card[data-pressable]:active:not([aria-disabled="true"]) { transform: scale(0.99); }
|
|
5274
5714
|
.kjun-card[data-pressable]:focus-visible { outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring); outline-offset: var(--_kjun-state-focus-offset); }
|
|
5275
5715
|
.kjun-card[data-pressable][aria-disabled="true"] { cursor: not-allowed; opacity: var(--_kjun-state-opacity-disabled); }
|
|
5276
5716
|
@media (prefers-reduced-motion: reduce) { .kjun-card[data-pressable] { transition: none; } .kjun-card[data-pressable]:active { transform: none; } }
|
|
5717
|
+
/* On a tinted surface a badge paints the plain surface colour, so it does not dissolve into a fill of its own tone. */
|
|
5718
|
+
.kjun-card:not([data-surface="default"], [data-surface="glass"]) { --_kjun-badge-fill: var(--_kjun-color-surface); }
|
|
5719
|
+
/* A plain card nested in a tinted one, and parts painted on the plain surface (list sections, expanded table cards), drop it again. */
|
|
5720
|
+
.kjun-card:is([data-surface="default"], [data-surface="glass"]),
|
|
5721
|
+
.kjun-card :is(.kjun-list-section:not([data-surface="false"]), .kjun-list-panel:not([data-surface="false"]), .kjun-table-card-expand-content) { --_kjun-badge-fill: initial; }
|
|
5277
5722
|
|
|
5278
5723
|
/* Toasts keep clear of the safe area at their edge, plus the app's offset (KjunFeedbackProvider placement / offset).
|
|
5279
5724
|
The inset is padding inside the stack rather than its position, so the cards' shadows are never clipped, and
|
|
@@ -5516,16 +5961,7 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5516
5961
|
}
|
|
5517
5962
|
}
|
|
5518
5963
|
|
|
5519
|
-
.kjun-
|
|
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)}
|
|
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)}
|
|
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}
|
|
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)}
|
|
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%}
|
|
5527
|
-
/* A disabled row disables its actions too, so the row never reads as partly available. */
|
|
5528
|
-
.kjun-list-actions[data-disabled]{opacity:var(--_kjun-state-opacity-disabled)}
|
|
5964
|
+
.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)}
|
|
5529
5965
|
.kjun-navigation-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--_kjun-extension-navigation-actions-gap);min-width:0}
|
|
5530
5966
|
.kjun-image{position:relative;display:block;width:100%;overflow:hidden;background:var(--_kjun-color-secondary)}.kjun-image img{display:block;width:100%;height:100%;position:absolute;inset:0}.kjun-image-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--_kjun-color-text-secondary);font-weight: var(--_kjun-type-control-weight)}.kjun-avatar{display:inline-block;flex-shrink:0;border-radius:50%;overflow:hidden}
|
|
5531
5967
|
/* Initials scale with the avatar (about 40% of its side) and show Latin initials in capitals. */
|
|
@@ -5534,18 +5970,22 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5534
5970
|
.kjun-avatar[data-size=lg] .kjun-image-fallback{font-size:var(--_kjun-type-section-title-size);line-height:var(--_kjun-type-section-title-line)}.kjun-avatar[data-size=xs] .kjun-image-fallback{font-size:var(--_kjun-type-control-small-size);line-height:var(--_kjun-type-control-small-line)}.kjun-avatar[data-size=xl] .kjun-image-fallback{font-size:var(--_kjun-type-page-title-size);line-height:var(--_kjun-type-page-title-line)}.kjun-avatar[data-shape=square]{border-radius:var(--_kjun-geometry-radius-radius8)}
|
|
5535
5971
|
/* App colors (color/textColor) arrive as private custom properties; without them the image roles stay. */
|
|
5536
5972
|
.kjun-avatar .kjun-image{background:var(--_kjun-avatar-color,var(--_kjun-color-secondary))}.kjun-avatar .kjun-image-fallback{color:var(--_kjun-avatar-text-color,var(--_kjun-color-text-secondary))}
|
|
5537
|
-
|
|
5538
|
-
.kjun-chip
|
|
5539
|
-
|
|
5540
|
-
.kjun-chip
|
|
5541
|
-
.kjun-chip
|
|
5973
|
+
/* Size rules only choose values; the base rule applies them once. */
|
|
5974
|
+
.kjun-chip{--_kjun-chip-remove-icon:var(--_kjun-extension-chip-remove-icon-sizes-md);--_kjun-chip-padding:var(--_kjun-extension-chip-padding-x-md);--_kjun-chip-gap:var(--_kjun-extension-chip-gaps-md);--_kjun-chip-height:var(--_kjun-extension-chip-md);--_kjun-chip-font-size:var(--_kjun-extension-chip-typography-md-font-size-px);--_kjun-chip-line:var(--_kjun-extension-chip-typography-md-line-height-px);--_kjun-chip-tracking:var(--_kjun-extension-chip-typography-md-letter-spacing-em);display:inline-flex;max-width:100%;min-width:0;align-items:center;gap:var(--_kjun-chip-gap);min-height:var(--_kjun-chip-height);padding:var(--_kjun-extension-chip-padding-y) var(--_kjun-chip-padding);border-radius:var(--_kjun-extension-chip-radius);background:var(--_kjun-color-secondary);font-size:var(--_kjun-chip-font-size);line-height:var(--_kjun-chip-line);font-weight:var(--_kjun-extension-chip-font-weight);letter-spacing:var(--_kjun-chip-tracking)}
|
|
5975
|
+
/* A chip is a short tag: a long label stays on one line and ends in an ellipsis. */
|
|
5976
|
+
.kjun-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
5977
|
+
.kjun-chip[data-size=sm]{--_kjun-chip-remove-icon:var(--_kjun-extension-chip-remove-icon-sizes-sm);--_kjun-chip-padding:var(--_kjun-extension-chip-padding-x-sm);--_kjun-chip-gap:var(--_kjun-extension-chip-gaps-sm);--_kjun-chip-height:var(--_kjun-extension-chip-sm);--_kjun-chip-font-size:var(--_kjun-extension-chip-typography-sm-font-size-px);--_kjun-chip-line:var(--_kjun-extension-chip-typography-sm-line-height-px);--_kjun-chip-tracking:var(--_kjun-extension-chip-typography-sm-letter-spacing-em)}
|
|
5978
|
+
.kjun-chip[data-size=lg]{--_kjun-chip-remove-icon:var(--_kjun-extension-chip-remove-icon-sizes-lg);--_kjun-chip-padding:var(--_kjun-extension-chip-padding-x-lg);--_kjun-chip-gap:var(--_kjun-extension-chip-gaps-lg);--_kjun-chip-height:var(--_kjun-extension-chip-lg);--_kjun-chip-font-size:var(--_kjun-extension-chip-typography-lg-font-size-px);--_kjun-chip-line:var(--_kjun-extension-chip-typography-lg-line-height-px);--_kjun-chip-tracking:var(--_kjun-extension-chip-typography-lg-letter-spacing-em)}
|
|
5979
|
+
.kjun-chip button{display:flex;align-items:center;justify-content:center;min-width:var(--_kjun-extension-chip-remove-size);min-height:var(--_kjun-extension-chip-remove-size);border:0;border-radius:50%;padding:0;background:transparent;color:var(--_kjun-color-text-secondary);flex-shrink:0;margin-block:calc(var(--_kjun-extension-chip-padding-y) * -1)}
|
|
5542
5980
|
/* The removal target keeps its Web minimum but may overlap the chip padding, so sm stays at its own height.
|
|
5543
5981
|
Removable chips trim the trailing padding until the x glyph's outer inset matches the leading padding. */
|
|
5544
|
-
.kjun-chip[data-removable=true]{padding-right:calc(var(--_kjun-
|
|
5545
|
-
|
|
5982
|
+
.kjun-chip[data-removable=true]{padding-right:calc(var(--_kjun-chip-padding) - (var(--_kjun-extension-chip-remove-size) - var(--_kjun-chip-remove-icon)) / 2)}
|
|
5983
|
+
/* Tinted from the text colour so the states read on the chip's own fill. */
|
|
5984
|
+
.kjun-chip button:hover:not(:disabled){background:color-mix(in srgb, var(--_kjun-color-text) calc(var(--_kjun-state-opacity-tint-hover) * 100%), transparent);color:var(--_kjun-color-text)}
|
|
5985
|
+
.kjun-chip button:active:not(:disabled){background:color-mix(in srgb, var(--_kjun-color-text) calc(var(--_kjun-state-opacity-tint-active) * 100%), transparent)}
|
|
5546
5986
|
.kjun-chip[data-disabled=true]{opacity:var(--_kjun-state-opacity-disabled)}
|
|
5547
5987
|
/* Links and page buttons use the system ring instead of the browser default. */
|
|
5548
|
-
.kjun-scope :is(.kjun-
|
|
5988
|
+
.kjun-scope :is(.kjun-bottom-navigation a,.kjun-floating-navigation a,.kjun-chip button,.kjun-breadcrumb a,.kjun-external-link,.kjun-pagination-button):focus-visible{outline:var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);outline-offset:var(--_kjun-state-focus-offset)}
|
|
5549
5989
|
/* Kept out of the :is() above: its :not() would raise that whole rule over the inset overrides below. */
|
|
5550
5990
|
.kjun-scope .kjun-pagination button:not(.kjun-select-trigger):focus-visible{outline:var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);outline-offset:var(--_kjun-state-focus-offset)}
|
|
5551
5991
|
/* Inline text links round the ring so it does not box the glyphs. */
|
|
@@ -5553,16 +5993,17 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5553
5993
|
/* Draw the removal ring inside its circle so it stays within the chip outline and clear of the label. */
|
|
5554
5994
|
.kjun-scope .kjun-chip button:focus-visible{outline-offset:var(--_kjun-state-focus-inset-offset)}
|
|
5555
5995
|
/* Bottom bars meet the screen edges, so their items draw the ring inside, like tabs. */
|
|
5556
|
-
|
|
5557
|
-
.kjun-scope
|
|
5996
|
+
/* The ring takes the press shape: inset from the destination's edges with the same corners. */
|
|
5997
|
+
.kjun-scope .kjun-bottom-navigation a:focus-visible{outline-offset:calc(0px - var(--_kjun-extension-bottom-navigation-press-inset) - var(--_kjun-state-focus-width));border-radius:var(--_kjun-extension-bottom-navigation-press-radius)}
|
|
5998
|
+
.kjun-scope .kjun-floating-navigation a[aria-disabled=true]{opacity:var(--_kjun-state-opacity-disabled);cursor:default}
|
|
5558
5999
|
/* 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
6000
|
margin and the rail reaches back out to the edges. The touch area stays 44px while the visible band sits captionGap under the
|
|
5560
6001
|
caption. */
|
|
5561
6002
|
.kjun-slider {
|
|
5562
6003
|
--_kjun-slider-track:var(--_kjun-extension-slider-track); --_kjun-slider-thumb:var(--_kjun-extension-slider-thumb);
|
|
5563
6004
|
--_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
|
|
5565
|
-
--_kjun-slider-thumb-shadow:0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border), var(--_kjun-slider-elevation);
|
|
6005
|
+
/* The lift plus a hairline in the strong border role (the control-boundary role), so a white thumb reads on a white surface. */
|
|
6006
|
+
--_kjun-slider-thumb-shadow:0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border-strong), var(--_kjun-slider-elevation);
|
|
5566
6007
|
width:100%; min-width:var(--_kjun-extension-slider-minimum-width); display:grid;
|
|
5567
6008
|
}
|
|
5568
6009
|
.kjun-slider[data-size=sm] {
|
|
@@ -5599,8 +6040,9 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5599
6040
|
height:var(--_kjun-slider-track); border-radius:var(--_kjun-geometry-radius-radius9999);
|
|
5600
6041
|
}
|
|
5601
6042
|
.kjun-slider-rail {
|
|
6043
|
+
/* One empty-rail role for Slider, RangeSlider, Progress and the circle track: the switch-track role. */
|
|
5602
6044
|
left:calc(var(--_kjun-slider-thumb) / -2); right:calc(var(--_kjun-slider-thumb) / -2);
|
|
5603
|
-
background:
|
|
6045
|
+
background:var(--_kjun-color-switch-track);
|
|
5604
6046
|
}
|
|
5605
6047
|
.kjun-slider-fill { background:var(--_kjun-color-brand); }
|
|
5606
6048
|
/* One white thumb lifted by a contact shadow, like the switch thumb; pressing adds a brand halo and grows it to pressedThumb. */
|
|
@@ -5620,7 +6062,13 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5620
6062
|
width:var(--_kjun-slider-pressed); height:var(--_kjun-slider-pressed); cursor:grabbing;
|
|
5621
6063
|
}
|
|
5622
6064
|
.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; }
|
|
5623
|
-
|
|
6065
|
+
/* One disabled rule, as Button and fields: no fading; the fill, the thumb edge and the text take the disabled-text role
|
|
6066
|
+
and the thumb loses its lift, so it no longer reads as draggable. */
|
|
6067
|
+
.kjun-slider[data-disabled=true] {
|
|
6068
|
+
--_kjun-slider-thumb-shadow:0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-text-disabled);
|
|
6069
|
+
}
|
|
6070
|
+
.kjun-slider[data-disabled=true] :is(.kjun-slider-label, .kjun-slider-value, .kjun-slider-marks) { color:var(--_kjun-color-text-disabled); }
|
|
6071
|
+
.kjun-slider[data-disabled=true] .kjun-slider-fill { background:var(--_kjun-color-text-disabled); }
|
|
5624
6072
|
.kjun-slider[data-disabled=true] .kjun-slider-thumb { cursor:default; }
|
|
5625
6073
|
/* 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
6074
|
.kjun-slider-mark {
|
|
@@ -5662,8 +6110,9 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5662
6110
|
.kjun-slider[data-orientation=vertical] .kjun-slider-mark-label { left:0; transform:translateY(-50%); }
|
|
5663
6111
|
|
|
5664
6112
|
.kjun-top-navigation { flex-shrink:0; }
|
|
6113
|
+
/* One row at any width: the title shrinks to an ellipsis, icon actions keep their size and text actions shorten. */
|
|
5665
6114
|
.kjun-navigation-content {
|
|
5666
|
-
min-height:var(--_kjun-extension-top-navigation-minimum-height); display:flex; flex-wrap:
|
|
6115
|
+
min-height:var(--_kjun-extension-top-navigation-minimum-height); display:flex; flex-wrap:nowrap; align-items:flex-start;
|
|
5667
6116
|
gap:var(--_kjun-extension-top-navigation-gap);
|
|
5668
6117
|
padding:var(--_kjun-extension-top-navigation-padding-y) var(--_kjun-extension-top-navigation-padding-x);
|
|
5669
6118
|
}
|
|
@@ -5672,23 +6121,30 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5672
6121
|
min-height:var(--_kjun-extension-top-navigation-control-size);
|
|
5673
6122
|
}
|
|
5674
6123
|
.kjun-navigation-title {
|
|
5675
|
-
flex:1 1
|
|
6124
|
+
flex:1 1 0; min-width:0; word-break:keep-all; overflow-wrap:anywhere;
|
|
5676
6125
|
padding-block:max(0px, calc((var(--_kjun-extension-top-navigation-control-size) - var(--_kjun-type-section-title-line)) / 2));
|
|
5677
6126
|
}
|
|
5678
6127
|
.kjun-navigation-title strong {
|
|
5679
6128
|
display:block; font-size:var(--_kjun-type-section-title-size); line-height:var(--_kjun-type-section-title-line);
|
|
5680
6129
|
font-weight:var(--_kjun-type-control-weight); letter-spacing:var(--_kjun-type-section-title-tracking);
|
|
6130
|
+
white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
|
|
5681
6131
|
}
|
|
5682
6132
|
.kjun-navigation-title p {
|
|
5683
6133
|
margin:var(--_kjun-extension-top-navigation-description-gap) 0 0; color:var(--_kjun-color-text-secondary);
|
|
5684
6134
|
font-size:var(--_kjun-type-caption-size); line-height:var(--_kjun-type-caption-line);
|
|
5685
6135
|
font-weight:var(--_kjun-type-caption-weight); letter-spacing:var(--_kjun-type-caption-tracking);
|
|
6136
|
+
/* One line like the title, so the bar keeps its height beside its actions. */
|
|
6137
|
+
white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
|
|
5686
6138
|
}
|
|
6139
|
+
/* Actions never wrap or shrink below their icons; text actions stop short of the title's minimum width and end in an ellipsis. */
|
|
5687
6140
|
.kjun-top-navigation .kjun-navigation-actions {
|
|
5688
|
-
min-height:var(--_kjun-extension-top-navigation-control-size);
|
|
6141
|
+
min-height:var(--_kjun-extension-top-navigation-control-size); flex:none; flex-wrap:nowrap; margin-inline-start:auto;
|
|
6142
|
+
max-width:calc(100% - var(--_kjun-extension-top-navigation-title-minimum-width));
|
|
5689
6143
|
gap:var(--_kjun-extension-top-navigation-actions-gap);
|
|
5690
6144
|
}
|
|
5691
|
-
.kjun-navigation-leading > *, .kjun-top-navigation .kjun-navigation-actions > * { min-width:0; max-width:100%; }
|
|
6145
|
+
.kjun-navigation-leading > *, .kjun-top-navigation .kjun-navigation-actions > * { flex-shrink:0; min-width:0; max-width:100%; }
|
|
6146
|
+
.kjun-navigation-leading > :has(.kjun-button-label:not(:empty)),
|
|
6147
|
+
.kjun-top-navigation .kjun-navigation-actions > :has(.kjun-button-label:not(:empty)) { flex-shrink:1; }
|
|
5692
6148
|
/* Icon-only controls at either end align their glyph, not their 44px target, with the content gutter;
|
|
5693
6149
|
the target extends into the padding. Text buttons keep their own padding. */
|
|
5694
6150
|
.kjun-top-navigation {
|
|
@@ -5703,60 +6159,68 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5703
6159
|
.kjun-top-navigation .kjun-navigation-actions:has(> :last-child .kjun-button-label:empty, > .kjun-icon-toggle:last-child, > :last-child .kjun-icon-toggle) {
|
|
5704
6160
|
margin-inline-end:var(--_kjun-navigation-edge-inset);
|
|
5705
6161
|
}
|
|
5706
|
-
.kjun-top-navigation .kjun-button { white-space:
|
|
5707
|
-
.kjun-top-navigation .kjun-button-label { min-width:0; }
|
|
5708
|
-
.kjun-navigation-leading .kjun-button-label { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
6162
|
+
.kjun-top-navigation .kjun-button { white-space:nowrap; }
|
|
6163
|
+
.kjun-top-navigation .kjun-button-label { display:block; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
5709
6164
|
|
|
5710
|
-
.kjun-bottom-navigation { display:flex; flex-shrink:0; }
|
|
5711
|
-
/* A
|
|
5712
|
-
|
|
6165
|
+
.kjun-bottom-navigation { display:flex; flex-shrink:0; justify-content:center; }
|
|
6166
|
+
/* A square bar across the screen's bottom edge: a soft shadow thrown upwards keeps it apart from the content above it.
|
|
6167
|
+
A bar without a surface stays seamless. */
|
|
6168
|
+
.kjun-bottom-navigation:not([data-surface="false"]) { box-shadow:var(--_kjun-bottom-navigation-elevation); }
|
|
5713
6169
|
.kjun-bottom-navigation > a {
|
|
5714
|
-
position:relative;
|
|
5715
|
-
display:flex; flex:1; min-width:0; min-height:var(--_kjun-extension-bottom-navigation-minimum-height);
|
|
6170
|
+
position:relative; isolation:isolate; box-sizing:border-box;
|
|
6171
|
+
display:flex; flex:1; min-width:0; max-width:var(--_kjun-extension-bottom-navigation-item-maximum-width); min-height:var(--_kjun-extension-bottom-navigation-minimum-height);
|
|
5716
6172
|
flex-direction:column; align-items:center; justify-content:center;
|
|
5717
6173
|
gap:var(--_kjun-extension-bottom-navigation-item-gap);
|
|
5718
6174
|
padding:var(--_kjun-extension-bottom-navigation-item-padding-y) var(--_kjun-extension-bottom-navigation-item-padding-x);
|
|
5719
|
-
|
|
6175
|
+
/* Unselected destinations step back to the tertiary text role; disabled ones go one step further. */
|
|
6176
|
+
color:var(--_kjun-color-text-tertiary); text-decoration:none; text-align:center;
|
|
5720
6177
|
font-size:var(--_kjun-type-caption-size); line-height:var(--_kjun-type-caption-line);
|
|
5721
6178
|
font-weight:var(--_kjun-type-label-weight); letter-spacing:var(--_kjun-type-caption-tracking);
|
|
5722
6179
|
}
|
|
6180
|
+
/* Under an icon the label is a one-line caption, so the icon leads and the bar keeps its height. */
|
|
5723
6181
|
.kjun-bottom-navigation[data-icons] > a { justify-content:flex-start; }
|
|
5724
|
-
|
|
6182
|
+
.kjun-bottom-navigation[data-icons] .kjun-navigation-label { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
6183
|
+
/* A destination without an icon keeps its badge after the label; the label then leaves room for the badge's ring. */
|
|
6184
|
+
.kjun-bottom-navigation[data-icons] .kjun-navigation-label:has(> .kjun-navigation-badge) { overflow:visible; }
|
|
6185
|
+
/* Icons alone: a lower bar with the icon centered; each destination keeps its label as its accessible name. */
|
|
6186
|
+
.kjun-bottom-navigation[data-labels="false"] > a { min-height:var(--_kjun-extension-bottom-navigation-icon-only-minimum-height); justify-content:center; }
|
|
6187
|
+
/* The selected destination takes the brand colour and the control weight; by default its icon also swaps to the filled glyph. */
|
|
5725
6188
|
.kjun-bottom-navigation > a[aria-current] { color:var(--_kjun-color-brand); font-weight:var(--_kjun-type-control-weight); }
|
|
6189
|
+
.kjun-scope .kjun-bottom-navigation > a[aria-disabled="true"] { color:var(--_kjun-color-text-disabled); cursor:default; }
|
|
5726
6190
|
.kjun-navigation-icon {
|
|
5727
6191
|
position:relative; display:block; flex-shrink:0;
|
|
5728
6192
|
width:var(--_kjun-extension-bottom-navigation-icon-size); height:var(--_kjun-extension-bottom-navigation-icon-size);
|
|
5729
6193
|
}
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
.kjun-bottom-navigation[data-
|
|
5733
|
-
.kjun-
|
|
5734
|
-
|
|
5735
|
-
|
|
6194
|
+
/* Outline glyphs draw a thinner stroke at this size; when every icon stays an outline, the selected one takes the full stroke. */
|
|
6195
|
+
.kjun-bottom-navigation .kjun-navigation-icon > .kjun-icon { stroke-width:var(--_kjun-extension-bottom-navigation-icon-stroke-width); }
|
|
6196
|
+
.kjun-bottom-navigation[data-icon-style="outline"] > a[aria-current] .kjun-navigation-icon > .kjun-icon { stroke-width:var(--_kjun-extension-bottom-navigation-selected-icon-stroke-width); }
|
|
6197
|
+
.kjun-navigation-label { position:relative; max-width:100%; word-break:keep-all; overflow-wrap:anywhere; }
|
|
6198
|
+
/* Hover, press and keyboard focus share one shape: a rounded rectangle inset from the destination's edges, clear of the label. */
|
|
6199
|
+
.kjun-bottom-navigation > a::before {
|
|
6200
|
+
content:""; position:absolute; z-index:-1; inset:var(--_kjun-extension-bottom-navigation-press-inset);
|
|
6201
|
+
border-radius:var(--_kjun-extension-bottom-navigation-press-radius); background:transparent; pointer-events:none;
|
|
5736
6202
|
}
|
|
5737
|
-
.kjun-bottom-navigation[data-icons] .kjun-navigation-icon::before { left:50%; width:var(--_kjun-extension-bottom-navigation-press-size); transform:translate(-50%, -50%); }
|
|
5738
|
-
.kjun-bottom-navigation:not([data-icons]) .kjun-navigation-label::before { left:calc(0px - var(--_kjun-extension-bottom-navigation-press-padding-x)); right:calc(0px - var(--_kjun-extension-bottom-navigation-press-padding-x)); }
|
|
5739
6203
|
@media (hover:hover) {
|
|
5740
|
-
.kjun-bottom-navigation > a:not([aria-disabled="true"]):hover
|
|
6204
|
+
.kjun-bottom-navigation > a:not([aria-disabled="true"]):hover::before { background:var(--_kjun-color-hover); }
|
|
5741
6205
|
.kjun-floating-navigation > a:not([aria-current]):not([aria-disabled="true"]):hover { background:var(--_kjun-color-hover); }
|
|
5742
6206
|
}
|
|
5743
|
-
.kjun-bottom-navigation > a:not([aria-disabled="true"]):active
|
|
6207
|
+
.kjun-bottom-navigation > a:not([aria-disabled="true"]):active::before { background:var(--_kjun-color-active); }
|
|
5744
6208
|
.kjun-navigation-badge {
|
|
5745
|
-
position:absolute; top:calc(0px - var(--_kjun-extension-
|
|
5746
|
-
inset-inline-start:calc(100% - var(--_kjun-extension-
|
|
6209
|
+
position:absolute; top:calc(0px - var(--_kjun-extension-navigation-badge-offset));
|
|
6210
|
+
inset-inline-start:calc(100% - var(--_kjun-extension-navigation-badge-overlap));
|
|
5747
6211
|
display:flex; align-items:center; justify-content:center; pointer-events:none; white-space:nowrap;
|
|
5748
|
-
min-width:var(--_kjun-extension-
|
|
5749
|
-
padding:0 var(--_kjun-extension-
|
|
5750
|
-
/* An alert colour apart from the selection; the surface ring cuts it out of the icon
|
|
6212
|
+
min-width:var(--_kjun-extension-navigation-badge-minimum-size); min-height:var(--_kjun-extension-navigation-badge-minimum-size);
|
|
6213
|
+
padding:0 var(--_kjun-extension-navigation-badge-padding-x); border-radius:var(--_kjun-extension-navigation-badge-radius);
|
|
6214
|
+
/* An alert colour apart from the selection; the surface ring cuts it out of the icon it overlaps. */
|
|
5751
6215
|
background:var(--_kjun-color-danger); color:var(--_kjun-color-on-danger);
|
|
5752
6216
|
box-shadow:0 0 0 var(--_kjun-border-control-width) var(--_kjun-navigation-ring, var(--_kjun-color-surface));
|
|
5753
6217
|
font-size:var(--_kjun-type-caption-size); line-height:var(--_kjun-type-caption-line); font-weight:var(--_kjun-type-control-weight);
|
|
5754
6218
|
font-variant-numeric:tabular-nums;
|
|
5755
6219
|
}
|
|
5756
|
-
/*
|
|
6220
|
+
/* Counts and dots sit on the icon's top end corner, overlapping only its outer edge. */
|
|
5757
6221
|
.kjun-navigation-badge[data-dot] {
|
|
5758
|
-
top:0; inset-inline-start:calc(100% - var(--_kjun-extension-
|
|
5759
|
-
min-width:0; min-height:0; width:var(--_kjun-extension-
|
|
6222
|
+
top:0; inset-inline-start:calc(100% - var(--_kjun-extension-navigation-badge-dot-overlap));
|
|
6223
|
+
min-width:0; min-height:0; width:var(--_kjun-extension-navigation-badge-dot-size); height:var(--_kjun-extension-navigation-badge-dot-size); padding:0;
|
|
5760
6224
|
}
|
|
5761
6225
|
/* Without a surface the bar shows the page background, so the ring takes that colour instead. */
|
|
5762
6226
|
.kjun-bottom-navigation[data-surface="false"] { --_kjun-navigation-ring: var(--_kjun-color-background); }
|
|
@@ -5768,7 +6232,7 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5768
6232
|
/* Beside a text label the badge sits in the line after the text, so it takes room and never covers the next item. */
|
|
5769
6233
|
.kjun-navigation-label > .kjun-navigation-badge {
|
|
5770
6234
|
position:relative; top:auto; inset-inline-start:auto; display:inline-flex; vertical-align:middle;
|
|
5771
|
-
margin-inline-start:var(--_kjun-extension-
|
|
6235
|
+
margin-inline-start:var(--_kjun-extension-navigation-badge-offset);
|
|
5772
6236
|
}
|
|
5773
6237
|
.kjun-navigation-label > .kjun-navigation-badge[data-dot] { vertical-align:top; }
|
|
5774
6238
|
/* A capsule detached from the screen edge: icons only, the selected destination inverted. */
|
|
@@ -5778,7 +6242,7 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5778
6242
|
overflow-x:auto; scrollbar-width:none;
|
|
5779
6243
|
margin:0 auto var(--_kjun-extension-floating-navigation-offset); padding:var(--_kjun-extension-floating-navigation-padding);
|
|
5780
6244
|
gap:var(--_kjun-extension-floating-navigation-gap); border-radius:var(--_kjun-extension-floating-navigation-radius);
|
|
5781
|
-
background:var(--_kjun-color-surface); box-shadow:0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border), var(--_kjun-elevation
|
|
6245
|
+
background:var(--_kjun-color-surface); box-shadow:0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border), var(--_kjun-floating-navigation-elevation);
|
|
5782
6246
|
}
|
|
5783
6247
|
.kjun-floating-navigation > a {
|
|
5784
6248
|
position:relative; display:flex; flex:none; align-items:center; justify-content:center; box-sizing:border-box;
|
|
@@ -5817,59 +6281,229 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5817
6281
|
.kjun-bottom-action-content > .kjun-navigation-actions { flex:0 1 auto; }
|
|
5818
6282
|
}
|
|
5819
6283
|
|
|
5820
|
-
.kjun-list-heading p { margin-top:var(--_kjun-extension-list-description-gap); }
|
|
5821
|
-
.kjun-list-description { margin-top:var(--_kjun-extension-list-description-gap); }
|
|
5822
6284
|
|
|
5823
|
-
|
|
6285
|
+
/* KjunFab: an action pinned to the viewport's bottom end, above page content and clear of the safe area and of docked
|
|
6286
|
+
bottom bars (their height arrives as --_kjun-bottom-bar on the provider scope; a bar with its own safe area already covers it). */
|
|
6287
|
+
.kjun-fab{--_kjun-fab-size:var(--_kjun-extension-fab-size);--_kjun-fab-safe:var(--_kjun-safe-area-bottom);--_kjun-fab-bar:var(--_kjun-bottom-bar,0px);position:fixed;inset-inline-end:var(--_kjun-extension-fab-inset);bottom:calc(var(--_kjun-extension-fab-inset) + var(--_kjun-fab-offset,0px) + max(var(--_kjun-fab-bar),var(--_kjun-fab-safe)));z-index:var(--_kjun-layer-page-navigation);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--_kjun-fab-size);max-width:calc(100% - 2 * var(--_kjun-extension-fab-inset));height:var(--_kjun-fab-size);padding:0;border:0;border-radius:var(--_kjun-geometry-radius-radius9999);background:var(--_kjun-color-brand);color:var(--_kjun-color-on-brand);box-shadow:var(--_kjun-fab-elevation);cursor:pointer;transition:background-color var(--_kjun-motion-control) var(--_kjun-ease-out),transform var(--_kjun-motion-control) var(--_kjun-ease-out)}
|
|
6288
|
+
.kjun-fab[data-size="sm"]{--_kjun-fab-size:var(--_kjun-extension-fab-small-size)}
|
|
6289
|
+
.kjun-fab[data-safe-area="false"]{--_kjun-fab-safe:0px}.kjun-fab[data-bottom-bar="false"]{--_kjun-fab-bar:0px}
|
|
6290
|
+
.kjun-fab > .kjun-icon{flex-shrink:0}
|
|
6291
|
+
/* With a label the circle becomes a capsule of the same height; the icon side takes the tighter inset. */
|
|
6292
|
+
.kjun-fab[data-label]{gap:var(--_kjun-extension-fab-label-gaps-md);padding-inline:var(--_kjun-extension-fab-padding-start-md) var(--_kjun-extension-fab-padding-end-md);font-size:var(--_kjun-type-control-large-size);line-height:var(--_kjun-type-control-large-line);font-weight:var(--_kjun-type-control-large-weight);letter-spacing:var(--_kjun-type-control-large-tracking)}
|
|
6293
|
+
.kjun-fab[data-label][data-size="sm"]{gap:var(--_kjun-extension-fab-label-gaps-sm);padding-inline:var(--_kjun-extension-fab-padding-start-sm) var(--_kjun-extension-fab-padding-end-sm);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)}
|
|
6294
|
+
.kjun-fab-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6295
|
+
/* A touch leaves no hover behind; loading keeps the resting colour and only stops the press. */
|
|
6296
|
+
@media (hover:hover){.kjun-fab:hover:not(:disabled,[aria-busy="true"]){background:var(--_kjun-color-brand-hover)}}
|
|
6297
|
+
.kjun-fab:active:not(:disabled,[aria-busy="true"]){background:var(--_kjun-color-brand-active);transform:scale(0.94)}
|
|
6298
|
+
.kjun-fab:focus-visible{outline:var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);outline-offset:var(--_kjun-state-focus-offset)}
|
|
6299
|
+
/* Disabled stays opaque: a floating button must not let the content under it show through. */
|
|
6300
|
+
.kjun-fab:disabled{background:color-mix(in srgb,var(--_kjun-color-brand) calc(var(--_kjun-state-opacity-disabled) * 100%),var(--_kjun-color-surface));cursor:not-allowed}
|
|
6301
|
+
.kjun-fab[aria-busy="true"]{cursor:default}
|
|
6302
|
+
@media (prefers-reduced-motion:reduce){.kjun-fab{transition:none}.kjun-fab:active:not(:disabled,[aria-busy="true"]){transform:none}}
|
|
6303
|
+
|
|
6304
|
+
/* Navigation bars and the bottom action bar can drop their own surface. */
|
|
6305
|
+
.kjun-top-navigation[data-surface="false"],.kjun-bottom-navigation[data-surface="false"],.kjun-bottom-action-bar[data-surface="false"]{background:transparent}
|
|
6306
|
+
|
|
6307
|
+
/* KjunListSection, KjunListRow, KjunListItem and KjunListGroup. */
|
|
6308
|
+
.kjun-list-section{min-width:0;max-width:100%;color:var(--_kjun-color-text);background:var(--_kjun-color-surface)}
|
|
6309
|
+
.kjun-list-section[data-surface="false"]{background:transparent}
|
|
6310
|
+
|
|
6311
|
+
/* Heading: the title takes the remaining width; actions sit at the end, centered on the title's first line. */
|
|
6312
|
+
.kjun-list-heading{
|
|
6313
|
+
--_kjun-list-title-line:var(--_kjun-type-card-title-line);
|
|
6314
|
+
--_kjun-list-action-height:var(--_kjun-list-title-line);
|
|
6315
|
+
/* How far an action taller than the title line reaches above and below it. */
|
|
6316
|
+
--_kjun-list-action-overflow:max(0px, (var(--_kjun-list-action-height) - var(--_kjun-list-title-line)) / 2);
|
|
6317
|
+
display:flex;align-items:flex-start;justify-content:space-between;gap:var(--_kjun-extension-list-gap);padding:var(--_kjun-extension-list-padding);
|
|
6318
|
+
}
|
|
6319
|
+
.kjun-list-heading > div:first-child{flex:1;min-width:0;word-break:keep-all;overflow-wrap:anywhere}
|
|
6320
|
+
.kjun-list-heading :is(h2,h3,h4){margin:0;font-size:var(--_kjun-type-card-title-size);line-height:var(--_kjun-type-card-title-line);font-weight:var(--_kjun-type-card-title-weight);letter-spacing:var(--_kjun-type-card-title-tracking)}
|
|
6321
|
+
.kjun-list-heading p{margin:var(--_kjun-extension-list-description-gap) 0 0;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);color:var(--_kjun-color-text-secondary)}
|
|
6322
|
+
/* A heading keeps the card's 16px inset above and beside it but only 8px under it, so it reads with its rows (the first
|
|
6323
|
+
title then sits 24px under it, against 32px between rows). */
|
|
6324
|
+
.kjun-list-heading{padding-bottom:var(--_kjun-extension-list-heading-padding-bottom)}
|
|
5824
6325
|
/* A title without a description labels the rows below as a small group header instead of floating above them. */
|
|
5825
|
-
.kjun-list-heading[data-bare]
|
|
5826
|
-
.kjun-list-heading[data-bare] :is(h2,h3,h4)
|
|
6326
|
+
.kjun-list-heading[data-bare]{--_kjun-list-title-line:var(--_kjun-type-control-small-line);padding-bottom:var(--_kjun-extension-list-bare-heading-padding-bottom)}
|
|
6327
|
+
.kjun-list-heading[data-bare] :is(h2,h3,h4){font-size:var(--_kjun-type-control-small-size);line-height:var(--_kjun-type-control-small-line);font-weight:var(--_kjun-type-control-small-weight);letter-spacing:var(--_kjun-type-control-small-tracking);color:var(--_kjun-color-text-secondary)}
|
|
6328
|
+
/* Heading buttons, smallest to largest so the tallest one sets the height before the page measures the actions (it
|
|
6329
|
+
then sets the height inline for any control). */
|
|
6330
|
+
.kjun-list-heading:has(> .kjun-list-heading-actions .kjun-button[data-size="xs"]){--_kjun-list-action-height:var(--_kjun-geometry-button-heights-xs)}
|
|
6331
|
+
.kjun-list-heading:has(> .kjun-list-heading-actions .kjun-button[data-size="sm"]){--_kjun-list-action-height:var(--_kjun-geometry-button-heights-sm)}
|
|
6332
|
+
.kjun-list-heading:has(> .kjun-list-heading-actions .kjun-button[data-size="md"]){--_kjun-list-action-height:var(--_kjun-geometry-button-heights-md)}
|
|
6333
|
+
.kjun-list-heading:has(> .kjun-list-heading-actions .kjun-button[data-size="lg"]){--_kjun-list-action-height:var(--_kjun-geometry-button-heights-lg)}
|
|
6334
|
+
.kjun-list-heading:has(> .kjun-list-heading-actions .kjun-button[data-size="xl"]){--_kjun-list-action-height:var(--_kjun-geometry-button-heights-xl)}
|
|
6335
|
+
/* The actions box keeps its own height in the flow, so no control in it can cover the rows; raised by what a taller
|
|
6336
|
+
action reaches above the title line, it centers on that line and grows the heading only by what reaches below. */
|
|
6337
|
+
.kjun-list-heading-actions{display:flex;align-items:center;gap:var(--_kjun-extension-list-actions-gap);flex:none;min-height:var(--_kjun-list-title-line);margin-top:calc(-1 * var(--_kjun-list-action-overflow))}
|
|
6338
|
+
/* A ghost button's label (or an icon-only button's glyph) ends on the rows' end line rather than inside its own padding. */
|
|
6339
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="xs"]{margin-inline-end:calc(-1 * var(--_kjun-geometry-button-padding-x-xs))}
|
|
6340
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="sm"]{margin-inline-end:calc(-1 * var(--_kjun-geometry-button-padding-x-sm))}
|
|
6341
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="md"]{margin-inline-end:calc(-1 * var(--_kjun-geometry-button-padding-x-md))}
|
|
6342
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="lg"]{margin-inline-end:calc(-1 * var(--_kjun-geometry-button-padding-x-lg))}
|
|
6343
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="xl"]{margin-inline-end:calc(-1 * var(--_kjun-geometry-button-padding-x-xl))}
|
|
6344
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="xs"]:has(> .kjun-button-label:empty){margin-inline-end:calc((var(--_kjun-geometry-button-icon-sizes-xs) - var(--_kjun-geometry-button-heights-xs)) / 2)}
|
|
6345
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="sm"]:has(> .kjun-button-label:empty){margin-inline-end:calc((var(--_kjun-geometry-button-icon-sizes-sm) - var(--_kjun-geometry-button-heights-sm)) / 2)}
|
|
6346
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="md"]:has(> .kjun-button-label:empty){margin-inline-end:calc((var(--_kjun-geometry-button-icon-sizes-md) - var(--_kjun-geometry-button-heights-md)) / 2)}
|
|
6347
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="lg"]:has(> .kjun-button-label:empty){margin-inline-end:calc((var(--_kjun-geometry-button-icon-sizes-lg) - var(--_kjun-geometry-button-heights-lg)) / 2)}
|
|
6348
|
+
.kjun-list-heading-actions > .kjun-button[data-variant="ghost"]:last-child[data-size="xl"]:has(> .kjun-button-label:empty){margin-inline-end:calc((var(--_kjun-geometry-button-icon-sizes-xl) - var(--_kjun-geometry-button-heights-xl)) / 2)}
|
|
5827
6349
|
|
|
5828
|
-
/*
|
|
5829
|
-
.kjun-
|
|
5830
|
-
.
|
|
5831
|
-
.kjun-
|
|
5832
|
-
.kjun-
|
|
6350
|
+
/* A rounded section is a card of rows only: its heading and footer stay on the page, above and below the card. */
|
|
6351
|
+
.kjun-list-section[data-outside]{background:transparent;overflow:visible}
|
|
6352
|
+
/* Outside a card the title starts at the top, lowered only by what a tall button reaches above its line. */
|
|
6353
|
+
.kjun-list-section[data-outside] > .kjun-list-heading{padding-top:var(--_kjun-list-action-overflow);padding-bottom:var(--_kjun-extension-list-outside-label-gap)}
|
|
6354
|
+
.kjun-list-panel{background:var(--_kjun-color-surface);overflow:hidden;overflow:clip}
|
|
6355
|
+
.kjun-list-panel[data-surface="false"]{background:transparent}
|
|
6356
|
+
/* The first and last rows follow the card's corners, for their pressed background and focus ring. */
|
|
6357
|
+
.kjun-list-panel > .kjun-list,.kjun-list-panel > .kjun-list > .kjun-list-row{border-radius:inherit}
|
|
6358
|
+
.kjun-list-panel > .kjun-list > .kjun-list-row:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}
|
|
6359
|
+
.kjun-list-panel > .kjun-list > .kjun-list-row:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0}
|
|
6360
|
+
.kjun-list-panel > .kjun-list > .kjun-list-row > .kjun-list-main:focus-visible{border-radius:inherit}
|
|
5833
6361
|
|
|
5834
|
-
/*
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
.kjun-list-
|
|
5838
|
-
.kjun-list-
|
|
6362
|
+
/* Rows. A row's metrics live in variables, so density and the open variant change them in one place: the title line,
|
|
6363
|
+
the band a description row aligns its ends to (title, gap and the first description line), the vertical padding and
|
|
6364
|
+
the minimum height. */
|
|
6365
|
+
.kjun-list{list-style:none;padding:0;margin:0}
|
|
6366
|
+
.kjun-list-row{
|
|
6367
|
+
--_kjun-list-leading-width:var(--_kjun-extension-list-leading-width);--_kjun-list-leading-height:0px;
|
|
6368
|
+
/* Reset on every row, so a list nested in a row never inherits its parent list's shared column. */
|
|
6369
|
+
--_kjun-list-shared-column:0px;
|
|
6370
|
+
--_kjun-list-title-line:var(--_kjun-type-label-line);
|
|
6371
|
+
--_kjun-list-band:calc(var(--_kjun-list-title-line) + var(--_kjun-extension-list-description-gap) + var(--_kjun-type-caption-line));
|
|
6372
|
+
--_kjun-list-padding-y:var(--_kjun-extension-list-padding);--_kjun-list-padding-x:var(--_kjun-extension-list-padding);
|
|
6373
|
+
--_kjun-list-actions-padding:var(--_kjun-extension-list-actions-padding);
|
|
6374
|
+
--_kjun-list-minimum-height:var(--_kjun-extension-list-minimum-height);--_kjun-list-gap:var(--_kjun-extension-list-gap);
|
|
6375
|
+
/* The least a leading square or a switch keeps to the row's top and bottom edge when it reaches into the padding. */
|
|
6376
|
+
--_kjun-list-bleed-limit:calc(var(--_kjun-extension-list-minimum-inset) - var(--_kjun-list-padding-y));
|
|
6377
|
+
display:flex;align-items:center;gap:var(--_kjun-list-gap);position:relative;min-width:0;
|
|
6378
|
+
transition:background-color var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
6379
|
+
}
|
|
6380
|
+
.kjun-list[data-density=compact]>.kjun-list-row{--_kjun-list-padding-y:var(--_kjun-extension-list-compact-padding-y);--_kjun-list-minimum-height:var(--_kjun-extension-list-compact-minimum-height)}
|
|
6381
|
+
.kjun-list-row[data-leading=icon]{--_kjun-list-leading-width:var(--_kjun-geometry-dimension-value24)}
|
|
6382
|
+
/* Rows that lead with something share their list's widest leading column (Native's listSharedColumn): beside an avatar
|
|
6383
|
+
or a sized square, a plain icon centers in the 40px column (56px beside lg), so titles and dividers start on one line.
|
|
6384
|
+
A list of plain icons keeps their 24px column. */
|
|
6385
|
+
.kjun-list:has(> .kjun-list-row:is([data-leading=""],[data-leading-size])) > .kjun-list-row[data-leading]{--_kjun-list-shared-column:var(--_kjun-extension-list-leading-width)}
|
|
6386
|
+
.kjun-list:has(> .kjun-list-row[data-leading-size=lg]) > .kjun-list-row[data-leading]{--_kjun-list-shared-column:var(--_kjun-extension-list-leading-sizes-lg)}
|
|
6387
|
+
.kjun-list-row[data-leading]{--_kjun-list-column:max(var(--_kjun-list-leading-width),var(--_kjun-list-shared-column,0px))}
|
|
6388
|
+
/* Dividers start where the text does, after the icon or custom leading column. */
|
|
6389
|
+
.kjun-list-row[data-leading]{--_kjun-list-divider-inset:calc(var(--_kjun-list-padding-x) + var(--_kjun-list-column) + var(--_kjun-list-gap))}
|
|
6390
|
+
.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}
|
|
6391
|
+
.kjun-list[data-divider=false]>:is(.kjun-list-row,.kjun-list-item)::after{content:none}
|
|
6392
|
+
.kjun-list-main{display:flex;align-items:center;gap:var(--_kjun-list-gap);flex:1;min-width:0;min-height:var(--_kjun-list-minimum-height);padding:var(--_kjun-list-padding-y) var(--_kjun-list-padding-x);text-align:start;color:inherit;text-decoration:none;background:transparent;border:0;font:inherit;-webkit-tap-highlight-color:transparent}
|
|
6393
|
+
/* The whole row (its actions too) takes the hover and pressed fill, so a row with buttons never reads as two parts.
|
|
6394
|
+
Hover only where a pointer hovers, so a tapped row on a touch screen does not keep the fill; a busy row, which
|
|
6395
|
+
ignores presses, takes neither. */
|
|
6396
|
+
@media (hover: hover){.kjun-list-row:has(> .kjun-list-main:is(button,a):not(:disabled,[aria-disabled=true],[aria-busy=true]):hover){background:var(--_kjun-color-hover)}}
|
|
6397
|
+
.kjun-list-row:has(> .kjun-list-main:is(button,a):not(:disabled,[aria-disabled=true],[aria-busy=true]):active){background:var(--_kjun-color-active)}
|
|
6398
|
+
@media (prefers-reduced-motion: reduce){.kjun-list-row{transition:none}}
|
|
6399
|
+
/* Rows run edge to edge, so the keyboard ring draws inside them: never cut by a card, the screen edge or the next row. */
|
|
6400
|
+
.kjun-scope .kjun-list-main:focus-visible{outline:var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);outline-offset:var(--_kjun-state-focus-inset-offset)}
|
|
6401
|
+
.kjun-scope :is(.kjun-list-main[aria-disabled=true],.kjun-list-main:disabled){opacity:var(--_kjun-state-opacity-disabled);cursor:default}
|
|
6402
|
+
/* Pressable rows dim through :disabled; a static row (a switch or text) dims here so nothing in it reads as available. */
|
|
6403
|
+
.kjun-list-row[data-disabled] > div.kjun-list-main{opacity:var(--_kjun-state-opacity-disabled)}
|
|
6404
|
+
.kjun-list-body{flex:1;min-width:0}
|
|
6405
|
+
.kjun-list-content{display:block;margin-top:var(--_kjun-extension-list-description-gap)}
|
|
6406
|
+
/* Korean wraps between words, never inside one. */
|
|
6407
|
+
.kjun-list-title,.kjun-list-description{display:block;word-break:keep-all;overflow-wrap:anywhere}
|
|
6408
|
+
/* A badge follows the title and centers on its first line; a long title wraps before it, never under it. */
|
|
6409
|
+
.kjun-list-title-row{display:flex;align-items:flex-start;gap:var(--_kjun-extension-list-badge-gap);min-width:0}
|
|
6410
|
+
.kjun-list-title-row > .kjun-list-title{min-width:0}
|
|
6411
|
+
.kjun-list-badge{flex:none;display:flex;align-items:center;min-height:var(--_kjun-list-title-line)}
|
|
6412
|
+
/* Row titles sit one weight below section titles, so a long list does not read heavy. */
|
|
6413
|
+
.kjun-list-title{font-size:var(--_kjun-type-label-size);line-height:var(--_kjun-type-label-line);font-weight:var(--_kjun-type-label-weight);letter-spacing:var(--_kjun-type-label-tracking)}
|
|
5839
6414
|
.kjun-list-row[data-destructive] .kjun-list-title{color:var(--_kjun-color-danger)}
|
|
6415
|
+
.kjun-list-description{margin-top:var(--_kjun-extension-list-description-gap);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);color:var(--_kjun-color-text-secondary)}
|
|
6416
|
+
/* titleLines / descriptionLines clamp a row's text to a few lines with an ellipsis. */
|
|
6417
|
+
.kjun-list-title[data-clamp],.kjun-list-description[data-clamp]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
|
|
6418
|
+
/* Icons use 24px; custom leading content, including avatars and images, keeps a 40px minimum. */
|
|
6419
|
+
.kjun-list-leading{flex-shrink:0;display:flex;align-items:center;justify-content:center;min-width:var(--_kjun-list-column,var(--_kjun-list-leading-width));min-height:var(--_kjun-list-leading-height,0px)}
|
|
6420
|
+
.kjun-list-row[data-leading-size] > .kjun-list-main > .kjun-list-leading{width:var(--_kjun-list-column)}
|
|
6421
|
+
/* A one-line row stays at its minimum height: its leading content (an icon, a square or an app's avatar), switch or mark
|
|
6422
|
+
reaches into the vertical padding instead of growing the row, and anything taller still keeps the minimum inset to
|
|
6423
|
+
the row's edge. One margin works for every size, so custom leading content needs no leadingSize. */
|
|
6424
|
+
.kjun-list-main:not(:has(.kjun-list-description)) > :is(.kjun-list-leading,.kjun-switch,.kjun-list-mark){margin-block:var(--_kjun-list-bleed-limit)}
|
|
6425
|
+
/* With a description, both ends of the row center on the band of the title and first description line, so a long row
|
|
6426
|
+
keeps its icon, value, check, switch and chevron beside the title. */
|
|
6427
|
+
.kjun-list-main:has(.kjun-list-description) > .kjun-list-leading{align-self:flex-start;min-height:max(var(--_kjun-list-leading-height,0px),var(--_kjun-list-band))}
|
|
6428
|
+
.kjun-list-main:has(.kjun-list-description) > :is(.kjun-list-trailing,.kjun-list-check,.kjun-list-chevron,.kjun-list-busy,.kjun-list-mark,.kjun-switch){align-self:flex-start}
|
|
6429
|
+
.kjun-list-main:has(.kjun-list-description) > .kjun-list-trailing{display:flex;align-items:center;justify-content:flex-end;min-height:var(--_kjun-list-band)}
|
|
6430
|
+
.kjun-list-main:has(.kjun-list-description) > :is(.kjun-list-check,.kjun-list-chevron,.kjun-list-busy){margin-top:calc((var(--_kjun-list-band) - var(--_kjun-extension-list-end-icon-size)) / 2)}
|
|
6431
|
+
.kjun-list-main:has(.kjun-list-description) > .kjun-list-mark{margin-top:calc((var(--_kjun-list-band) - var(--_kjun-extension-list-mark-size)) / 2)}
|
|
6432
|
+
.kjun-list-main:has(.kjun-list-description) > .kjun-switch{margin-top:calc((var(--_kjun-list-band) - var(--_kjun-extension-switch-heights-md)) / 2)}
|
|
6433
|
+
.kjun-list-icon-background{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--_kjun-list-tile-size,var(--_kjun-list-leading-width));height:var(--_kjun-list-tile-size,var(--_kjun-list-leading-width));border-radius:var(--_kjun-extension-list-icon-background-radius)}
|
|
6434
|
+
.kjun-list-icon{color:var(--_kjun-color-text-secondary)}
|
|
6435
|
+
.kjun-list-row[data-destructive] .kjun-list-icon{color:var(--_kjun-color-danger)}
|
|
6436
|
+
/* A value at the row's end reads one step below the title and keeps the row's end line when it wraps. */
|
|
6437
|
+
.kjun-list-trailing{max-width:35%;overflow-wrap:anywhere;text-align:end;color:var(--_kjun-color-text-secondary)}
|
|
6438
|
+
.kjun-list-check{flex-shrink:0;color:var(--_kjun-color-brand)}
|
|
5840
6439
|
.kjun-list-chevron{flex-shrink:0;color:var(--_kjun-color-text-tertiary)}
|
|
5841
|
-
/* A
|
|
5842
|
-
.kjun-list-
|
|
5843
|
-
|
|
5844
|
-
.kjun-list-
|
|
5845
|
-
/* With a description
|
|
5846
|
-
|
|
5847
|
-
.kjun-list-row
|
|
5848
|
-
/*
|
|
5849
|
-
.kjun-list-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
.kjun-list-
|
|
5854
|
-
.kjun-list-
|
|
5855
|
-
.kjun-list-
|
|
5856
|
-
/* A
|
|
5857
|
-
.kjun-list-
|
|
5858
|
-
.kjun-list-section[data-outside] > .kjun-list-heading { padding-top:0; padding-bottom:var(--_kjun-extension-list-outside-label-gap); }
|
|
5859
|
-
.kjun-list-panel { background:var(--_kjun-color-surface); overflow:hidden; overflow:clip; }
|
|
5860
|
-
.kjun-list-panel[data-surface="false"] { background:transparent; }
|
|
5861
|
-
.kjun-list-section > .kjun-list-panel .kjun-list-main:focus-visible { outline-offset:var(--_kjun-state-focus-inset-offset); }
|
|
5862
|
-
.kjun-list-empty { padding:var(--_kjun-extension-list-padding); }
|
|
5863
|
-
.kjun-list-footer { padding:var(--_kjun-extension-list-footer-gap) var(--_kjun-extension-list-padding) var(--_kjun-extension-list-padding); font-size:var(--_kjun-type-caption-size); line-height:var(--_kjun-type-caption-line); color:var(--_kjun-color-text-tertiary); overflow-wrap:anywhere; word-break:keep-all; }
|
|
5864
|
-
.kjun-list-section[data-outside] > .kjun-list-footer { padding-bottom:0; }
|
|
5865
|
-
/* KjunListGroup sets the spacing between its sections: rounded cards apart, or flush sections close together. */
|
|
5866
|
-
.kjun-list-group { display:flex; flex-direction:column; gap:var(--_kjun-extension-list-group-gap); min-width:0; }
|
|
5867
|
-
.kjun-list-group[data-variant="flush"] { gap:var(--_kjun-extension-list-flush-group-gap); }
|
|
6440
|
+
/* A busy row (not a switch) spins in place of its mark, check or chevron. */
|
|
6441
|
+
.kjun-list-busy{flex-shrink:0;color:var(--_kjun-color-text-tertiary)}
|
|
6442
|
+
.kjun-list-main > .kjun-switch{flex-shrink:0}
|
|
6443
|
+
.kjun-list-actions{display:flex;flex-wrap:wrap;gap:var(--_kjun-extension-list-actions-gap);padding-inline-end:var(--_kjun-list-actions-padding);max-width:45%}
|
|
6444
|
+
/* With a description, actions center on the band of the title and first description line like the row's other ends,
|
|
6445
|
+
so a long row keeps its button beside the title rather than at its middle. */
|
|
6446
|
+
.kjun-list-row:has(> .kjun-list-main .kjun-list-description) > .kjun-list-actions{align-self:flex-start;align-items:center;min-height:var(--_kjun-list-band);margin-top:var(--_kjun-list-padding-y)}
|
|
6447
|
+
/* Move buttons of a reorderable section sit after the row's own actions and never wrap apart. */
|
|
6448
|
+
.kjun-list-reorder{display:inline-flex;align-items:center;flex:0 0 auto;gap:var(--_kjun-extension-list-actions-gap)}
|
|
6449
|
+
/* The handle drags, so a touch on it never scrolls; the held row stays in the flow with the pressed fill (a step past
|
|
6450
|
+
hover, so it reads apart from a row the pointer is merely over) and no divider on either side. */
|
|
6451
|
+
.kjun-list-reorder>[data-reorder=handle]{cursor:grab;touch-action:none}
|
|
6452
|
+
.kjun-list-row[data-reordering]{background-color:var(--_kjun-color-active)}
|
|
6453
|
+
.kjun-list>.kjun-list-row[data-reordering]::after,.kjun-list>:has(+ .kjun-list-row[data-reordering])::after{content:none}
|
|
6454
|
+
.kjun-list-row[data-reordering] .kjun-list-reorder>[data-reorder=handle]{cursor:grabbing}
|
|
6455
|
+
/* A disabled row disables its actions too, so the row never reads as partly available. */
|
|
6456
|
+
.kjun-list-actions[data-disabled]{opacity:var(--_kjun-state-opacity-disabled)}
|
|
5868
6457
|
.kjun-list-item{padding:var(--_kjun-extension-list-padding);position:relative;min-width:0}
|
|
6458
|
+
/* A busy row (its last press still being handled) ignores presses; a switch row draws a spinner in its thumb. */
|
|
6459
|
+
.kjun-list-main[aria-busy=true]{cursor:progress}
|
|
5869
6460
|
.kjun-list[data-density=compact]>.kjun-list-item{padding-block:var(--_kjun-extension-list-compact-padding-y)}
|
|
5870
6461
|
|
|
5871
|
-
/*
|
|
5872
|
-
.
|
|
6462
|
+
/* Open variant: rows sit on the page with no card or dividers, set apart by space; hover, press and the chosen row fill
|
|
6463
|
+
a rounded shape inset from the edges. Titles are larger, icons sit on a rounded square, and choices draw a mark. */
|
|
6464
|
+
.kjun-list[data-variant=open]>:is(.kjun-list-row,.kjun-list-item){margin-inline:var(--_kjun-extension-list-open-row-inset);border-radius:var(--_kjun-extension-list-open-row-radius)}
|
|
6465
|
+
.kjun-list[data-variant=open]>:is(.kjun-list-row,.kjun-list-item)::after{content:none}
|
|
6466
|
+
.kjun-list[data-variant=open]>.kjun-list-item{padding-inline:var(--_kjun-extension-list-open-padding-x)}
|
|
6467
|
+
.kjun-list[data-variant=open]>.kjun-list-row{
|
|
6468
|
+
--_kjun-list-title-line:var(--_kjun-type-input-line);
|
|
6469
|
+
--_kjun-list-band:calc(var(--_kjun-list-title-line) + var(--_kjun-extension-list-description-gap) + var(--_kjun-type-body-line));
|
|
6470
|
+
--_kjun-list-padding-y:var(--_kjun-extension-list-open-padding-y);--_kjun-list-padding-x:var(--_kjun-extension-list-open-padding-x);
|
|
6471
|
+
--_kjun-list-actions-padding:var(--_kjun-extension-list-open-padding-x);
|
|
6472
|
+
--_kjun-list-minimum-height:var(--_kjun-extension-list-open-minimum-height);--_kjun-list-gap:var(--_kjun-extension-list-open-gap);
|
|
6473
|
+
}
|
|
6474
|
+
.kjun-list[data-variant=open][data-density=compact]>.kjun-list-row{--_kjun-list-padding-y:var(--_kjun-extension-list-open-compact-padding-y);--_kjun-list-minimum-height:var(--_kjun-extension-list-open-compact-minimum-height)}
|
|
6475
|
+
.kjun-list[data-variant=open] .kjun-list-main{border-radius:inherit}
|
|
6476
|
+
.kjun-list[data-variant=open] .kjun-list-title{font-size:var(--_kjun-type-input-size);line-height:var(--_kjun-type-input-line);font-weight:var(--_kjun-type-label-weight);letter-spacing:var(--_kjun-type-input-tracking)}
|
|
6477
|
+
.kjun-list[data-variant=open] .kjun-list-description{font-size:var(--_kjun-type-body-size);line-height:var(--_kjun-type-body-line);font-weight:var(--_kjun-type-body-weight);letter-spacing:var(--_kjun-type-body-tracking)}
|
|
6478
|
+
.kjun-list[data-variant=open] .kjun-list-trailing{font-size:var(--_kjun-type-label-size);line-height:var(--_kjun-type-label-line);font-weight:var(--_kjun-type-label-weight);letter-spacing:var(--_kjun-type-label-tracking)}
|
|
6479
|
+
.kjun-list[data-variant=open] .kjun-list-icon-background{border-radius:var(--_kjun-extension-list-open-leading-radius);background-color:var(--_kjun-color-secondary)}
|
|
6480
|
+
.kjun-list[data-variant=open] .kjun-list-icon{color:var(--_kjun-color-text)}
|
|
6481
|
+
.kjun-list[data-variant=open]>.kjun-list-row[data-destructive] .kjun-list-icon-background{background-color:var(--_kjun-color-danger-bg)}
|
|
6482
|
+
.kjun-list[data-variant=open]>.kjun-list-row[data-destructive] .kjun-list-icon{color:var(--_kjun-color-danger)}
|
|
6483
|
+
/* No specificity, so the row's hover and pressed fill still win over the chosen row's. */
|
|
6484
|
+
:where(.kjun-list[data-variant=open]>.kjun-list-row:has(> .kjun-list-main:is([role=radio],[role=checkbox])[aria-checked=true])){background:var(--_kjun-color-selected-bg)}
|
|
6485
|
+
/* A choice's mark, in an open section or a multiple-choice list: an empty ring (a rounded square for multiple choice),
|
|
6486
|
+
filled with a check when chosen. */
|
|
6487
|
+
.kjun-list-mark{flex:none;display:flex;align-items:center;justify-content:center;width:var(--_kjun-extension-list-mark-size);height:var(--_kjun-extension-list-mark-size);border-radius:50%;box-shadow:inset 0 0 0 var(--_kjun-border-control-width) var(--_kjun-color-border-strong);color:var(--_kjun-color-on-brand)}
|
|
6488
|
+
.kjun-list-mark[data-kind=checkbox]{border-radius:var(--_kjun-extension-list-checkbox-radius)}
|
|
6489
|
+
.kjun-list-mark[data-checked]{background:var(--_kjun-color-brand);box-shadow:none}
|
|
6490
|
+
.kjun-list-group[data-variant=open]{gap:var(--_kjun-extension-list-open-group-gap)}
|
|
6491
|
+
|
|
6492
|
+
/* In place of rows: loading content (a row skeleton, which brings its own row inset) or the empty note. */
|
|
6493
|
+
.kjun-list-loading{min-width:0}
|
|
6494
|
+
/* The empty note stays lighter than the labels and rows around it: one row tall, in the secondary body type. */
|
|
6495
|
+
.kjun-list-empty{display:flex;flex-direction:column;justify-content:center;min-height:var(--_kjun-extension-list-minimum-height);padding-inline:var(--_kjun-extension-list-padding)}
|
|
6496
|
+
.kjun-list-empty[data-density=compact]{min-height:var(--_kjun-extension-list-compact-minimum-height)}
|
|
6497
|
+
.kjun-list-empty .kjun-empty{padding-block:var(--_kjun-extension-list-compact-padding-y)}
|
|
6498
|
+
.kjun-list-empty[data-density=compact] .kjun-empty{padding-block:0}
|
|
6499
|
+
.kjun-list-empty .kjun-empty-title{font-size:var(--_kjun-type-body-size);line-height:var(--_kjun-type-body-line);font-weight:var(--_kjun-type-body-weight);letter-spacing:var(--_kjun-type-body-tracking);color:var(--_kjun-color-text-secondary)}
|
|
6500
|
+
|
|
6501
|
+
.kjun-list-footer{padding:var(--_kjun-extension-list-footer-gap) var(--_kjun-extension-list-padding) var(--_kjun-extension-list-padding);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);color:var(--_kjun-color-text-tertiary);word-break:keep-all;overflow-wrap:anywhere}
|
|
6502
|
+
.kjun-list-section[data-outside] > .kjun-list-footer{padding-bottom:0}
|
|
6503
|
+
|
|
6504
|
+
/* KjunListGroup sets the spacing between its sections: rounded cards apart, or flush sections close together. */
|
|
6505
|
+
.kjun-list-group{display:flex;flex-direction:column;gap:var(--_kjun-extension-list-group-gap);min-width:0}
|
|
6506
|
+
.kjun-list-group[data-variant="flush"]{gap:var(--_kjun-extension-list-flush-group-gap)}
|
|
5873
6507
|
|
|
5874
6508
|
/* Compound fields share input geometry; buttons retain their own size contract. */
|
|
5875
6509
|
.kjun-quantity,.kjun-time-picker {
|
|
@@ -5965,16 +6599,20 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
5965
6599
|
.kjun-tabs-track .kjun-tabs-list { overflow: visible; width: max-content; }
|
|
5966
6600
|
.kjun-vue-tabs .kjun-tabs-scroller { position: relative; }
|
|
5967
6601
|
.kjun-motion-label { display: inline-grid; }
|
|
5968
|
-
.kjun-motion-label::after { content: attr(data-label);
|
|
6602
|
+
.kjun-motion-label::before, .kjun-motion-label::after { content: attr(data-label); letter-spacing: var(--_kjun-type-control-tracking); visibility: hidden; grid-area: 1 / 1; }
|
|
6603
|
+
.kjun-motion-label::before { font-weight: var(--_kjun-type-label-weight); }
|
|
6604
|
+
.kjun-motion-label::after { font-weight: var(--_kjun-type-control-weight); }
|
|
5969
6605
|
.kjun-motion-label > span { grid-area: 1 / 1; }
|
|
5970
6606
|
.kjun-tab-indicator { position: absolute; left: 0; pointer-events: none; border-radius: var(--_kjun-extension-tabs-radius); background: var(--_kjun-color-active); }
|
|
5971
6607
|
.kjun-tab-indicator[hidden] { display: none; }
|
|
5972
6608
|
.kjun-tab-indicator[data-animate="true"] { transition: transform var(--_kjun-motion-indicator) var(--_kjun-ease-out), width var(--_kjun-motion-indicator) var(--_kjun-ease-out); }
|
|
5973
6609
|
[data-variant="underline"] .kjun-tab-indicator { background: var(--_kjun-color-brand); border-radius: calc(var(--_kjun-extension-tabs-indicator-height) / 2); }
|
|
6610
|
+
/* A disabled selected tab paints its underline in the disabled-ink role, like its label. */
|
|
6611
|
+
[data-variant="underline"] :has(> .kjun-tab[aria-selected="true"]:is([aria-disabled="true"], :disabled)) ~ .kjun-tab-indicator { background: var(--_kjun-color-text-disabled); }
|
|
5974
6612
|
.kjun-tabs-track .kjun-tab, .kjun-vue-tabs .kjun-tab { z-index: 1; background: transparent !important; }
|
|
5975
6613
|
.kjun-tabs-track .kjun-tab::after, .kjun-vue-tabs .kjun-tab::after { display: none; }
|
|
5976
6614
|
.kjun-tabs[data-variant="pills"] .kjun-tab { transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out), color var(--_kjun-motion-control) var(--_kjun-ease-out); }
|
|
5977
|
-
.kjun-bottom-navigation
|
|
6615
|
+
.kjun-bottom-navigation > a::before, .kjun-floating-navigation > a { transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out); }
|
|
5978
6616
|
.kjun-accordion-trigger svg { transition: transform var(--_kjun-motion-collapse) var(--_kjun-ease-out); }
|
|
5979
6617
|
.kjun-motion-collapse { overflow: hidden; }
|
|
5980
6618
|
.kjun-scope[data-motion] { animation: none; }
|
|
@@ -6003,7 +6641,7 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
6003
6641
|
@keyframes kjun-tooltip-out { from { opacity: 1; } to { opacity: 0; } }
|
|
6004
6642
|
@media (prefers-reduced-motion: reduce) {
|
|
6005
6643
|
.kjun-tab-indicator[data-animate="true"], .kjun-tabs[data-variant="pills"] .kjun-tab, .kjun-accordion-trigger svg,
|
|
6006
|
-
.kjun-bottom-navigation
|
|
6644
|
+
.kjun-bottom-navigation > a::before, .kjun-floating-navigation > a { transition: none; }
|
|
6007
6645
|
.kjun-scope[data-motion], .kjun-scope[data-motion]::before, .kjun-scope[data-motion] .kjun-modal, .kjun-scope[data-motion] .kjun-drawer { transition: none !important; }
|
|
6008
6646
|
.kjun-tooltip[data-entering], .kjun-tooltip[data-exiting] { animation-duration: 0s; }
|
|
6009
6647
|
}
|
|
@@ -6013,40 +6651,49 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
6013
6651
|
@media (prefers-reduced-motion: reduce) { .kjun-toast-move { transition: none; } }
|
|
6014
6652
|
|
|
6015
6653
|
/* Shared financial typography. Geometry remains in the component styles. */
|
|
6016
|
-
.
|
|
6017
|
-
.kjun-scope .kjun-kpi-hero__label { font-size:var(--_kjun-type-
|
|
6654
|
+
/* The hero's own label is the page label role; secondary labels stay captions, so the two read as two levels. */
|
|
6655
|
+
.kjun-scope .kjun-kpi-hero__label { font-size:var(--_kjun-type-label-size); line-height:var(--_kjun-type-label-line); font-weight:var(--_kjun-type-label-weight); letter-spacing:var(--_kjun-type-label-tracking); }
|
|
6018
6656
|
.kjun-scope .kjun-kpi-hero__sec-label{ 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); }
|
|
6019
6657
|
.kjun-scope .kjun-kpi-hero__sec-desc{ 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); }
|
|
6020
6658
|
.kjun-scope .kjun-kpi-hero__delta-desc{ 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); }
|
|
6021
6659
|
.kjun-scope .kjun-kpi-hero__value{ font-size:var(--_kjun-type-display-lg-size); line-height:var(--_kjun-type-display-lg-line); font-weight:var(--_kjun-type-display-lg-weight); letter-spacing:var(--_kjun-type-display-lg-tracking); }
|
|
6022
|
-
|
|
6023
|
-
.kjun-scope .kjun-kpi-
|
|
6660
|
+
/* Units sit one weight below their number. */
|
|
6661
|
+
.kjun-scope .kjun-kpi-hero__affix{ font-size:var(--_kjun-type-number-lg-size); line-height:var(--_kjun-type-number-lg-line); font-weight:var(--_kjun-type-number-sm-weight); letter-spacing:var(--_kjun-type-number-lg-tracking); }
|
|
6662
|
+
/* Secondary metrics sit one step below the delta line. */
|
|
6663
|
+
.kjun-scope .kjun-kpi-hero__sec-value{ font-size:var(--_kjun-type-number-sm-size); line-height:var(--_kjun-type-number-sm-line); font-weight:var(--_kjun-type-number-sm-weight); letter-spacing:var(--_kjun-type-number-sm-tracking); }
|
|
6024
6664
|
.kjun-scope .kjun-kpi-hero__delta-abs{ font-size:var(--_kjun-type-number-md-size); line-height:var(--_kjun-type-number-md-line); font-weight:var(--_kjun-type-number-md-weight); letter-spacing:var(--_kjun-type-number-md-tracking); }
|
|
6025
|
-
.kjun-scope .kjun-kpi-hero__sec-value .kjun-number-affix{ font-size:var(--_kjun-type-
|
|
6026
|
-
.kjun-scope .kjun-kpi-hero__delta-pct{ font-size:var(--_kjun-type-number-
|
|
6665
|
+
.kjun-scope .kjun-kpi-hero__sec-value .kjun-number-affix{ font-size:var(--_kjun-type-meta-size); line-height:var(--_kjun-type-meta-line); font-weight:var(--_kjun-type-meta-weight); letter-spacing:var(--_kjun-type-meta-tracking); }
|
|
6666
|
+
.kjun-scope .kjun-kpi-hero__delta-pct{ font-size:var(--_kjun-type-number-sm-size); line-height:var(--_kjun-type-number-sm-line); font-weight:var(--_kjun-type-number-md-weight); letter-spacing:var(--_kjun-type-number-sm-tracking); }
|
|
6027
6667
|
.kjun-scope .kjun-kpi-row__label{ 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); }
|
|
6028
6668
|
.kjun-scope .kjun-kpi-row__desc{ 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); }
|
|
6029
6669
|
.kjun-scope .kjun-kpi-row__segment-label{ 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); }
|
|
6030
|
-
.kjun-scope .kjun-kpi-row__badge{ font-size:var(--_kjun-type-
|
|
6670
|
+
.kjun-scope .kjun-kpi-row__badge{ font-size:var(--_kjun-type-meta-size); line-height:var(--_kjun-type-meta-line); font-weight:var(--_kjun-type-meta-weight); letter-spacing:var(--_kjun-type-meta-tracking); }
|
|
6031
6671
|
.kjun-scope .kjun-kpi-row__value{ font-size:var(--_kjun-type-display-sm-size); line-height:var(--_kjun-type-display-sm-line); font-weight:var(--_kjun-type-display-sm-weight); letter-spacing:var(--_kjun-type-display-sm-tracking); }
|
|
6032
6672
|
.kjun-scope .kjun-kpi-row__affix{ font-size:var(--_kjun-type-number-sm-size); line-height:var(--_kjun-type-number-sm-line); font-weight:var(--_kjun-type-number-sm-weight); letter-spacing:var(--_kjun-type-number-sm-tracking); }
|
|
6033
6673
|
@media (width <= 768px) {
|
|
6034
6674
|
.kjun-scope .kjun-kpi-row__value{ font-size:var(--_kjun-type-number-lg-size); line-height:var(--_kjun-type-number-lg-line); font-weight:var(--_kjun-type-number-lg-weight); letter-spacing:var(--_kjun-type-number-lg-tracking); }
|
|
6035
|
-
.kjun-scope .kjun-kpi-row__affix{ font-size:var(--_kjun-type-
|
|
6675
|
+
.kjun-scope .kjun-kpi-row__affix{ font-size:var(--_kjun-type-meta-size); line-height:var(--_kjun-type-meta-line); font-weight:var(--_kjun-type-meta-weight); letter-spacing:var(--_kjun-type-meta-tracking); }
|
|
6036
6676
|
.kjun-scope .kjun-kpi-row--mobile-summary .kjun-kpi-row__value{ font-size:var(--_kjun-type-display-sm-size); line-height:var(--_kjun-type-display-sm-line); font-weight:var(--_kjun-type-display-sm-weight); letter-spacing:var(--_kjun-type-display-sm-tracking); }
|
|
6037
6677
|
.kjun-scope .kjun-kpi-row--mobile-summary .kjun-kpi-row__affix{ font-size:var(--_kjun-type-number-sm-size); line-height:var(--_kjun-type-number-sm-line); font-weight:var(--_kjun-type-number-sm-weight); letter-spacing:var(--_kjun-type-number-sm-tracking); }
|
|
6038
|
-
.kjun-scope .kjun-kpi-row--mobile-summary .kjun-kpi-row__item--secondary .kjun-kpi-row__affix{ font-size:var(--_kjun-type-
|
|
6678
|
+
.kjun-scope .kjun-kpi-row--mobile-summary .kjun-kpi-row__item--secondary .kjun-kpi-row__affix{ font-size:var(--_kjun-type-meta-size); line-height:var(--_kjun-type-meta-line); font-weight:var(--_kjun-type-meta-weight); letter-spacing:var(--_kjun-type-meta-tracking); }
|
|
6039
6679
|
.kjun-scope .kjun-kpi-row--mobile-summary .kjun-kpi-row__item--secondary .kjun-kpi-row__value{ font-size:var(--_kjun-type-number-sm-size); line-height:var(--_kjun-type-number-sm-line); font-weight:var(--_kjun-type-number-sm-weight); letter-spacing:var(--_kjun-type-number-sm-tracking); }
|
|
6040
6680
|
}
|
|
6681
|
+
@media (width <= 400px) {
|
|
6682
|
+
.kjun-scope .kjun-kpi-row--mobile-summary .kjun-kpi-row__item:not(.kjun-kpi-row__item--secondary) .kjun-kpi-row__value:not(.kjun-kpi-row__value--text){ font-size:var(--_kjun-type-number-lg-size); line-height:var(--_kjun-type-number-lg-line); font-weight:var(--_kjun-type-number-lg-weight); letter-spacing:var(--_kjun-type-number-lg-tracking); }
|
|
6683
|
+
}
|
|
6041
6684
|
@media (width <= 640px) {
|
|
6042
6685
|
.kjun-scope .kjun-kpi-hero__value{ font-size:var(--_kjun-type-display-md-size); line-height:var(--_kjun-type-display-md-line); font-weight:var(--_kjun-type-display-md-weight); letter-spacing:var(--_kjun-type-display-md-tracking); }
|
|
6043
|
-
.kjun-scope .kjun-kpi-hero__affix{ font-size:var(--_kjun-type-number-md-size); line-height:var(--_kjun-type-number-md-line); font-weight:var(--_kjun-type-number-
|
|
6686
|
+
.kjun-scope .kjun-kpi-hero__affix{ font-size:var(--_kjun-type-number-md-size); line-height:var(--_kjun-type-number-md-line); font-weight:var(--_kjun-type-number-sm-weight); letter-spacing:var(--_kjun-type-number-md-tracking); }
|
|
6044
6687
|
}
|
|
6045
6688
|
.kjun-scope .kjun-kpi-hero--sm .kjun-kpi-hero__value{ font-size:var(--_kjun-type-display-sm-size); line-height:var(--_kjun-type-display-sm-line); font-weight:var(--_kjun-type-display-sm-weight); letter-spacing:var(--_kjun-type-display-sm-tracking); }
|
|
6046
6689
|
.kjun-scope .kjun-kpi-hero--sm .kjun-kpi-hero__affix{ font-size:var(--_kjun-type-number-sm-size); line-height:var(--_kjun-type-number-sm-line); font-weight:var(--_kjun-type-number-sm-weight); letter-spacing:var(--_kjun-type-number-sm-tracking); }
|
|
6047
6690
|
.kjun-scope .kjun-kpi-row--sm .kjun-kpi-row__value{ font-size:var(--_kjun-type-number-lg-size); line-height:var(--_kjun-type-number-lg-line); font-weight:var(--_kjun-type-number-lg-weight); letter-spacing:var(--_kjun-type-number-lg-tracking); }
|
|
6048
|
-
.kjun-scope .kjun-kpi-row--sm .kjun-kpi-row__affix{ font-size:var(--_kjun-type-
|
|
6049
|
-
|
|
6691
|
+
.kjun-scope .kjun-kpi-row--sm .kjun-kpi-row__affix{ font-size:var(--_kjun-type-meta-size); line-height:var(--_kjun-type-meta-line); font-weight:var(--_kjun-type-meta-weight); letter-spacing:var(--_kjun-type-meta-tracking); }
|
|
6692
|
+
/* A text value is a card title, so it holds its own beside number cells; summary footnotes stay body text. */
|
|
6693
|
+
.kjun-scope .kjun-kpi-row .kjun-kpi-row__item .kjun-kpi-row__value--text{ font-size:var(--_kjun-type-card-title-size); line-height:var(--_kjun-type-card-title-line); font-weight:var(--_kjun-type-card-title-weight); letter-spacing:var(--_kjun-type-card-title-tracking); }
|
|
6694
|
+
@media (width <= 768px) {
|
|
6695
|
+
.kjun-scope .kjun-kpi-row--mobile-summary .kjun-kpi-row__item--secondary .kjun-kpi-row__value--text{ font-size:var(--_kjun-type-body-size); line-height:var(--_kjun-type-body-line); font-weight:var(--_kjun-type-body-weight); letter-spacing:var(--_kjun-type-body-tracking); }
|
|
6696
|
+
}
|
|
6050
6697
|
.kjun-scope :is(.kjun-kpi-row__badge,.kjun-kpi-hero__sec-label) { white-space:normal; overflow-wrap:anywhere; }
|
|
6051
6698
|
|
|
6052
6699
|
.kjun-scope :is(.kjun-kpi-hero__sec-affix,.kjun-number-affix,.kjun-animated-number__affix) { font-size:var(--_kjun-type-caption-size); line-height:var(--_kjun-type-caption-line); }
|
|
@@ -6056,9 +6703,9 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
6056
6703
|
.kjun-scope :is(.kjun-kpi-hero__secondary) { min-width:0; }
|
|
6057
6704
|
.kjun-scope :is(.kjun-badge) { max-width:100%; min-width:0; overflow-wrap:anywhere; }
|
|
6058
6705
|
|
|
6059
|
-
.kjun-scope .kjun-kpi-hero__delta-line .kjun-number-affix{ font-size:var(--_kjun-type-
|
|
6706
|
+
.kjun-scope .kjun-kpi-hero__delta-line .kjun-number-affix{ font-size:var(--_kjun-type-meta-size); line-height:var(--_kjun-type-meta-line); font-weight:var(--_kjun-type-meta-weight); letter-spacing:var(--_kjun-type-meta-tracking); }
|
|
6060
6707
|
|
|
6061
|
-
.kjun-scope .kjun-kpi-row .kjun-kpi-row__value--text .kjun-kpi-row__affix{ font-size:var(--_kjun-type-
|
|
6708
|
+
.kjun-scope .kjun-kpi-row .kjun-kpi-row__value--text .kjun-kpi-row__affix{ font-size:var(--_kjun-type-meta-size); line-height:var(--_kjun-type-meta-line); font-weight:var(--_kjun-type-meta-weight); letter-spacing:var(--_kjun-type-meta-tracking); }
|
|
6062
6709
|
.kjun-scope :is(.kjun-kpi-row__value--text) :is(.kjun-animated-number) {
|
|
6063
6710
|
font-family: var(--kjun-font);
|
|
6064
6711
|
font-variant-numeric: normal;
|
|
@@ -6260,7 +6907,7 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
6260
6907
|
display: none;
|
|
6261
6908
|
background: var(--_kjun-color-surface);
|
|
6262
6909
|
color: var(--_kjun-color-text);
|
|
6263
|
-
box-shadow: 0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border), var(--_kjun-elevation
|
|
6910
|
+
box-shadow: 0 0 0 var(--_kjun-border-default-width) var(--_kjun-color-border), var(--_kjun-carousel-elevation);
|
|
6264
6911
|
transform: translateY(-50%);
|
|
6265
6912
|
opacity: 0;
|
|
6266
6913
|
pointer-events: none;
|
|
@@ -6455,3 +7102,410 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
6455
7102
|
margin-top: var(--_kjun-extension-calendar-footer-gap); padding-top: var(--_kjun-extension-calendar-footer-gap);
|
|
6456
7103
|
border-top: var(--_kjun-border-default-width) solid var(--_kjun-color-divider);
|
|
6457
7104
|
}
|
|
7105
|
+
|
|
7106
|
+
/* KjunColorPicker. The trigger reuses the select field; the panel opens in the field FloatingPanel.
|
|
7107
|
+
Computed colors are the only literal colors: the area fades to white and black over the hue, the hue track is the hue circle,
|
|
7108
|
+
and the alpha track fades to the current color. The checkerboard under transparent colors uses the surface and border roles. */
|
|
7109
|
+
.kjun-color-trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-variant-numeric: tabular-nums; }
|
|
7110
|
+
.kjun-color-trigger .kjun-color-chip { flex: none; }
|
|
7111
|
+
.kjun-color-trigger-alpha { color: var(--_kjun-color-text-secondary); margin-left: var(--_kjun-geometry-dimension-value4); }
|
|
7112
|
+
|
|
7113
|
+
.kjun-color-checker {
|
|
7114
|
+
background-color: var(--_kjun-color-surface);
|
|
7115
|
+
background-image: linear-gradient(45deg, var(--_kjun-color-border) 25%, transparent 25%, transparent 75%, var(--_kjun-color-border) 75%),
|
|
7116
|
+
linear-gradient(45deg, var(--_kjun-color-border) 25%, transparent 25%, transparent 75%, var(--_kjun-color-border) 75%);
|
|
7117
|
+
background-size: var(--_kjun-extension-color-picker-checker-size) var(--_kjun-extension-color-picker-checker-size);
|
|
7118
|
+
background-position: 0 0, calc(var(--_kjun-extension-color-picker-checker-size) / 2) calc(var(--_kjun-extension-color-picker-checker-size) / 2);
|
|
7119
|
+
}
|
|
7120
|
+
/* A color chip: the color sits on the checkerboard and keeps a faint inner edge so a color equal to the page still shows.
|
|
7121
|
+
"No color" is a neutral slash: red reads as an error in a form. */
|
|
7122
|
+
.kjun-color-chip { position: relative; display: inline-block; overflow: hidden; border-radius: var(--_kjun-extension-color-picker-swatch-radius); }
|
|
7123
|
+
.kjun-color-chip > span { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--_kjun-border-default-width) color-mix(in srgb, var(--_kjun-color-text) 12%, transparent); }
|
|
7124
|
+
.kjun-color-chip[data-none] { background: var(--_kjun-color-surface); }
|
|
7125
|
+
.kjun-color-chip[data-none] > span {
|
|
7126
|
+
background: linear-gradient(135deg, transparent calc(50% - var(--_kjun-border-default-width)), var(--_kjun-color-text-tertiary) calc(50% - var(--_kjun-border-default-width)),
|
|
7127
|
+
var(--_kjun-color-text-tertiary) calc(50% + var(--_kjun-border-default-width)), transparent calc(50% + var(--_kjun-border-default-width)));
|
|
7128
|
+
}
|
|
7129
|
+
|
|
7130
|
+
.kjun-color-panel {
|
|
7131
|
+
width: var(--_kjun-extension-color-picker-width); max-width: calc(100vw - 2 * var(--_kjun-extension-floating-viewport-inset));
|
|
7132
|
+
/* The floating border sits inside the width, so the content keeps width - 2 × padding (eight 20px swatches a row). */
|
|
7133
|
+
padding: calc(var(--_kjun-extension-color-picker-padding) - var(--_kjun-border-default-width)); box-sizing: border-box;
|
|
7134
|
+
display: flex; flex-direction: column; gap: var(--_kjun-extension-color-picker-gap);
|
|
7135
|
+
/* Thumbs stay inside the area and the tracks: their ends sit half a thumb in, and the gradients start and stop there too. */
|
|
7136
|
+
--_kjun-color-picker-inset: calc(var(--_kjun-extension-color-picker-thumb-size) / 2);
|
|
7137
|
+
}
|
|
7138
|
+
/* A touch screen gets a panel as wide as the trigger (the picker asks the panel to match it), kept between the mouse width and
|
|
7139
|
+
the touch maximum, so swatches and tracks grow under a finger. */
|
|
7140
|
+
@media (pointer: coarse) {
|
|
7141
|
+
.kjun-color-panel {
|
|
7142
|
+
min-width: var(--_kjun-extension-color-picker-width);
|
|
7143
|
+
max-width: min(var(--_kjun-extension-color-picker-touch-max-width), calc(100vw - 2 * var(--_kjun-extension-floating-viewport-inset)));
|
|
7144
|
+
}
|
|
7145
|
+
}
|
|
7146
|
+
|
|
7147
|
+
.kjun-color-area {
|
|
7148
|
+
position: relative; height: var(--_kjun-extension-color-picker-area-height); border-radius: var(--_kjun-extension-color-picker-area-radius);
|
|
7149
|
+
background: linear-gradient(to top, black var(--_kjun-color-picker-inset), transparent calc(100% - var(--_kjun-color-picker-inset))),
|
|
7150
|
+
linear-gradient(to right, white var(--_kjun-color-picker-inset), transparent calc(100% - var(--_kjun-color-picker-inset))), var(--_kjun-color-picker-hue);
|
|
7151
|
+
touch-action: none; cursor: crosshair; outline: none; user-select: none;
|
|
7152
|
+
}
|
|
7153
|
+
.kjun-color-area-hint { position: absolute; inset-inline: 0; bottom: var(--_kjun-extension-color-picker-gap); text-align: center; color: white; pointer-events: none; }
|
|
7154
|
+
.kjun-color-channel {
|
|
7155
|
+
position: relative; height: var(--_kjun-extension-color-picker-channel-height); border-radius: var(--_kjun-extension-color-picker-channel-radius);
|
|
7156
|
+
touch-action: none; cursor: pointer; outline: none; user-select: none;
|
|
7157
|
+
--_kjun-color-picker-run: calc(100% - 2 * var(--_kjun-color-picker-inset));
|
|
7158
|
+
}
|
|
7159
|
+
/* Hue and opacity sit closer to each other than to the area and the fields. */
|
|
7160
|
+
.kjun-color-channel + .kjun-color-channel { margin-top: calc(var(--_kjun-extension-color-picker-channel-gap) - var(--_kjun-extension-color-picker-gap)); }
|
|
7161
|
+
.kjun-color-channel[data-channel="hue"] {
|
|
7162
|
+
background: linear-gradient(to right, hsl(0 100% 50%) var(--_kjun-color-picker-inset),
|
|
7163
|
+
hsl(60 100% 50%) calc(var(--_kjun-color-picker-inset) + var(--_kjun-color-picker-run) / 6), hsl(120 100% 50%) calc(var(--_kjun-color-picker-inset) + var(--_kjun-color-picker-run) / 3),
|
|
7164
|
+
hsl(180 100% 50%) calc(var(--_kjun-color-picker-inset) + var(--_kjun-color-picker-run) / 2), hsl(240 100% 50%) calc(var(--_kjun-color-picker-inset) + var(--_kjun-color-picker-run) * 2 / 3),
|
|
7165
|
+
hsl(300 100% 50%) calc(var(--_kjun-color-picker-inset) + var(--_kjun-color-picker-run) * 5 / 6), hsl(360 100% 50%) calc(100% - var(--_kjun-color-picker-inset)));
|
|
7166
|
+
}
|
|
7167
|
+
.kjun-color-channel[data-channel="alpha"] > i {
|
|
7168
|
+
position: absolute; inset: 0; border-radius: inherit;
|
|
7169
|
+
background: linear-gradient(to right, transparent var(--_kjun-color-picker-inset), var(--_kjun-color-picker-current) calc(100% - var(--_kjun-color-picker-inset)));
|
|
7170
|
+
}
|
|
7171
|
+
/* Under a finger the tracks spread out and each takes the whole band up to its neighbour. */
|
|
7172
|
+
@media (pointer: coarse) {
|
|
7173
|
+
.kjun-color-channel + .kjun-color-channel { margin-top: calc(var(--_kjun-extension-color-picker-touch-channel-gap) - var(--_kjun-extension-color-picker-gap)); }
|
|
7174
|
+
.kjun-color-channel::after {
|
|
7175
|
+
content: ""; position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%);
|
|
7176
|
+
height: calc(var(--_kjun-extension-color-picker-channel-height) + var(--_kjun-extension-color-picker-touch-channel-gap));
|
|
7177
|
+
}
|
|
7178
|
+
}
|
|
7179
|
+
|
|
7180
|
+
.kjun-color-thumb {
|
|
7181
|
+
/* Placed at left p%, the thumb moves back p of its own width (inline translate), so its center runs half a thumb in from each end. */
|
|
7182
|
+
position: absolute; z-index: 1; width: var(--_kjun-extension-color-picker-thumb-size); height: var(--_kjun-extension-color-picker-thumb-size);
|
|
7183
|
+
border-radius: 50%; background: var(--_kjun-color-switch-thumb); box-shadow: var(--_kjun-slider-elevation);
|
|
7184
|
+
display: flex; align-items: center; justify-content: center; pointer-events: none;
|
|
7185
|
+
}
|
|
7186
|
+
.kjun-color-channel .kjun-color-thumb { top: 50%; }
|
|
7187
|
+
.kjun-color-thumb > span { width: calc(var(--_kjun-extension-color-picker-thumb-size) - 2 * var(--_kjun-extension-color-picker-ring-width) - 2 * var(--_kjun-extension-color-picker-ring-gap)); height: calc(var(--_kjun-extension-color-picker-thumb-size) - 2 * var(--_kjun-extension-color-picker-ring-width) - 2 * var(--_kjun-extension-color-picker-ring-gap)); border-radius: 50%; }
|
|
7188
|
+
/* Keyboard focus rings the thumb, not the whole track. */
|
|
7189
|
+
.kjun-color-area:focus-visible .kjun-color-thumb, .kjun-color-channel:focus-visible .kjun-color-thumb {
|
|
7190
|
+
box-shadow: 0 0 0 var(--_kjun-extension-color-picker-ring-gap) var(--_kjun-color-surface),
|
|
7191
|
+
0 0 0 calc(var(--_kjun-extension-color-picker-ring-gap) + var(--_kjun-extension-color-picker-ring-width)) var(--_kjun-color-brand), var(--_kjun-slider-elevation);
|
|
7192
|
+
}
|
|
7193
|
+
|
|
7194
|
+
.kjun-color-inputs { display: flex; gap: var(--_kjun-extension-color-picker-swatch-gap); }
|
|
7195
|
+
.kjun-color-inputs .kjun-input-wrap { flex: 1; min-width: 0; }
|
|
7196
|
+
.kjun-color-inputs .kjun-input-wrap:has(.kjun-color-alpha) { flex: none; width: var(--_kjun-extension-color-picker-alpha-input-width); }
|
|
7197
|
+
.kjun-color-inputs input { font-variant-numeric: tabular-nums; text-transform: uppercase; }
|
|
7198
|
+
/* The # and % stay in the field, quieter than the digits; the eyedropper is a ghost button so it never reads as a third field. */
|
|
7199
|
+
.kjun-color-affix { font-variant-numeric: tabular-nums; }
|
|
7200
|
+
.kjun-color-eyedropper { flex: none; }
|
|
7201
|
+
|
|
7202
|
+
/* Swatches and recent colors form one group, set apart from the controls above; with both rows each takes a caption. */
|
|
7203
|
+
.kjun-color-section { display: flex; flex-direction: column; gap: var(--_kjun-extension-color-picker-gap); }
|
|
7204
|
+
/* Only after controls: the panel can open with a hidden dismiss button, so :first-child would never hold. */
|
|
7205
|
+
.kjun-color-area ~ .kjun-color-section, .kjun-color-channel ~ .kjun-color-section, .kjun-color-inputs ~ .kjun-color-section {
|
|
7206
|
+
margin-top: calc(var(--_kjun-extension-color-picker-section-gap) - var(--_kjun-extension-color-picker-gap));
|
|
7207
|
+
}
|
|
7208
|
+
.kjun-color-group { display: flex; flex-direction: column; gap: var(--_kjun-geometry-dimension-value4); }
|
|
7209
|
+
.kjun-color-group-label { color: var(--_kjun-color-text-tertiary); }
|
|
7210
|
+
|
|
7211
|
+
/* Eight fixed columns, so 'none' + seven colors fill one row; swatches stay square at whatever width the columns get. */
|
|
7212
|
+
.kjun-color-swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--_kjun-extension-color-picker-swatch-gap); }
|
|
7213
|
+
.kjun-color-swatch {
|
|
7214
|
+
width: 100%; aspect-ratio: 1;
|
|
7215
|
+
padding: 0; border: 0; border-radius: var(--_kjun-extension-color-picker-swatch-radius); cursor: pointer; outline: none;
|
|
7216
|
+
position: relative; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
|
|
7217
|
+
}
|
|
7218
|
+
.kjun-color-swatch > .kjun-color-chip { position: absolute; inset: 0; }
|
|
7219
|
+
.kjun-color-swatch > svg { position: relative; }
|
|
7220
|
+
.kjun-color-swatch[data-ink="light"] > svg { color: white; }
|
|
7221
|
+
.kjun-color-swatch[data-ink="dark"] > svg { color: black; }
|
|
7222
|
+
.kjun-color-swatch:hover:not([data-selected]) { box-shadow: 0 0 0 var(--_kjun-extension-color-picker-ring-gap) var(--_kjun-color-surface), 0 0 0 calc(var(--_kjun-extension-color-picker-ring-gap) + var(--_kjun-extension-color-picker-ring-width)) var(--_kjun-color-border-strong); }
|
|
7223
|
+
/* One ring: the selected swatch and the keyboard-focused swatch share it; the selected one also carries a check. */
|
|
7224
|
+
.kjun-color-swatch[data-selected], .kjun-color-swatch:focus-visible {
|
|
7225
|
+
box-shadow: 0 0 0 var(--_kjun-extension-color-picker-ring-gap) var(--_kjun-color-surface), 0 0 0 calc(var(--_kjun-extension-color-picker-ring-gap) + var(--_kjun-extension-color-picker-ring-width)) var(--_kjun-color-brand);
|
|
7226
|
+
}
|
|
7227
|
+
|
|
7228
|
+
/* KjunSplitPane: two panes and a handle between them. The first pane takes --_kjun-split-pane-size (0–1) of the room
|
|
7229
|
+
beside the handle, so the split holds its ratio as the container resizes without a script. */
|
|
7230
|
+
.kjun-split-pane {
|
|
7231
|
+
--_kjun-split-pane-hit: var(--_kjun-extension-split-pane-handle-hit);
|
|
7232
|
+
display: flex;
|
|
7233
|
+
width: 100%;
|
|
7234
|
+
height: 100%;
|
|
7235
|
+
min-width: 0;
|
|
7236
|
+
min-height: 0;
|
|
7237
|
+
}
|
|
7238
|
+
/* Touch screens get a full-size target; the bar inside stays the same. */
|
|
7239
|
+
@media (pointer: coarse) {
|
|
7240
|
+
.kjun-split-pane {
|
|
7241
|
+
--_kjun-split-pane-hit: var(--_kjun-extension-split-pane-touch-handle-hit);
|
|
7242
|
+
}
|
|
7243
|
+
}
|
|
7244
|
+
.kjun-split-pane[data-direction="vertical"] {
|
|
7245
|
+
flex-direction: column;
|
|
7246
|
+
}
|
|
7247
|
+
.kjun-split-pane[data-dragging="true"] {
|
|
7248
|
+
user-select: none;
|
|
7249
|
+
}
|
|
7250
|
+
.kjun-split-pane-first,
|
|
7251
|
+
.kjun-split-pane-second {
|
|
7252
|
+
min-width: 0;
|
|
7253
|
+
min-height: 0;
|
|
7254
|
+
overflow: auto;
|
|
7255
|
+
}
|
|
7256
|
+
.kjun-split-pane-first {
|
|
7257
|
+
flex: 0 0 calc((100% - var(--_kjun-split-pane-hit)) * var(--_kjun-split-pane-size));
|
|
7258
|
+
}
|
|
7259
|
+
.kjun-split-pane-second {
|
|
7260
|
+
flex: 1 1 0;
|
|
7261
|
+
}
|
|
7262
|
+
.kjun-split-pane-handle {
|
|
7263
|
+
flex: 0 0 var(--_kjun-split-pane-hit);
|
|
7264
|
+
display: flex;
|
|
7265
|
+
align-items: center;
|
|
7266
|
+
justify-content: center;
|
|
7267
|
+
border-radius: var(--_kjun-geometry-radius-radius8);
|
|
7268
|
+
cursor: col-resize;
|
|
7269
|
+
touch-action: none;
|
|
7270
|
+
user-select: none;
|
|
7271
|
+
outline: 0;
|
|
7272
|
+
}
|
|
7273
|
+
.kjun-split-pane[data-direction="vertical"] > .kjun-split-pane-handle {
|
|
7274
|
+
cursor: row-resize;
|
|
7275
|
+
}
|
|
7276
|
+
.kjun-split-pane-bar {
|
|
7277
|
+
width: var(--_kjun-extension-split-pane-bar-width);
|
|
7278
|
+
height: var(--_kjun-extension-split-pane-bar-length);
|
|
7279
|
+
border-radius: var(--_kjun-geometry-radius-radius9999);
|
|
7280
|
+
background: var(--_kjun-color-border-strong);
|
|
7281
|
+
transition: background var(--_kjun-motion-control) var(--_kjun-ease-out), width var(--_kjun-motion-control) var(--_kjun-ease-out),
|
|
7282
|
+
height var(--_kjun-motion-control) var(--_kjun-ease-out);
|
|
7283
|
+
}
|
|
7284
|
+
.kjun-split-pane[data-direction="vertical"] > .kjun-split-pane-handle > .kjun-split-pane-bar {
|
|
7285
|
+
width: var(--_kjun-extension-split-pane-bar-length);
|
|
7286
|
+
height: var(--_kjun-extension-split-pane-bar-width);
|
|
7287
|
+
}
|
|
7288
|
+
.kjun-split-pane-handle:hover > .kjun-split-pane-bar {
|
|
7289
|
+
background: var(--_kjun-color-text-tertiary);
|
|
7290
|
+
}
|
|
7291
|
+
/* The keyboard ring goes round the bar: a ring round the handle would be as long as the panes. */
|
|
7292
|
+
.kjun-split-pane-handle:focus-visible > .kjun-split-pane-bar {
|
|
7293
|
+
outline: var(--_kjun-state-focus-width) solid var(--_kjun-color-focus-ring);
|
|
7294
|
+
outline-offset: var(--_kjun-state-focus-offset);
|
|
7295
|
+
}
|
|
7296
|
+
.kjun-split-pane-handle:focus-visible > .kjun-split-pane-bar,
|
|
7297
|
+
.kjun-split-pane-handle[data-dragging="true"] > .kjun-split-pane-bar {
|
|
7298
|
+
background: var(--_kjun-color-text);
|
|
7299
|
+
}
|
|
7300
|
+
/* While dragging the bar grows along the handle and the handle takes the hover fill. */
|
|
7301
|
+
.kjun-split-pane-handle[data-dragging="true"] {
|
|
7302
|
+
background: var(--_kjun-color-hover);
|
|
7303
|
+
}
|
|
7304
|
+
.kjun-split-pane-handle[data-dragging="true"] > .kjun-split-pane-bar {
|
|
7305
|
+
height: var(--_kjun-extension-split-pane-active-bar-length);
|
|
7306
|
+
}
|
|
7307
|
+
.kjun-split-pane[data-direction="vertical"] > .kjun-split-pane-handle[data-dragging="true"] > .kjun-split-pane-bar {
|
|
7308
|
+
width: var(--_kjun-extension-split-pane-active-bar-length);
|
|
7309
|
+
height: var(--_kjun-extension-split-pane-bar-width);
|
|
7310
|
+
}
|
|
7311
|
+
.kjun-split-pane-handle[aria-disabled="true"] {
|
|
7312
|
+
cursor: default;
|
|
7313
|
+
}
|
|
7314
|
+
.kjun-split-pane-handle[aria-disabled="true"] > .kjun-split-pane-bar {
|
|
7315
|
+
background: var(--_kjun-color-border);
|
|
7316
|
+
}
|
|
7317
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7318
|
+
.kjun-split-pane-bar {
|
|
7319
|
+
transition: none;
|
|
7320
|
+
}
|
|
7321
|
+
}
|
|
7322
|
+
|
|
7323
|
+
/* KjunZoneGauge: a fixed axis split into zones, with a marker at the current value. The app supplies zone colours;
|
|
7324
|
+
a zone without one takes the neutral track colour. */
|
|
7325
|
+
.kjun-zone-gauge {
|
|
7326
|
+
--_kjun-zone-gauge-track: var(--_kjun-extension-zone-gauge-track-height);
|
|
7327
|
+
display: flex;
|
|
7328
|
+
flex-direction: column;
|
|
7329
|
+
min-width: 0;
|
|
7330
|
+
color: var(--_kjun-color-text);
|
|
7331
|
+
}
|
|
7332
|
+
.kjun-zone-gauge[data-size="sm"] {
|
|
7333
|
+
--_kjun-zone-gauge-track: var(--_kjun-extension-zone-gauge-sm-track-height);
|
|
7334
|
+
}
|
|
7335
|
+
.kjun-zone-gauge-caption,
|
|
7336
|
+
.kjun-stacked-bar-caption {
|
|
7337
|
+
display: flex;
|
|
7338
|
+
justify-content: space-between;
|
|
7339
|
+
align-items: baseline;
|
|
7340
|
+
gap: var(--_kjun-geometry-dimension-value12);
|
|
7341
|
+
font-size: var(--_kjun-type-label-size);
|
|
7342
|
+
line-height: var(--_kjun-type-label-line);
|
|
7343
|
+
font-weight: var(--_kjun-type-label-weight);
|
|
7344
|
+
letter-spacing: var(--_kjun-type-label-tracking);
|
|
7345
|
+
}
|
|
7346
|
+
.kjun-zone-gauge-caption {
|
|
7347
|
+
margin-bottom: var(--_kjun-extension-zone-gauge-caption-gap);
|
|
7348
|
+
}
|
|
7349
|
+
.kjun-zone-gauge-label,
|
|
7350
|
+
.kjun-stacked-bar-label {
|
|
7351
|
+
flex: 1 1 auto;
|
|
7352
|
+
min-width: 0;
|
|
7353
|
+
overflow: hidden;
|
|
7354
|
+
text-overflow: ellipsis;
|
|
7355
|
+
white-space: nowrap;
|
|
7356
|
+
color: var(--_kjun-color-text-secondary);
|
|
7357
|
+
}
|
|
7358
|
+
/* The value keeps its width before the name does; a value too long for the line is cut the same way. */
|
|
7359
|
+
.kjun-zone-gauge-value,
|
|
7360
|
+
.kjun-stacked-bar-value {
|
|
7361
|
+
flex: 0 1 auto;
|
|
7362
|
+
min-width: 0;
|
|
7363
|
+
overflow: hidden;
|
|
7364
|
+
text-overflow: ellipsis;
|
|
7365
|
+
white-space: nowrap;
|
|
7366
|
+
font-variant-numeric: tabular-nums;
|
|
7367
|
+
}
|
|
7368
|
+
.kjun-zone-gauge[data-state="missing"] .kjun-zone-gauge-value,
|
|
7369
|
+
.kjun-stacked-bar[data-state="missing"] .kjun-stacked-bar-value {
|
|
7370
|
+
color: var(--_kjun-color-text-tertiary);
|
|
7371
|
+
}
|
|
7372
|
+
/* The marker overhangs the track on both sides, so the axis keeps that room above and below. */
|
|
7373
|
+
.kjun-zone-gauge-axis {
|
|
7374
|
+
--_kjun-zone-gauge-marker-start: calc((100% - var(--_kjun-extension-zone-gauge-marker-width)) * var(--_kjun-zone-gauge-position));
|
|
7375
|
+
--_kjun-zone-gauge-usable: calc(100% - (var(--_kjun-zone-gauge-count) - 1) * var(--_kjun-extension-zone-gauge-segment-gap));
|
|
7376
|
+
position: relative;
|
|
7377
|
+
padding-block: var(--_kjun-extension-zone-gauge-marker-overhang);
|
|
7378
|
+
}
|
|
7379
|
+
/* A marker just past a zone boundary leaves a sliver of the zone between the boundary and its ring. A sliver thinner
|
|
7380
|
+
than the minimum is covered in the surface colour; a wider one is left alone (the width works out to 0). */
|
|
7381
|
+
.kjun-zone-gauge-cover {
|
|
7382
|
+
position: absolute;
|
|
7383
|
+
top: var(--_kjun-extension-zone-gauge-marker-overhang);
|
|
7384
|
+
bottom: var(--_kjun-extension-zone-gauge-marker-overhang);
|
|
7385
|
+
inset-inline-start: var(--_kjun-zone-gauge-cover-start);
|
|
7386
|
+
width: max(0px, min(var(--_kjun-zone-gauge-cover-size), (var(--_kjun-extension-zone-gauge-min-sliver) - var(--_kjun-zone-gauge-cover-size)) * 9999));
|
|
7387
|
+
background: var(--_kjun-color-surface);
|
|
7388
|
+
}
|
|
7389
|
+
.kjun-zone-gauge-cover[data-side="before"] {
|
|
7390
|
+
--_kjun-zone-gauge-cover-start: calc(var(--_kjun-zone-gauge-usable) * var(--_kjun-zone-gauge-cut) + (var(--_kjun-zone-gauge-gaps) + 1) * var(--_kjun-extension-zone-gauge-segment-gap));
|
|
7391
|
+
--_kjun-zone-gauge-cover-size: calc(var(--_kjun-zone-gauge-marker-start) - var(--_kjun-extension-zone-gauge-marker-ring) - var(--_kjun-zone-gauge-cover-start));
|
|
7392
|
+
}
|
|
7393
|
+
.kjun-zone-gauge-cover[data-side="after"] {
|
|
7394
|
+
--_kjun-zone-gauge-cover-start: calc(var(--_kjun-zone-gauge-marker-start) + var(--_kjun-extension-zone-gauge-marker-width) + var(--_kjun-extension-zone-gauge-marker-ring));
|
|
7395
|
+
--_kjun-zone-gauge-cover-size: calc(var(--_kjun-zone-gauge-usable) * var(--_kjun-zone-gauge-cut) + var(--_kjun-zone-gauge-gaps) * var(--_kjun-extension-zone-gauge-segment-gap) - var(--_kjun-zone-gauge-cover-start));
|
|
7396
|
+
}
|
|
7397
|
+
.kjun-zone-gauge-track {
|
|
7398
|
+
display: flex;
|
|
7399
|
+
gap: var(--_kjun-extension-zone-gauge-segment-gap);
|
|
7400
|
+
height: var(--_kjun-zone-gauge-track);
|
|
7401
|
+
}
|
|
7402
|
+
.kjun-zone-gauge-zone {
|
|
7403
|
+
flex: 1 1 0;
|
|
7404
|
+
min-width: 0;
|
|
7405
|
+
background: var(--_kjun-color-switch-track);
|
|
7406
|
+
}
|
|
7407
|
+
.kjun-zone-gauge-zone:first-child {
|
|
7408
|
+
border-start-start-radius: var(--_kjun-geometry-radius-radius9999);
|
|
7409
|
+
border-end-start-radius: var(--_kjun-geometry-radius-radius9999);
|
|
7410
|
+
}
|
|
7411
|
+
.kjun-zone-gauge-zone:last-child {
|
|
7412
|
+
border-start-end-radius: var(--_kjun-geometry-radius-radius9999);
|
|
7413
|
+
border-end-end-radius: var(--_kjun-geometry-radius-radius9999);
|
|
7414
|
+
}
|
|
7415
|
+
/* The marker stays inside the axis at both ends: its start edge travels the axis less its own width. A ring in the
|
|
7416
|
+
surface colour keeps it readable over any zone colour. */
|
|
7417
|
+
.kjun-zone-gauge-marker {
|
|
7418
|
+
position: absolute;
|
|
7419
|
+
top: 0;
|
|
7420
|
+
bottom: 0;
|
|
7421
|
+
inset-inline-start: var(--_kjun-zone-gauge-marker-start);
|
|
7422
|
+
width: var(--_kjun-extension-zone-gauge-marker-width);
|
|
7423
|
+
border-radius: var(--_kjun-geometry-radius-radius9999);
|
|
7424
|
+
background: var(--_kjun-color-text);
|
|
7425
|
+
box-shadow: 0 0 0 var(--_kjun-extension-zone-gauge-marker-ring) var(--_kjun-color-surface);
|
|
7426
|
+
}
|
|
7427
|
+
.kjun-zone-gauge-labels {
|
|
7428
|
+
display: flex;
|
|
7429
|
+
gap: var(--_kjun-extension-zone-gauge-segment-gap);
|
|
7430
|
+
margin-top: var(--_kjun-extension-zone-gauge-labels-gap);
|
|
7431
|
+
font-size: var(--_kjun-type-caption-size);
|
|
7432
|
+
line-height: var(--_kjun-type-caption-line);
|
|
7433
|
+
font-weight: var(--_kjun-type-caption-weight);
|
|
7434
|
+
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
7435
|
+
color: var(--_kjun-color-text-secondary);
|
|
7436
|
+
}
|
|
7437
|
+
/* Zone names sit under their zones: the first reads from the start edge, the last to the end edge, the rest centred. */
|
|
7438
|
+
.kjun-zone-gauge-labels > span {
|
|
7439
|
+
flex: 1 1 0;
|
|
7440
|
+
min-width: 0;
|
|
7441
|
+
overflow: hidden;
|
|
7442
|
+
text-overflow: ellipsis;
|
|
7443
|
+
white-space: nowrap;
|
|
7444
|
+
text-align: center;
|
|
7445
|
+
}
|
|
7446
|
+
.kjun-zone-gauge-labels > span:first-child {
|
|
7447
|
+
text-align: start;
|
|
7448
|
+
}
|
|
7449
|
+
.kjun-zone-gauge-labels > span:last-child:not(:first-child) {
|
|
7450
|
+
text-align: end;
|
|
7451
|
+
}
|
|
7452
|
+
|
|
7453
|
+
/* KjunStackedBar: the parts of a whole. Each part is as long as its share; a part above zero keeps a minimum length. */
|
|
7454
|
+
.kjun-stacked-bar {
|
|
7455
|
+
--_kjun-stacked-bar-track: var(--_kjun-extension-stacked-bar-track-height);
|
|
7456
|
+
display: flex;
|
|
7457
|
+
flex-direction: column;
|
|
7458
|
+
min-width: 0;
|
|
7459
|
+
color: var(--_kjun-color-text);
|
|
7460
|
+
}
|
|
7461
|
+
.kjun-stacked-bar[data-size="sm"] {
|
|
7462
|
+
--_kjun-stacked-bar-track: var(--_kjun-extension-stacked-bar-sm-track-height);
|
|
7463
|
+
}
|
|
7464
|
+
.kjun-stacked-bar-caption {
|
|
7465
|
+
margin-bottom: var(--_kjun-extension-stacked-bar-caption-gap);
|
|
7466
|
+
}
|
|
7467
|
+
/* Clipped to the rail: more minimum-length parts than fit cannot run past it, and the rail alone rounds the ends, so a
|
|
7468
|
+
short last part is not cut twice into a point. */
|
|
7469
|
+
.kjun-stacked-bar-track {
|
|
7470
|
+
display: flex;
|
|
7471
|
+
gap: var(--_kjun-extension-stacked-bar-segment-gap);
|
|
7472
|
+
height: var(--_kjun-stacked-bar-track);
|
|
7473
|
+
overflow: hidden;
|
|
7474
|
+
border-radius: var(--_kjun-geometry-radius-radius9999);
|
|
7475
|
+
}
|
|
7476
|
+
/* An all-zero total and missing data draw the empty rail alone, so the bar keeps its place either way. */
|
|
7477
|
+
.kjun-stacked-bar:is([data-state="empty"], [data-state="missing"]) .kjun-stacked-bar-track {
|
|
7478
|
+
background: var(--_kjun-color-switch-track);
|
|
7479
|
+
}
|
|
7480
|
+
.kjun-stacked-bar-segment {
|
|
7481
|
+
flex: 1 1 0;
|
|
7482
|
+
min-width: var(--_kjun-extension-stacked-bar-min-segment);
|
|
7483
|
+
background: var(--_kjun-color-switch-track);
|
|
7484
|
+
}
|
|
7485
|
+
.kjun-stacked-bar-legend {
|
|
7486
|
+
display: flex;
|
|
7487
|
+
flex-wrap: wrap;
|
|
7488
|
+
gap: var(--_kjun-extension-stacked-bar-legend-row-gap) var(--_kjun-extension-stacked-bar-legend-gap);
|
|
7489
|
+
margin: var(--_kjun-extension-stacked-bar-legend-top) 0 0;
|
|
7490
|
+
padding: 0;
|
|
7491
|
+
list-style: none;
|
|
7492
|
+
font-size: var(--_kjun-type-caption-size);
|
|
7493
|
+
line-height: var(--_kjun-type-caption-line);
|
|
7494
|
+
font-weight: var(--_kjun-type-caption-weight);
|
|
7495
|
+
letter-spacing: var(--_kjun-type-caption-tracking);
|
|
7496
|
+
color: var(--_kjun-color-text-secondary);
|
|
7497
|
+
}
|
|
7498
|
+
.kjun-stacked-bar-legend > li {
|
|
7499
|
+
display: inline-flex;
|
|
7500
|
+
align-items: center;
|
|
7501
|
+
min-width: 0;
|
|
7502
|
+
gap: var(--_kjun-extension-stacked-bar-swatch-gap);
|
|
7503
|
+
font-variant-numeric: tabular-nums;
|
|
7504
|
+
}
|
|
7505
|
+
.kjun-stacked-bar-swatch {
|
|
7506
|
+
flex: 0 0 auto;
|
|
7507
|
+
width: var(--_kjun-extension-stacked-bar-swatch-size);
|
|
7508
|
+
height: var(--_kjun-extension-stacked-bar-swatch-size);
|
|
7509
|
+
border-radius: var(--_kjun-extension-stacked-bar-swatch-radius);
|
|
7510
|
+
background: var(--_kjun-color-switch-track);
|
|
7511
|
+
}
|