@ghostvue/themes 0.1.0 → 0.2.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/calm.css +24 -14
- package/dist/components.d.ts +7 -2
- package/dist/components.js +6 -1
- package/dist/default.css +1006 -752
- package/dist/define.js +21 -3
- package/dist/generated/tokens.d.ts +11 -0
- package/dist/generated/tokens.js +11 -0
- package/dist/ghost-checkbox-group.d.ts +50 -0
- package/dist/ghost-checkbox-group.js +56 -0
- package/dist/ghost-field.d.ts +12 -3
- package/dist/ghost-field.js +6 -1
- package/dist/ghost-select.d.ts +52 -113
- package/dist/ghost-select.js +45 -68
- package/dist/ghost-submenu-content.d.ts +22 -0
- package/dist/ghost-submenu-content.js +17 -0
- package/dist/ghost-submenu-trigger.d.ts +11 -0
- package/dist/ghost-submenu-trigger.js +11 -0
- package/dist/ghost-submenu.d.ts +1 -0
- package/dist/ghost-submenu.js +1 -0
- package/dist/ghost-tags-input.d.ts +75 -0
- package/dist/ghost-tags-input.js +54 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.js +6 -1
- package/dist/manifest.json +471 -11
- package/dist/mono.css +24 -14
- package/dist/recipes/checkbox-group.css +30 -0
- package/dist/recipes/command-palette.css +52 -0
- package/dist/recipes/context-menu.css +95 -184
- package/dist/recipes/data-table.css +151 -144
- package/dist/recipes/dialog.css +68 -10
- package/dist/recipes/drawer.css +109 -11
- package/dist/recipes/dropdown-menu.css +95 -189
- package/dist/recipes/hover-card.css +19 -0
- package/dist/recipes/menubar.css +110 -191
- package/dist/recipes/popover.css +19 -0
- package/dist/recipes/progress.css +7 -2
- package/dist/recipes/scroll-area.css +43 -2
- package/dist/recipes/segmented-control.css +62 -3
- package/dist/recipes/tags-input.css +120 -0
- package/dist/tokens/semantic.json +5 -0
- package/dist/tokens.css +24 -14
- package/dist/tokens.json +15 -0
- package/dist/vibrant.css +24 -14
- package/package.json +3 -3
package/dist/default.css
CHANGED
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
* flash the opposite palette.
|
|
22
22
|
*/
|
|
23
23
|
@layer ghostvue-theme {
|
|
24
|
+
:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) {
|
|
25
|
+
--_ghost-progress-intensity-baseline: 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) {
|
|
25
29
|
--ghost-action-danger-bg: #b91c1c;
|
|
26
30
|
--ghost-action-danger-bg-active: #640004;
|
|
@@ -169,6 +173,7 @@
|
|
|
169
173
|
--ghost-space-inset-2xs: 0.25rem;
|
|
170
174
|
--ghost-space-inset-lg: 1.25rem;
|
|
171
175
|
--ghost-space-inset-md: 1rem;
|
|
176
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
172
177
|
--ghost-space-inset-sm: 0.75rem;
|
|
173
178
|
--ghost-space-inset-xs: 0.5rem;
|
|
174
179
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -240,11 +245,11 @@
|
|
|
240
245
|
|
|
241
246
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
242
247
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
243
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
248
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
244
249
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
245
250
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
246
251
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
247
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
252
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
248
253
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
249
254
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
250
255
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -413,6 +418,7 @@
|
|
|
413
418
|
--ghost-space-inset-2xs: 0.25rem;
|
|
414
419
|
--ghost-space-inset-lg: 1.25rem;
|
|
415
420
|
--ghost-space-inset-md: 1rem;
|
|
421
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
416
422
|
--ghost-space-inset-sm: 0.75rem;
|
|
417
423
|
--ghost-space-inset-xs: 0.5rem;
|
|
418
424
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -484,11 +490,11 @@
|
|
|
484
490
|
|
|
485
491
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
486
492
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
487
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
493
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
488
494
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
489
495
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
490
496
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
491
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
497
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
492
498
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
493
499
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
494
500
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -658,6 +664,7 @@
|
|
|
658
664
|
--ghost-space-inset-2xs: 0.25rem;
|
|
659
665
|
--ghost-space-inset-lg: 1.25rem;
|
|
660
666
|
--ghost-space-inset-md: 1rem;
|
|
667
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
661
668
|
--ghost-space-inset-sm: 0.75rem;
|
|
662
669
|
--ghost-space-inset-xs: 0.5rem;
|
|
663
670
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -729,11 +736,11 @@
|
|
|
729
736
|
|
|
730
737
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='light']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='light'])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='light']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='light'])) :where(*) {
|
|
731
738
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
732
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
739
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
733
740
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
734
741
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
735
742
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
736
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
743
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
737
744
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
738
745
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
739
746
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -902,6 +909,7 @@
|
|
|
902
909
|
--ghost-space-inset-2xs: 0.25rem;
|
|
903
910
|
--ghost-space-inset-lg: 1.25rem;
|
|
904
911
|
--ghost-space-inset-md: 1rem;
|
|
912
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
905
913
|
--ghost-space-inset-sm: 0.75rem;
|
|
906
914
|
--ghost-space-inset-xs: 0.5rem;
|
|
907
915
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -973,11 +981,11 @@
|
|
|
973
981
|
|
|
974
982
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='dark']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='dark'])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):where([data-ghost-mode='dark']), :where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']) :where([data-ghost-mode='dark'])) :where(*) {
|
|
975
983
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
976
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
984
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
977
985
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
978
986
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
979
987
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
980
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
988
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
981
989
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
982
990
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
983
991
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1147,6 +1155,7 @@
|
|
|
1147
1155
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1148
1156
|
--ghost-space-inset-lg: 1.25rem;
|
|
1149
1157
|
--ghost-space-inset-md: 1rem;
|
|
1158
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1150
1159
|
--ghost-space-inset-sm: 0.75rem;
|
|
1151
1160
|
--ghost-space-inset-xs: 0.5rem;
|
|
1152
1161
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1218,11 +1227,11 @@
|
|
|
1218
1227
|
|
|
1219
1228
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])) :where(*) {
|
|
1220
1229
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1221
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1230
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1222
1231
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1223
1232
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1224
1233
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1225
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1234
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1226
1235
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1227
1236
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1228
1237
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1393,6 +1402,7 @@
|
|
|
1393
1402
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1394
1403
|
--ghost-space-inset-lg: 1.25rem;
|
|
1395
1404
|
--ghost-space-inset-md: 1rem;
|
|
1405
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1396
1406
|
--ghost-space-inset-sm: 0.75rem;
|
|
1397
1407
|
--ghost-space-inset-xs: 0.5rem;
|
|
1398
1408
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1464,11 +1474,11 @@
|
|
|
1464
1474
|
|
|
1465
1475
|
:where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])), :where(:where(.ghost-theme:not([data-ghost-theme]), [data-ghost-theme='default']):not([data-ghost-mode])) :where(*) {
|
|
1466
1476
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1467
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1477
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1468
1478
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1469
1479
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1470
1480
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1471
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1481
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1472
1482
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1473
1483
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1474
1484
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1642,7 +1652,7 @@
|
|
|
1642
1652
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1643
1653
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1644
1654
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1645
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1655
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1646
1656
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1647
1657
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1648
1658
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1666,7 +1676,7 @@
|
|
|
1666
1676
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1667
1677
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1668
1678
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1669
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1679
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1670
1680
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1671
1681
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1672
1682
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
@@ -3481,15 +3491,50 @@
|
|
|
3481
3491
|
}
|
|
3482
3492
|
}
|
|
3483
3493
|
}
|
|
3494
|
+
/*
|
|
3495
|
+
* Themed GhostCheckboxGroup: fieldset reset and vertical stack gap from
|
|
3496
|
+
* semantic tokens. Targets only the group root and its direct legend child.
|
|
3497
|
+
*/
|
|
3498
|
+
@layer ghostvue-theme {
|
|
3499
|
+
:where(
|
|
3500
|
+
.ghost-theme .ghost-checkbox-group,
|
|
3501
|
+
.ghost-themed-scope .ghost-checkbox-group
|
|
3502
|
+
) {
|
|
3503
|
+
border: none;
|
|
3504
|
+
display: flex;
|
|
3505
|
+
flex-direction: column;
|
|
3506
|
+
gap: var(--ghost-space-stack-sm);
|
|
3507
|
+
margin: 0;
|
|
3508
|
+
min-inline-size: 0;
|
|
3509
|
+
padding: 0;
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
:where(
|
|
3513
|
+
.ghost-theme .ghost-checkbox-group > legend,
|
|
3514
|
+
.ghost-themed-scope .ghost-checkbox-group > legend
|
|
3515
|
+
) {
|
|
3516
|
+
color: var(--ghost-text-default);
|
|
3517
|
+
font-size: var(--ghost-type-size-md);
|
|
3518
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
3519
|
+
line-height: var(--ghost-type-line-tight);
|
|
3520
|
+
margin-block-end: var(--ghost-space-stack-sm);
|
|
3521
|
+
padding: 0;
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3484
3524
|
/*
|
|
3485
3525
|
* Themed GhostDialog overlay and surface. Visual values come from semantic
|
|
3486
|
-
* --ghost-* tokens with no component-specific tokens
|
|
3526
|
+
* --ghost-* tokens with no component-specific tokens.
|
|
3527
|
+
*
|
|
3528
|
+
* Geometry and forced-colors paint match the part classes without
|
|
3529
|
+
* [data-state='open'], so the exiting surface (data-state="closed", kept
|
|
3530
|
+
* mounted by useGhostPresence) never loses position, centering, or system
|
|
3531
|
+
* colors mid-fade. Exits run faster than entries (motion.md).
|
|
3487
3532
|
*/
|
|
3488
3533
|
@layer ghostvue-theme {
|
|
3489
3534
|
:where(
|
|
3490
|
-
.ghost-theme .ghost-dialog-overlay
|
|
3491
|
-
.ghost-themed-scope .ghost-dialog-overlay
|
|
3492
|
-
.ghost-dialog-overlay[data-themed]
|
|
3535
|
+
.ghost-theme .ghost-dialog-overlay,
|
|
3536
|
+
.ghost-themed-scope .ghost-dialog-overlay,
|
|
3537
|
+
.ghost-dialog-overlay[data-themed]
|
|
3493
3538
|
) {
|
|
3494
3539
|
background-color: var(--ghost-scrim);
|
|
3495
3540
|
inset: 0;
|
|
@@ -3498,9 +3543,9 @@
|
|
|
3498
3543
|
}
|
|
3499
3544
|
|
|
3500
3545
|
:where(
|
|
3501
|
-
.ghost-theme .ghost-dialog-content
|
|
3502
|
-
.ghost-themed-scope .ghost-dialog-content
|
|
3503
|
-
.ghost-dialog-content[data-themed]
|
|
3546
|
+
.ghost-theme .ghost-dialog-content,
|
|
3547
|
+
.ghost-themed-scope .ghost-dialog-content,
|
|
3548
|
+
.ghost-dialog-content[data-themed]
|
|
3504
3549
|
) {
|
|
3505
3550
|
background-color: var(--ghost-elevation-4-bg);
|
|
3506
3551
|
border: var(--ghost-border-hairline-width) solid
|
|
@@ -3600,11 +3645,64 @@
|
|
|
3600
3645
|
}
|
|
3601
3646
|
}
|
|
3602
3647
|
|
|
3648
|
+
/* Exit: reduced motion keeps only a short opacity fade (no travel). */
|
|
3649
|
+
:where(
|
|
3650
|
+
.ghost-theme .ghost-dialog-content[data-state='closed'],
|
|
3651
|
+
.ghost-themed-scope .ghost-dialog-content[data-state='closed'],
|
|
3652
|
+
.ghost-dialog-content[data-themed][data-state='closed']
|
|
3653
|
+
) {
|
|
3654
|
+
opacity: 0;
|
|
3655
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
3656
|
+
var(--ghost-motion-easing-standard);
|
|
3657
|
+
|
|
3658
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
3659
|
+
transition:
|
|
3660
|
+
opacity var(--ghost-motion-exit-duration)
|
|
3661
|
+
var(--ghost-motion-exit-easing),
|
|
3662
|
+
translate var(--ghost-motion-exit-duration)
|
|
3663
|
+
var(--ghost-motion-exit-easing);
|
|
3664
|
+
translate: 0 calc(var(--ghost-motion-translate) / 2);
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
:where(
|
|
3669
|
+
.ghost-theme .ghost-dialog-overlay[data-state='open'],
|
|
3670
|
+
.ghost-themed-scope .ghost-dialog-overlay[data-state='open'],
|
|
3671
|
+
.ghost-dialog-overlay[data-themed][data-state='open']
|
|
3672
|
+
) {
|
|
3673
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
3674
|
+
var(--ghost-motion-easing-standard);
|
|
3675
|
+
|
|
3676
|
+
@starting-style {
|
|
3677
|
+
opacity: 0;
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
3681
|
+
transition: opacity var(--ghost-motion-duration-fast)
|
|
3682
|
+
var(--ghost-motion-enter-easing);
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
:where(
|
|
3687
|
+
.ghost-theme .ghost-dialog-overlay[data-state='closed'],
|
|
3688
|
+
.ghost-themed-scope .ghost-dialog-overlay[data-state='closed'],
|
|
3689
|
+
.ghost-dialog-overlay[data-themed][data-state='closed']
|
|
3690
|
+
) {
|
|
3691
|
+
opacity: 0;
|
|
3692
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
3693
|
+
var(--ghost-motion-easing-standard);
|
|
3694
|
+
|
|
3695
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
3696
|
+
transition: opacity var(--ghost-motion-exit-duration)
|
|
3697
|
+
var(--ghost-motion-exit-easing);
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3603
3701
|
@media (forced-colors: active) {
|
|
3604
3702
|
:where(
|
|
3605
|
-
.ghost-theme .ghost-dialog-content
|
|
3606
|
-
.ghost-themed-scope .ghost-dialog-content
|
|
3607
|
-
.ghost-dialog-content[data-themed]
|
|
3703
|
+
.ghost-theme .ghost-dialog-content,
|
|
3704
|
+
.ghost-themed-scope .ghost-dialog-content,
|
|
3705
|
+
.ghost-dialog-content[data-themed]
|
|
3608
3706
|
) {
|
|
3609
3707
|
background-color: Canvas;
|
|
3610
3708
|
border-color: CanvasText;
|
|
@@ -3623,14 +3721,14 @@
|
|
|
3623
3721
|
}
|
|
3624
3722
|
}
|
|
3625
3723
|
/*
|
|
3626
|
-
* Themed
|
|
3627
|
-
*
|
|
3724
|
+
* Themed dropdown and submenu surfaces use elevation and control tokens.
|
|
3725
|
+
* Each surface styles its own items and the immediate groups it contains.
|
|
3628
3726
|
*/
|
|
3629
3727
|
@layer ghostvue-theme {
|
|
3630
3728
|
:where(
|
|
3631
|
-
.ghost-theme .ghost-
|
|
3632
|
-
|
|
3633
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3729
|
+
:is(.ghost-theme, .ghost-themed-scope)
|
|
3730
|
+
:is(.ghost-dropdown-menu-content, [data-part='sub-content']),
|
|
3731
|
+
:is(.ghost-dropdown-menu-content, [data-part='sub-content'])[data-themed]
|
|
3634
3732
|
) {
|
|
3635
3733
|
background-color: var(--ghost-elevation-3-bg);
|
|
3636
3734
|
border: var(--ghost-border-hairline-width) solid
|
|
@@ -3648,210 +3746,116 @@
|
|
|
3648
3746
|
min-inline-size: max-content;
|
|
3649
3747
|
padding: var(--ghost-space-inset-2xs);
|
|
3650
3748
|
z-index: 50;
|
|
3651
|
-
}
|
|
3652
3749
|
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
3662
|
-
user-select: none;
|
|
3663
|
-
}
|
|
3750
|
+
& > :where([data-part='label']),
|
|
3751
|
+
& > :where([role='group']) > :where([data-part='label']) {
|
|
3752
|
+
color: var(--ghost-text-muted);
|
|
3753
|
+
font-size: var(--ghost-type-size-sm);
|
|
3754
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
3755
|
+
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
3756
|
+
user-select: none;
|
|
3757
|
+
}
|
|
3664
3758
|
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
var(--ghost-
|
|
3694
|
-
|
|
3695
|
-
|
|
3759
|
+
&
|
|
3760
|
+
> :where(
|
|
3761
|
+
[data-part='item'],
|
|
3762
|
+
[data-part='checkbox-item'],
|
|
3763
|
+
[data-part='radio-item'],
|
|
3764
|
+
[data-part='sub-trigger']
|
|
3765
|
+
),
|
|
3766
|
+
&
|
|
3767
|
+
> :where([role='group'])
|
|
3768
|
+
> :where(
|
|
3769
|
+
[data-part='item'],
|
|
3770
|
+
[data-part='checkbox-item'],
|
|
3771
|
+
[data-part='radio-item'],
|
|
3772
|
+
[data-part='sub-trigger']
|
|
3773
|
+
) {
|
|
3774
|
+
align-items: center;
|
|
3775
|
+
border: var(--ghost-border-hairline-width) solid transparent;
|
|
3776
|
+
border-radius: var(--ghost-radius-sm);
|
|
3777
|
+
box-sizing: border-box;
|
|
3778
|
+
color: var(--ghost-surface-fg);
|
|
3779
|
+
cursor: default;
|
|
3780
|
+
display: flex;
|
|
3781
|
+
font: inherit;
|
|
3782
|
+
font-size: var(--ghost-control-size-sm-font);
|
|
3783
|
+
gap: var(--ghost-space-gap-sm);
|
|
3784
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
3785
|
+
outline: none;
|
|
3786
|
+
padding-block: var(--ghost-control-size-sm-padding-block);
|
|
3787
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
3788
|
+
transition: background-color var(--ghost-motion-duration-fast)
|
|
3789
|
+
var(--ghost-motion-easing-standard);
|
|
3790
|
+
user-select: none;
|
|
3696
3791
|
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
.ghost-theme .ghost-dropdown-menu-content [data-part='checkbox-item']:hover,
|
|
3702
|
-
.ghost-themed-scope
|
|
3703
|
-
.ghost-dropdown-menu-content
|
|
3704
|
-
[data-part='checkbox-item']:hover,
|
|
3705
|
-
.ghost-dropdown-menu-content[data-themed] [data-part='checkbox-item']:hover,
|
|
3706
|
-
.ghost-theme .ghost-dropdown-menu-content [data-part='radio-item']:hover,
|
|
3707
|
-
.ghost-themed-scope
|
|
3708
|
-
.ghost-dropdown-menu-content
|
|
3709
|
-
[data-part='radio-item']:hover,
|
|
3710
|
-
.ghost-dropdown-menu-content[data-themed] [data-part='radio-item']:hover
|
|
3711
|
-
) {
|
|
3712
|
-
background-color: var(--ghost-elevation-2-bg);
|
|
3713
|
-
}
|
|
3792
|
+
&:where([data-part='sub-trigger']) {
|
|
3793
|
+
background-color: transparent;
|
|
3794
|
+
text-align: start;
|
|
3795
|
+
}
|
|
3714
3796
|
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
.ghost-dropdown-menu-content
|
|
3719
|
-
[data-part='item']:focus-visible,
|
|
3720
|
-
.ghost-dropdown-menu-content[data-themed] [data-part='item']:focus-visible,
|
|
3721
|
-
.ghost-theme
|
|
3722
|
-
.ghost-dropdown-menu-content
|
|
3723
|
-
[data-part='checkbox-item']:focus-visible,
|
|
3724
|
-
.ghost-themed-scope
|
|
3725
|
-
.ghost-dropdown-menu-content
|
|
3726
|
-
[data-part='checkbox-item']:focus-visible,
|
|
3727
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3728
|
-
[data-part='checkbox-item']:focus-visible,
|
|
3729
|
-
.ghost-theme
|
|
3730
|
-
.ghost-dropdown-menu-content
|
|
3731
|
-
[data-part='radio-item']:focus-visible,
|
|
3732
|
-
.ghost-themed-scope
|
|
3733
|
-
.ghost-dropdown-menu-content
|
|
3734
|
-
[data-part='radio-item']:focus-visible,
|
|
3735
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3736
|
-
[data-part='radio-item']:focus-visible
|
|
3737
|
-
) {
|
|
3738
|
-
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
3739
|
-
outline-offset: var(--ghost-focus-ring-offset);
|
|
3740
|
-
}
|
|
3797
|
+
&:where(:hover, [data-part='sub-trigger'][data-state='open']) {
|
|
3798
|
+
background-color: var(--ghost-elevation-2-bg);
|
|
3799
|
+
}
|
|
3741
3800
|
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
[data-part='item'][data-disabled],
|
|
3747
|
-
.ghost-dropdown-menu-content[data-themed] [data-part='item'][data-disabled],
|
|
3748
|
-
.ghost-theme
|
|
3749
|
-
.ghost-dropdown-menu-content
|
|
3750
|
-
[data-part='checkbox-item'][data-disabled],
|
|
3751
|
-
.ghost-themed-scope
|
|
3752
|
-
.ghost-dropdown-menu-content
|
|
3753
|
-
[data-part='checkbox-item'][data-disabled],
|
|
3754
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3755
|
-
[data-part='checkbox-item'][data-disabled],
|
|
3756
|
-
.ghost-theme
|
|
3757
|
-
.ghost-dropdown-menu-content
|
|
3758
|
-
[data-part='radio-item'][data-disabled],
|
|
3759
|
-
.ghost-themed-scope
|
|
3760
|
-
.ghost-dropdown-menu-content
|
|
3761
|
-
[data-part='radio-item'][data-disabled],
|
|
3762
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3763
|
-
[data-part='radio-item'][data-disabled]
|
|
3764
|
-
) {
|
|
3765
|
-
color: var(--ghost-text-muted);
|
|
3766
|
-
cursor: not-allowed;
|
|
3767
|
-
opacity: var(--ghost-action-disabled-opacity);
|
|
3768
|
-
}
|
|
3801
|
+
&:where(:focus-visible) {
|
|
3802
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
3803
|
+
var(--ghost-focus-ring-color);
|
|
3804
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
3769
3805
|
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
) {
|
|
3775
|
-
align-self: stretch;
|
|
3776
|
-
background-color: var(--ghost-border-default);
|
|
3777
|
-
block-size: var(--ghost-border-hairline-width);
|
|
3778
|
-
border: none;
|
|
3779
|
-
margin-block: var(--ghost-space-gap-xs);
|
|
3780
|
-
padding: 0;
|
|
3781
|
-
}
|
|
3806
|
+
@media (forced-colors: active) {
|
|
3807
|
+
outline-color: Highlight;
|
|
3808
|
+
}
|
|
3809
|
+
}
|
|
3782
3810
|
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
var(--ghost-motion-easing-standard);
|
|
3811
|
+
&:where([data-disabled]) {
|
|
3812
|
+
color: var(--ghost-text-muted);
|
|
3813
|
+
cursor: not-allowed;
|
|
3814
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3790
3817
|
|
|
3791
|
-
|
|
3792
|
-
|
|
3818
|
+
& > :where([data-part='separator']),
|
|
3819
|
+
& > :where([role='group']) > :where([data-part='separator']) {
|
|
3820
|
+
align-self: stretch;
|
|
3821
|
+
background-color: var(--ghost-border-default);
|
|
3822
|
+
block-size: var(--ghost-border-hairline-width);
|
|
3823
|
+
border: none;
|
|
3824
|
+
margin-block: var(--ghost-space-gap-xs);
|
|
3825
|
+
padding: 0;
|
|
3826
|
+
|
|
3827
|
+
@media (forced-colors: active) {
|
|
3828
|
+
background-color: CanvasText;
|
|
3829
|
+
}
|
|
3793
3830
|
}
|
|
3794
3831
|
|
|
3795
|
-
|
|
3796
|
-
transition:
|
|
3797
|
-
|
|
3798
|
-
var(--ghost-motion-enter-easing),
|
|
3799
|
-
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
3832
|
+
&:where([data-state='open']) {
|
|
3833
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
3834
|
+
var(--ghost-motion-easing-standard);
|
|
3800
3835
|
|
|
3801
3836
|
@starting-style {
|
|
3802
|
-
|
|
3837
|
+
opacity: 0;
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
3841
|
+
transition:
|
|
3842
|
+
opacity var(--ghost-motion-duration-fast)
|
|
3843
|
+
var(--ghost-motion-enter-easing),
|
|
3844
|
+
scale var(--ghost-motion-duration-fast)
|
|
3845
|
+
var(--ghost-motion-enter-easing);
|
|
3846
|
+
|
|
3847
|
+
@starting-style {
|
|
3848
|
+
scale: 0.98;
|
|
3849
|
+
}
|
|
3803
3850
|
}
|
|
3804
3851
|
}
|
|
3805
|
-
}
|
|
3806
3852
|
|
|
3807
|
-
|
|
3808
|
-
:where(
|
|
3809
|
-
.ghost-theme .ghost-dropdown-menu-content,
|
|
3810
|
-
.ghost-themed-scope .ghost-dropdown-menu-content,
|
|
3811
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3812
|
-
) {
|
|
3853
|
+
@media (forced-colors: active) {
|
|
3813
3854
|
background-color: Canvas;
|
|
3814
3855
|
border-color: CanvasText;
|
|
3815
3856
|
box-shadow: none;
|
|
3816
3857
|
color: CanvasText;
|
|
3817
3858
|
}
|
|
3818
|
-
|
|
3819
|
-
:where(
|
|
3820
|
-
.ghost-theme
|
|
3821
|
-
.ghost-dropdown-menu-content
|
|
3822
|
-
[data-part='item']:focus-visible,
|
|
3823
|
-
.ghost-themed-scope
|
|
3824
|
-
.ghost-dropdown-menu-content
|
|
3825
|
-
[data-part='item']:focus-visible,
|
|
3826
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3827
|
-
[data-part='item']:focus-visible,
|
|
3828
|
-
.ghost-theme
|
|
3829
|
-
.ghost-dropdown-menu-content
|
|
3830
|
-
[data-part='checkbox-item']:focus-visible,
|
|
3831
|
-
.ghost-themed-scope
|
|
3832
|
-
.ghost-dropdown-menu-content
|
|
3833
|
-
[data-part='checkbox-item']:focus-visible,
|
|
3834
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3835
|
-
[data-part='checkbox-item']:focus-visible,
|
|
3836
|
-
.ghost-theme
|
|
3837
|
-
.ghost-dropdown-menu-content
|
|
3838
|
-
[data-part='radio-item']:focus-visible,
|
|
3839
|
-
.ghost-themed-scope
|
|
3840
|
-
.ghost-dropdown-menu-content
|
|
3841
|
-
[data-part='radio-item']:focus-visible,
|
|
3842
|
-
.ghost-dropdown-menu-content[data-themed]
|
|
3843
|
-
[data-part='radio-item']:focus-visible
|
|
3844
|
-
) {
|
|
3845
|
-
outline-color: Highlight;
|
|
3846
|
-
}
|
|
3847
|
-
|
|
3848
|
-
:where(
|
|
3849
|
-
.ghost-theme .ghost-dropdown-menu-content [data-part='separator'],
|
|
3850
|
-
.ghost-themed-scope .ghost-dropdown-menu-content [data-part='separator'],
|
|
3851
|
-
.ghost-dropdown-menu-content[data-themed] [data-part='separator']
|
|
3852
|
-
) {
|
|
3853
|
-
background-color: CanvasText;
|
|
3854
|
-
}
|
|
3855
3859
|
}
|
|
3856
3860
|
}
|
|
3857
3861
|
/*
|
|
@@ -4534,6 +4538,25 @@
|
|
|
4534
4538
|
}
|
|
4535
4539
|
}
|
|
4536
4540
|
|
|
4541
|
+
/* Exit: reduced motion keeps scale at 1 and only fades. */
|
|
4542
|
+
:where(
|
|
4543
|
+
.ghost-theme .ghost-popover-content[data-state='closed'],
|
|
4544
|
+
.ghost-themed-scope .ghost-popover-content[data-state='closed'],
|
|
4545
|
+
.ghost-popover-content[data-themed][data-state='closed']
|
|
4546
|
+
) {
|
|
4547
|
+
opacity: 0;
|
|
4548
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
4549
|
+
var(--ghost-motion-easing-standard);
|
|
4550
|
+
|
|
4551
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
4552
|
+
scale: 0.98;
|
|
4553
|
+
transition:
|
|
4554
|
+
opacity var(--ghost-motion-exit-duration)
|
|
4555
|
+
var(--ghost-motion-exit-easing),
|
|
4556
|
+
scale var(--ghost-motion-exit-duration) var(--ghost-motion-exit-easing);
|
|
4557
|
+
}
|
|
4558
|
+
}
|
|
4559
|
+
|
|
4537
4560
|
@media (forced-colors: active) {
|
|
4538
4561
|
:where(
|
|
4539
4562
|
.ghost-theme .ghost-popover-content,
|
|
@@ -4582,9 +4605,14 @@
|
|
|
4582
4605
|
}
|
|
4583
4606
|
|
|
4584
4607
|
:where(
|
|
4585
|
-
.ghost-theme .ghost-progress [data-part='indicator'],
|
|
4586
|
-
.ghost-themed-scope .ghost-progress [data-part='indicator']
|
|
4608
|
+
.ghost-theme .ghost-progress > [data-part='indicator'],
|
|
4609
|
+
.ghost-themed-scope .ghost-progress > [data-part='indicator']
|
|
4587
4610
|
) {
|
|
4611
|
+
--_ghost-progress-update-baseline: var(
|
|
4612
|
+
--_ghost-progress-intensity-baseline,
|
|
4613
|
+
1
|
|
4614
|
+
);
|
|
4615
|
+
|
|
4588
4616
|
background-color: var(--_ghost-progress-fill);
|
|
4589
4617
|
block-size: 100%;
|
|
4590
4618
|
border-radius: inherit;
|
|
@@ -4718,8 +4746,9 @@
|
|
|
4718
4746
|
}
|
|
4719
4747
|
/*
|
|
4720
4748
|
* Themed GhostScrollArea. Native scrolling only; no custom scrollbar parts.
|
|
4721
|
-
* Logical sizing is left to the consumer; this recipe adds containment
|
|
4722
|
-
* platform scrollbar affordances under --ghost-*
|
|
4749
|
+
* Logical sizing is left to the consumer; this recipe adds containment,
|
|
4750
|
+
* scrollbar clearance, and platform scrollbar affordances under --ghost-*
|
|
4751
|
+
* tokens.
|
|
4723
4752
|
*/
|
|
4724
4753
|
@layer ghostvue-theme {
|
|
4725
4754
|
:where(.ghost-theme .ghost-scroll-area, .ghost-scroll-area[data-themed]) {
|
|
@@ -4728,6 +4757,46 @@
|
|
|
4728
4757
|
-webkit-overflow-scrolling: touch;
|
|
4729
4758
|
}
|
|
4730
4759
|
|
|
4760
|
+
/*
|
|
4761
|
+
* Scrollbar clearance. Overlay scrollbars (macOS, iOS, Android, Chromium
|
|
4762
|
+
* overlay mode) draw over the scrollport and ignore scrollbar-gutter, so
|
|
4763
|
+
* content needs its own room on the edge where each enabled axis's
|
|
4764
|
+
* scrollbar sits: inline-end for vertical scrolling, block-end for
|
|
4765
|
+
* horizontal scrolling. Keyed on data-orientation rather than
|
|
4766
|
+
* data-overflow so the padding is present before content overflows and
|
|
4767
|
+
* no layout shift happens when it starts to. Classic scrollbars take their
|
|
4768
|
+
* own track beside this padding, so content clears them too.
|
|
4769
|
+
* Logical properties keep the clearance on the scrollbar side in RTL.
|
|
4770
|
+
*/
|
|
4771
|
+
:where(
|
|
4772
|
+
.ghost-theme
|
|
4773
|
+
.ghost-scroll-area:is(
|
|
4774
|
+
[data-orientation='vertical'],
|
|
4775
|
+
[data-orientation='both']
|
|
4776
|
+
),
|
|
4777
|
+
.ghost-scroll-area[data-themed]:is(
|
|
4778
|
+
[data-orientation='vertical'],
|
|
4779
|
+
[data-orientation='both']
|
|
4780
|
+
)
|
|
4781
|
+
) {
|
|
4782
|
+
padding-inline-end: var(--ghost-space-inset-scrollbar);
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
:where(
|
|
4786
|
+
.ghost-theme
|
|
4787
|
+
.ghost-scroll-area:is(
|
|
4788
|
+
[data-orientation='horizontal'],
|
|
4789
|
+
[data-orientation='both']
|
|
4790
|
+
),
|
|
4791
|
+
.ghost-scroll-area[data-themed]:is(
|
|
4792
|
+
[data-orientation='horizontal'],
|
|
4793
|
+
[data-orientation='both']
|
|
4794
|
+
)
|
|
4795
|
+
) {
|
|
4796
|
+
padding-block-end: var(--ghost-space-inset-scrollbar);
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4799
|
+
/* Classic scrollbars: reserve the track up front when it always shows. */
|
|
4731
4800
|
:where(
|
|
4732
4801
|
.ghost-theme .ghost-scroll-area[data-type='scroll'],
|
|
4733
4802
|
.ghost-scroll-area[data-themed][data-type='scroll']
|
|
@@ -4822,6 +4891,22 @@
|
|
|
4822
4891
|
/*
|
|
4823
4892
|
* Themed GhostSegmentedControl with equal-width segments and a sliding
|
|
4824
4893
|
* indicator positioned from CSS variables (no layout reads).
|
|
4894
|
+
*
|
|
4895
|
+
* The indicator assumes every segment is exactly 1/n of the track, so the
|
|
4896
|
+
* track is a grid of equal `fr` columns rather than a row of `flex: 1 1 0`
|
|
4897
|
+
* items. A shrink-to-fit flex container sizes itself to the *sum* of the
|
|
4898
|
+
* labels and then splits that sum evenly, leaving too little room for the
|
|
4899
|
+
* longest labels. Grid resolves `1fr` from the widest label when the control
|
|
4900
|
+
* sizes to content, so every segment fits its label and matches the indicator.
|
|
4901
|
+
*
|
|
4902
|
+
* Supported sizing: the default inline grid sizes to the widest label. To span
|
|
4903
|
+
* a container, set `display: grid` (or a width) on the root. Consumers that
|
|
4904
|
+
* override the root to `display: flex` keep equal segments through the items'
|
|
4905
|
+
* `flex: 1 1 0` fallback, which grid layout ignores. The fallback works when
|
|
4906
|
+
* the flex root fills its container or has an explicit width. Vertical flex
|
|
4907
|
+
* roots keep equal rows only while labels share one height: a column flex
|
|
4908
|
+
* root has no definite height to split, and `min-height: 0` would collapse
|
|
4909
|
+
* auto-height roots, so vertical wrapping labels need the default grid.
|
|
4825
4910
|
*/
|
|
4826
4911
|
@layer ghostvue-theme {
|
|
4827
4912
|
:where(
|
|
@@ -4830,7 +4915,14 @@
|
|
|
4830
4915
|
.ghost-segmented-control[data-themed]
|
|
4831
4916
|
) {
|
|
4832
4917
|
box-sizing: border-box;
|
|
4833
|
-
display: inline-
|
|
4918
|
+
display: inline-grid;
|
|
4919
|
+
grid-auto-flow: column;
|
|
4920
|
+
/*
|
|
4921
|
+
* `minmax(0, 1fr)` keeps the columns equal even when a consumer constrains
|
|
4922
|
+
* the control below its content width; a bare `1fr` would let one track
|
|
4923
|
+
* grow to its min-content width and break the indicator's 1/n geometry.
|
|
4924
|
+
*/
|
|
4925
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
4834
4926
|
position: relative;
|
|
4835
4927
|
font-family: var(--ghost-type-family-sans);
|
|
4836
4928
|
font-feature-settings: var(--ghost-type-feature-default);
|
|
@@ -4848,8 +4940,14 @@
|
|
|
4848
4940
|
.ghost-themed-scope .ghost-segmented-control[aria-orientation='vertical'],
|
|
4849
4941
|
.ghost-segmented-control[data-themed][aria-orientation='vertical']
|
|
4850
4942
|
) {
|
|
4943
|
+
grid-auto-flow: row;
|
|
4944
|
+
grid-auto-columns: auto;
|
|
4945
|
+
/*
|
|
4946
|
+
* Flex fallback axis for roots overridden to `display: flex`. Rows follow
|
|
4947
|
+
* label heights there (no `min-height: 0`; see the header comment).
|
|
4948
|
+
*/
|
|
4851
4949
|
flex-direction: column;
|
|
4852
|
-
|
|
4950
|
+
grid-auto-rows: minmax(0, 1fr);
|
|
4853
4951
|
width: max-content;
|
|
4854
4952
|
}
|
|
4855
4953
|
|
|
@@ -4935,6 +5033,11 @@
|
|
|
4935
5033
|
) {
|
|
4936
5034
|
position: relative;
|
|
4937
5035
|
z-index: 1;
|
|
5036
|
+
/*
|
|
5037
|
+
* Ignored in the default grid track. Kept as the equal-width fallback for
|
|
5038
|
+
* roots overridden to `display: flex`; `min-width: 0` stops a long label's
|
|
5039
|
+
* min-content size from widening one segment past its 1/n share.
|
|
5040
|
+
*/
|
|
4938
5041
|
flex: 1 1 0;
|
|
4939
5042
|
min-width: 0;
|
|
4940
5043
|
background: transparent;
|
|
@@ -4944,6 +5047,11 @@
|
|
|
4944
5047
|
cursor: pointer;
|
|
4945
5048
|
font: inherit;
|
|
4946
5049
|
padding: var(--ghost-space-inset-sm) var(--ghost-space-inset-md);
|
|
5050
|
+
/* Buttons center by default; non-button `as` hosts should match. */
|
|
5051
|
+
text-align: center;
|
|
5052
|
+
/* Wrap labels within constrained tracks so they stay over the indicator. */
|
|
5053
|
+
white-space: normal;
|
|
5054
|
+
overflow-wrap: anywhere;
|
|
4947
5055
|
}
|
|
4948
5056
|
|
|
4949
5057
|
:where(
|
|
@@ -4960,7 +5068,14 @@
|
|
|
4960
5068
|
.ghost-segmented-control-item[data-themed]:focus-visible
|
|
4961
5069
|
) {
|
|
4962
5070
|
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
4963
|
-
|
|
5071
|
+
/*
|
|
5072
|
+
* Inset ring: segments sit only a few pixels inside the track, so the
|
|
5073
|
+
* usual outward offset doubled up with the indicator's border and spilled
|
|
5074
|
+
* past the control's edge. Drawn over the segment's own edge, the ring
|
|
5075
|
+
* replaces the indicator border instead of stacking on it, and stays
|
|
5076
|
+
* inside the control while leaving the label's padding clear.
|
|
5077
|
+
*/
|
|
5078
|
+
outline-offset: calc(-1 * var(--ghost-focus-ring-width));
|
|
4964
5079
|
}
|
|
4965
5080
|
|
|
4966
5081
|
:where(
|
|
@@ -4995,6 +5110,19 @@
|
|
|
4995
5110
|
) {
|
|
4996
5111
|
border-color: Highlight;
|
|
4997
5112
|
}
|
|
5113
|
+
|
|
5114
|
+
/*
|
|
5115
|
+
* Forced colors paint every segment's transparent border as ButtonBorder,
|
|
5116
|
+
* so an inset ring would land on that border and barely change. Move the
|
|
5117
|
+
* ring back outside the segment, where it stays distinguishable.
|
|
5118
|
+
*/
|
|
5119
|
+
:where(
|
|
5120
|
+
.ghost-theme .ghost-segmented-control-item:focus-visible,
|
|
5121
|
+
.ghost-themed-scope .ghost-segmented-control-item:focus-visible,
|
|
5122
|
+
.ghost-segmented-control-item[data-themed]:focus-visible
|
|
5123
|
+
) {
|
|
5124
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
5125
|
+
}
|
|
4998
5126
|
}
|
|
4999
5127
|
}
|
|
5000
5128
|
/*
|
|
@@ -6190,10 +6318,130 @@
|
|
|
6190
6318
|
}
|
|
6191
6319
|
}
|
|
6192
6320
|
}
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6321
|
+
@layer ghostvue-theme {
|
|
6322
|
+
:where(.ghost-tags-input[data-themed]) {
|
|
6323
|
+
background: var(--ghost-surface-bg);
|
|
6324
|
+
border: var(--ghost-border-hairline-width) solid var(--ghost-border-default);
|
|
6325
|
+
border-radius: var(--ghost-action-radius);
|
|
6326
|
+
color: var(--ghost-text-default);
|
|
6327
|
+
display: flex;
|
|
6328
|
+
flex-wrap: wrap;
|
|
6329
|
+
align-items: center;
|
|
6330
|
+
gap: var(--ghost-space-gap-xs);
|
|
6331
|
+
padding: var(--ghost-space-gap-xs);
|
|
6332
|
+
font-family: var(--ghost-type-family-sans);
|
|
6333
|
+
min-inline-size: 0;
|
|
6334
|
+
}
|
|
6335
|
+
|
|
6336
|
+
:where(.ghost-tags-input[data-themed][data-invalid]) {
|
|
6337
|
+
border-color: var(--ghost-border-danger);
|
|
6338
|
+
}
|
|
6339
|
+
|
|
6340
|
+
:where(.ghost-tags-input[data-themed][data-readonly]),
|
|
6341
|
+
:where(.ghost-tags-input[data-themed][data-disabled]),
|
|
6342
|
+
:where(.ghost-tags-input[data-themed]:has(> [data-part='input']:disabled)) {
|
|
6343
|
+
background: var(--ghost-surface-muted-bg);
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
:where(.ghost-tags-input[data-themed]) > :where([data-part='list']) {
|
|
6347
|
+
display: flex;
|
|
6348
|
+
flex-wrap: wrap;
|
|
6349
|
+
gap: var(--ghost-space-gap-xs);
|
|
6350
|
+
margin: 0;
|
|
6351
|
+
padding: 0;
|
|
6352
|
+
list-style: none;
|
|
6353
|
+
min-inline-size: 0;
|
|
6354
|
+
max-inline-size: 100%;
|
|
6355
|
+
}
|
|
6356
|
+
|
|
6357
|
+
:where(.ghost-tags-input[data-themed])
|
|
6358
|
+
> :where([data-part='list'])
|
|
6359
|
+
> :where([data-part='tag']) {
|
|
6360
|
+
display: inline-flex;
|
|
6361
|
+
align-items: center;
|
|
6362
|
+
gap: var(--ghost-space-gap-xs);
|
|
6363
|
+
min-inline-size: 0;
|
|
6364
|
+
max-inline-size: 100%;
|
|
6365
|
+
overflow-wrap: anywhere;
|
|
6366
|
+
padding-inline: var(--ghost-space-inset-xs);
|
|
6367
|
+
border-radius: var(--ghost-action-radius);
|
|
6368
|
+
color: var(--ghost-action-neutral-fg);
|
|
6369
|
+
background: var(--ghost-action-neutral-bg);
|
|
6370
|
+
}
|
|
6371
|
+
|
|
6372
|
+
:where(.ghost-tags-input[data-themed])
|
|
6373
|
+
> :where([data-part='list'])
|
|
6374
|
+
> :where([data-part='tag'])
|
|
6375
|
+
> :where([data-part='remove']) {
|
|
6376
|
+
background: transparent;
|
|
6377
|
+
border: 0;
|
|
6378
|
+
border-radius: var(--ghost-action-radius);
|
|
6379
|
+
color: inherit;
|
|
6380
|
+
cursor: pointer;
|
|
6381
|
+
flex: none;
|
|
6382
|
+
font: inherit;
|
|
6383
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
6384
|
+
min-inline-size: var(--ghost-control-size-sm-min);
|
|
6385
|
+
padding: 0;
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
:where(.ghost-tags-input[data-themed])
|
|
6389
|
+
> :where([data-part='list'])
|
|
6390
|
+
> :where([data-part='tag'])
|
|
6391
|
+
> :where([data-part='remove']:hover:not(:disabled)) {
|
|
6392
|
+
background: var(--ghost-action-neutral-bg-hover);
|
|
6393
|
+
}
|
|
6394
|
+
|
|
6395
|
+
:where(.ghost-tags-input[data-themed])
|
|
6396
|
+
> :where([data-part='list'])
|
|
6397
|
+
> :where([data-part='tag'])
|
|
6398
|
+
> :where([data-part='remove']:disabled) {
|
|
6399
|
+
cursor: not-allowed;
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
:where(.ghost-tags-input[data-themed]) > :where([data-part='input']) {
|
|
6403
|
+
background: transparent;
|
|
6404
|
+
border: 0;
|
|
6405
|
+
border-radius: var(--ghost-action-radius);
|
|
6406
|
+
color: inherit;
|
|
6407
|
+
flex: 1 1 8ch;
|
|
6408
|
+
font: inherit;
|
|
6409
|
+
min-block-size: var(--ghost-control-size-md-min);
|
|
6410
|
+
min-inline-size: 0;
|
|
6411
|
+
padding-inline: var(--ghost-space-inset-xs);
|
|
6412
|
+
}
|
|
6413
|
+
|
|
6414
|
+
:where(.ghost-tags-input[data-themed])
|
|
6415
|
+
> :where([data-part='input']::placeholder) {
|
|
6416
|
+
color: var(--ghost-text-muted);
|
|
6417
|
+
opacity: 1;
|
|
6418
|
+
}
|
|
6419
|
+
|
|
6420
|
+
:where(.ghost-tags-input[data-themed])
|
|
6421
|
+
> :where([data-part='input']:focus-visible),
|
|
6422
|
+
:where(.ghost-tags-input[data-themed])
|
|
6423
|
+
> :where([data-part='list'])
|
|
6424
|
+
> :where([data-part='tag'])
|
|
6425
|
+
> :where([data-part='remove']:focus-visible) {
|
|
6426
|
+
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
6427
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
6428
|
+
}
|
|
6429
|
+
|
|
6430
|
+
@media (forced-colors: active) {
|
|
6431
|
+
:where(.ghost-tags-input[data-themed])
|
|
6432
|
+
> :where([data-part='input']:focus-visible),
|
|
6433
|
+
:where(.ghost-tags-input[data-themed])
|
|
6434
|
+
> :where([data-part='list'])
|
|
6435
|
+
> :where([data-part='tag'])
|
|
6436
|
+
> :where([data-part='remove']:focus-visible) {
|
|
6437
|
+
outline-color: Highlight;
|
|
6438
|
+
}
|
|
6439
|
+
}
|
|
6440
|
+
}
|
|
6441
|
+
/*
|
|
6442
|
+
* Themed GhostTable. Visual values use semantic --ghost-* tokens only.
|
|
6443
|
+
* Horizontal overflow applies to the optional scroll container, never the table.
|
|
6444
|
+
*/
|
|
6197
6445
|
@layer ghostvue-theme {
|
|
6198
6446
|
:where(.ghost-theme .ghost-table, .ghost-themed-scope .ghost-table) {
|
|
6199
6447
|
border-collapse: collapse;
|
|
@@ -6310,7 +6558,8 @@
|
|
|
6310
6558
|
}
|
|
6311
6559
|
}
|
|
6312
6560
|
}
|
|
6313
|
-
/* Direct children keep nested tables out of the outer table's recipe.
|
|
6561
|
+
/* Direct children keep nested tables out of the outer table's recipe.
|
|
6562
|
+
Keep the nesting selector outside :where() so build tools can lower it. */
|
|
6314
6563
|
@layer ghostvue-theme {
|
|
6315
6564
|
:where(.ghost-data-table[data-themed], .ghost-theme .ghost-data-table) {
|
|
6316
6565
|
display: grid;
|
|
@@ -6349,11 +6598,12 @@
|
|
|
6349
6598
|
--_ghost-data-table-hover: var(--ghost-surface-subtle-bg);
|
|
6350
6599
|
--_ghost-data-table-selection-hover: var(--ghost-state-layer-hover);
|
|
6351
6600
|
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6601
|
+
&
|
|
6602
|
+
> :where(
|
|
6603
|
+
.ghost-data-table-header,
|
|
6604
|
+
.ghost-data-table-bulk-actions,
|
|
6605
|
+
.ghost-data-table-footer
|
|
6606
|
+
) {
|
|
6357
6607
|
display: flex;
|
|
6358
6608
|
flex-wrap: wrap;
|
|
6359
6609
|
align-items: center;
|
|
@@ -6361,36 +6611,38 @@
|
|
|
6361
6611
|
min-inline-size: 0;
|
|
6362
6612
|
}
|
|
6363
6613
|
|
|
6364
|
-
|
|
6614
|
+
&
|
|
6615
|
+
> :where(.ghost-data-table-header)
|
|
6616
|
+
> :where([data-part='search'])
|
|
6617
|
+
> :where(label) {
|
|
6365
6618
|
display: grid;
|
|
6366
6619
|
gap: var(--ghost-space-gap-xs);
|
|
6367
6620
|
color: var(--ghost-surface-fg);
|
|
6368
6621
|
font-size: var(--ghost-type-size-sm);
|
|
6369
6622
|
}
|
|
6370
6623
|
|
|
6371
|
-
|
|
6624
|
+
& > :where(.ghost-data-table-header) > :where([data-part='toolbar-end']) {
|
|
6372
6625
|
margin-inline-start: auto;
|
|
6373
6626
|
}
|
|
6374
6627
|
|
|
6375
|
-
|
|
6628
|
+
& > :where(.ghost-data-table-bulk-actions) {
|
|
6376
6629
|
background: var(--ghost-surface-muted-bg);
|
|
6377
6630
|
color: var(--ghost-surface-fg);
|
|
6378
6631
|
}
|
|
6379
6632
|
|
|
6380
6633
|
/* The themed GhostTable adds one scope wrapper around its table or scroll region. */
|
|
6381
|
-
:where(
|
|
6382
|
-
|
|
6634
|
+
& > :where(.ghost-table[data-ghost-data-table]),
|
|
6635
|
+
&
|
|
6636
|
+
> :where(.ghost-table-scroll-container, .ghost-themed-scope)
|
|
6637
|
+
> :where(.ghost-table[data-ghost-data-table]),
|
|
6638
|
+
&
|
|
6639
|
+
> :where(.ghost-themed-scope)
|
|
6640
|
+
> :where(.ghost-table-scroll-container)
|
|
6641
|
+
> :where(.ghost-table[data-ghost-data-table]) {
|
|
6383
6642
|
&
|
|
6384
|
-
> :
|
|
6385
|
-
> .ghost-table
|
|
6386
|
-
|
|
6387
|
-
> .ghost-themed-scope
|
|
6388
|
-
> .ghost-table-scroll-container
|
|
6389
|
-
> .ghost-table[data-ghost-data-table]
|
|
6390
|
-
) {
|
|
6391
|
-
:where(
|
|
6392
|
-
& > .ghost-table-head > .ghost-table-row > .ghost-table-header-cell
|
|
6393
|
-
) {
|
|
6643
|
+
> :where(.ghost-table-head)
|
|
6644
|
+
> :where(.ghost-table-row)
|
|
6645
|
+
> :where(.ghost-table-header-cell) {
|
|
6394
6646
|
position: var(--_ghost-data-table-header-position);
|
|
6395
6647
|
inset-block-start: 0;
|
|
6396
6648
|
z-index: 1;
|
|
@@ -6399,7 +6651,7 @@
|
|
|
6399
6651
|
padding-block: var(--_ghost-data-table-block);
|
|
6400
6652
|
padding-inline: var(--_ghost-data-table-inline);
|
|
6401
6653
|
|
|
6402
|
-
|
|
6654
|
+
& > :where(button) {
|
|
6403
6655
|
appearance: none;
|
|
6404
6656
|
display: inline-flex;
|
|
6405
6657
|
gap: var(--ghost-space-gap-xs);
|
|
@@ -6416,7 +6668,7 @@
|
|
|
6416
6668
|
text-align: start;
|
|
6417
6669
|
}
|
|
6418
6670
|
|
|
6419
|
-
|
|
6671
|
+
& > :where(button:hover:not(:disabled)) {
|
|
6420
6672
|
background: color-mix(
|
|
6421
6673
|
in oklch,
|
|
6422
6674
|
var(--ghost-surface-fg) calc(100% * var(--ghost-state-layer-hover)),
|
|
@@ -6424,23 +6676,23 @@
|
|
|
6424
6676
|
);
|
|
6425
6677
|
}
|
|
6426
6678
|
|
|
6427
|
-
|
|
6679
|
+
& > :where(button:focus-visible) {
|
|
6428
6680
|
outline: var(--ghost-focus-ring-width) solid
|
|
6429
6681
|
var(--ghost-focus-ring-color);
|
|
6430
6682
|
outline-offset: calc(-1 * var(--ghost-focus-ring-width));
|
|
6431
6683
|
}
|
|
6432
6684
|
|
|
6433
|
-
|
|
6685
|
+
& > :where(button:disabled) {
|
|
6434
6686
|
color: var(--ghost-action-disabled-fg);
|
|
6435
6687
|
}
|
|
6436
6688
|
|
|
6437
6689
|
/* A CSS-painted mark adds no text and yields to consumer artwork. */
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6690
|
+
&
|
|
6691
|
+
> :where(
|
|
6692
|
+
button[data-part='sort-button']:not(
|
|
6693
|
+
:has(> [data-part='sort-indicator'])
|
|
6694
|
+
)
|
|
6695
|
+
)::after {
|
|
6444
6696
|
content: '';
|
|
6445
6697
|
flex: none;
|
|
6446
6698
|
inline-size: var(--ghost-action-icon-size);
|
|
@@ -6469,17 +6721,17 @@
|
|
|
6469
6721
|
);
|
|
6470
6722
|
}
|
|
6471
6723
|
|
|
6472
|
-
|
|
6724
|
+
&:where(:not([data-sort])) > :where(button:is(:hover, :focus-visible)) {
|
|
6473
6725
|
--_ghost-data-table-mark: var(--ghost-text-muted);
|
|
6474
6726
|
}
|
|
6475
6727
|
|
|
6476
|
-
|
|
6728
|
+
&:where([data-sort]) {
|
|
6477
6729
|
--_ghost-data-table-mark: var(--ghost-text-primary);
|
|
6478
6730
|
color: var(--ghost-surface-fg);
|
|
6479
6731
|
border-block-end-color: var(--ghost-border-strong);
|
|
6480
6732
|
}
|
|
6481
6733
|
|
|
6482
|
-
|
|
6734
|
+
&:where([data-sort='asc']) {
|
|
6483
6735
|
--_ghost-data-table-chevron: polygon(
|
|
6484
6736
|
50% 22%,
|
|
6485
6737
|
88% 61%,
|
|
@@ -6490,7 +6742,7 @@
|
|
|
6490
6742
|
);
|
|
6491
6743
|
}
|
|
6492
6744
|
|
|
6493
|
-
|
|
6745
|
+
&:where([data-sort='desc']) {
|
|
6494
6746
|
--_ghost-data-table-chevron: polygon(
|
|
6495
6747
|
50% 78%,
|
|
6496
6748
|
12% 39%,
|
|
@@ -6503,68 +6755,59 @@
|
|
|
6503
6755
|
}
|
|
6504
6756
|
|
|
6505
6757
|
/* A static header cue leaves body contrast and row geometry intact. */
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
> .ghost-table-header-cell
|
|
6511
|
-
) {
|
|
6758
|
+
&:where([aria-busy='true'])
|
|
6759
|
+
> :where(.ghost-table-head)
|
|
6760
|
+
> :where(.ghost-table-row)
|
|
6761
|
+
> :where(.ghost-table-header-cell) {
|
|
6512
6762
|
border-block-end-color: var(--ghost-border-primary);
|
|
6513
6763
|
box-shadow: inset 0 calc(-1 * var(--ghost-border-hairline-width))
|
|
6514
6764
|
var(--ghost-border-primary);
|
|
6515
6765
|
}
|
|
6516
6766
|
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
> :is(.ghost-table-cell, .ghost-table-header-cell)
|
|
6522
|
-
) {
|
|
6767
|
+
&
|
|
6768
|
+
> :where(.ghost-table-body)
|
|
6769
|
+
> :where(.ghost-table-row)
|
|
6770
|
+
> :where(.ghost-table-cell, .ghost-table-header-cell) {
|
|
6523
6771
|
padding-block: var(--_ghost-data-table-block);
|
|
6524
6772
|
padding-inline: var(--_ghost-data-table-inline);
|
|
6525
6773
|
}
|
|
6526
6774
|
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
):hover
|
|
6534
|
-
> :is(.ghost-table-cell, .ghost-table-header-cell)
|
|
6535
|
-
) {
|
|
6775
|
+
&
|
|
6776
|
+
> :where(.ghost-table-body)
|
|
6777
|
+
> :where(
|
|
6778
|
+
.ghost-table-row:not([data-selected='true'], [data-detail-row]):hover
|
|
6779
|
+
)
|
|
6780
|
+
> :where(.ghost-table-cell, .ghost-table-header-cell) {
|
|
6536
6781
|
background: var(--_ghost-data-table-hover);
|
|
6537
6782
|
}
|
|
6538
6783
|
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
> .ghost-table-cell
|
|
6544
|
-
) {
|
|
6784
|
+
&
|
|
6785
|
+
> :where(.ghost-table-body)
|
|
6786
|
+
> :where(.ghost-table-row[data-detail-row='true'])
|
|
6787
|
+
> :where(.ghost-table-cell) {
|
|
6545
6788
|
background: var(--ghost-surface-subtle-bg);
|
|
6546
6789
|
}
|
|
6547
6790
|
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
> :is(.ghost-table-cell, .ghost-table-header-cell):first-child
|
|
6553
|
-
) {
|
|
6791
|
+
&
|
|
6792
|
+
> :where(.ghost-table-body)
|
|
6793
|
+
> :where(.ghost-table-row)
|
|
6794
|
+
> :where(:is(.ghost-table-cell, .ghost-table-header-cell):first-child) {
|
|
6554
6795
|
border-inline-start: var(--ghost-focus-ring-width) solid transparent;
|
|
6555
6796
|
}
|
|
6556
6797
|
|
|
6557
|
-
|
|
6798
|
+
&
|
|
6799
|
+
> :where(.ghost-table-body)
|
|
6800
|
+
> :where(.ghost-table-row[data-selected='true']) {
|
|
6558
6801
|
--_ghost-data-table-wash: var(--ghost-state-mix-soft);
|
|
6559
6802
|
|
|
6560
|
-
|
|
6803
|
+
&:where(:hover) {
|
|
6561
6804
|
--_ghost-data-table-wash: calc(
|
|
6562
6805
|
var(--ghost-state-mix-soft) +
|
|
6563
6806
|
var(--_ghost-data-table-selection-hover)
|
|
6564
6807
|
);
|
|
6565
6808
|
}
|
|
6566
6809
|
|
|
6567
|
-
|
|
6810
|
+
& > :where(.ghost-table-cell, .ghost-table-header-cell) {
|
|
6568
6811
|
background: color-mix(
|
|
6569
6812
|
in oklch,
|
|
6570
6813
|
var(--ghost-action-primary-bg)
|
|
@@ -6574,27 +6817,26 @@
|
|
|
6574
6817
|
color: var(--ghost-surface-fg);
|
|
6575
6818
|
}
|
|
6576
6819
|
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6820
|
+
&
|
|
6821
|
+
> :where(
|
|
6822
|
+
:is(.ghost-table-cell, .ghost-table-header-cell):first-child
|
|
6823
|
+
) {
|
|
6580
6824
|
border-inline-start-color: var(--ghost-border-primary);
|
|
6581
6825
|
}
|
|
6582
6826
|
|
|
6583
6827
|
@media (forced-colors: active) {
|
|
6584
|
-
|
|
6828
|
+
& > :where(.ghost-table-cell, .ghost-table-header-cell) {
|
|
6585
6829
|
forced-color-adjust: none;
|
|
6586
6830
|
background: SelectedItem;
|
|
6587
6831
|
color: SelectedItemText;
|
|
6588
6832
|
border-block-end-color: CanvasText;
|
|
6589
6833
|
|
|
6590
|
-
:where(
|
|
6591
|
-
& :is(button, input, select, textarea, a[href], [tabindex])
|
|
6592
|
-
) {
|
|
6834
|
+
& :where(button, input, select, textarea, a[href], [tabindex]) {
|
|
6593
6835
|
forced-color-adjust: auto;
|
|
6594
6836
|
}
|
|
6595
6837
|
|
|
6596
|
-
|
|
6597
|
-
|
|
6838
|
+
&
|
|
6839
|
+
:where(
|
|
6598
6840
|
:is(
|
|
6599
6841
|
button,
|
|
6600
6842
|
input,
|
|
@@ -6603,7 +6845,7 @@
|
|
|
6603
6845
|
a[href],
|
|
6604
6846
|
[tabindex]
|
|
6605
6847
|
):focus-visible
|
|
6606
|
-
|
|
6848
|
+
) {
|
|
6607
6849
|
outline: var(--ghost-focus-ring-width) solid SelectedItemText;
|
|
6608
6850
|
outline-offset: var(--ghost-border-hairline-width);
|
|
6609
6851
|
}
|
|
@@ -6611,85 +6853,95 @@
|
|
|
6611
6853
|
}
|
|
6612
6854
|
}
|
|
6613
6855
|
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6856
|
+
&
|
|
6857
|
+
> :where(.ghost-table-body)
|
|
6858
|
+
> :where(.ghost-table-row)
|
|
6859
|
+
> :where(.ghost-table-cell)
|
|
6860
|
+
> :where([data-part='expand-button']) {
|
|
6861
|
+
appearance: none;
|
|
6862
|
+
display: inline-grid;
|
|
6863
|
+
place-items: center;
|
|
6621
6864
|
min-block-size: var(--ghost-control-size-sm-min);
|
|
6622
6865
|
min-inline-size: var(--ghost-control-size-sm-min);
|
|
6866
|
+
padding: 0;
|
|
6867
|
+
border: var(--ghost-border-hairline-width) solid
|
|
6868
|
+
var(--ghost-border-default);
|
|
6869
|
+
border-radius: var(--ghost-radius-sm);
|
|
6870
|
+
background: var(--ghost-surface-bg);
|
|
6871
|
+
color: var(--ghost-surface-fg);
|
|
6872
|
+
font: inherit;
|
|
6873
|
+
|
|
6874
|
+
&:where(:hover:not(:disabled), [aria-expanded='true']) {
|
|
6875
|
+
background: var(--ghost-surface-muted-bg);
|
|
6876
|
+
}
|
|
6877
|
+
|
|
6878
|
+
&:where(:focus-visible) {
|
|
6879
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
6880
|
+
var(--ghost-focus-ring-color);
|
|
6881
|
+
outline-offset: calc(-1 * var(--ghost-focus-ring-width));
|
|
6882
|
+
}
|
|
6883
|
+
|
|
6884
|
+
&:where(:disabled) {
|
|
6885
|
+
color: var(--ghost-action-disabled-fg);
|
|
6886
|
+
}
|
|
6623
6887
|
}
|
|
6624
6888
|
|
|
6625
6889
|
@media (pointer: coarse) {
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
> :is([data-part='expand-button'], input[type='checkbox'])
|
|
6637
|
-
) {
|
|
6890
|
+
&
|
|
6891
|
+
> :where(.ghost-table-head)
|
|
6892
|
+
> :where(.ghost-table-row)
|
|
6893
|
+
> :where(.ghost-table-header-cell)
|
|
6894
|
+
> :where(button, input[type='checkbox']),
|
|
6895
|
+
&
|
|
6896
|
+
> :where(.ghost-table-body)
|
|
6897
|
+
> :where(.ghost-table-row)
|
|
6898
|
+
> :where(.ghost-table-cell)
|
|
6899
|
+
> :where([data-part='expand-button'], input[type='checkbox']) {
|
|
6638
6900
|
min-block-size: var(--ghost-control-touch-min);
|
|
6639
6901
|
min-inline-size: var(--ghost-control-touch-min);
|
|
6640
6902
|
}
|
|
6641
6903
|
}
|
|
6642
6904
|
|
|
6643
6905
|
@media (forced-colors: active) {
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
> button
|
|
6650
|
-
) {
|
|
6906
|
+
&
|
|
6907
|
+
> :where(.ghost-table-head)
|
|
6908
|
+
> :where(.ghost-table-row)
|
|
6909
|
+
> :where(.ghost-table-header-cell)
|
|
6910
|
+
> :where(button) {
|
|
6651
6911
|
background: ButtonFace;
|
|
6652
6912
|
color: ButtonText;
|
|
6653
6913
|
--_ghost-data-table-mark: ButtonText;
|
|
6654
6914
|
}
|
|
6655
6915
|
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
> button:disabled
|
|
6662
|
-
) {
|
|
6916
|
+
&
|
|
6917
|
+
> :where(.ghost-table-head)
|
|
6918
|
+
> :where(.ghost-table-row)
|
|
6919
|
+
> :where(.ghost-table-header-cell)
|
|
6920
|
+
> :where(button:disabled) {
|
|
6663
6921
|
color: GrayText;
|
|
6664
6922
|
--_ghost-data-table-mark: GrayText;
|
|
6665
6923
|
}
|
|
6666
6924
|
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
> button:focus-visible
|
|
6673
|
-
) {
|
|
6925
|
+
&
|
|
6926
|
+
> :where(.ghost-table-head)
|
|
6927
|
+
> :where(.ghost-table-row)
|
|
6928
|
+
> :where(.ghost-table-header-cell)
|
|
6929
|
+
> :where(button:focus-visible) {
|
|
6674
6930
|
outline-color: Highlight;
|
|
6675
6931
|
}
|
|
6676
6932
|
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
> button[data-part='sort-button']
|
|
6683
|
-
)::after {
|
|
6933
|
+
&
|
|
6934
|
+
> :where(.ghost-table-head)
|
|
6935
|
+
> :where(.ghost-table-row)
|
|
6936
|
+
> :where(.ghost-table-header-cell)
|
|
6937
|
+
> :where(button[data-part='sort-button'])::after {
|
|
6684
6938
|
forced-color-adjust: none;
|
|
6685
6939
|
}
|
|
6686
6940
|
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
> .ghost-table-header-cell
|
|
6692
|
-
) {
|
|
6941
|
+
&:where([aria-busy='true'])
|
|
6942
|
+
> :where(.ghost-table-head)
|
|
6943
|
+
> :where(.ghost-table-row)
|
|
6944
|
+
> :where(.ghost-table-header-cell) {
|
|
6693
6945
|
border-block-end-color: Highlight;
|
|
6694
6946
|
}
|
|
6695
6947
|
}
|
|
@@ -6701,21 +6953,22 @@
|
|
|
6701
6953
|
.ghost-data-table[data-themed][data-variant='card']
|
|
6702
6954
|
> .ghost-data-table-preset[data-themed]
|
|
6703
6955
|
) {
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6956
|
+
&
|
|
6957
|
+
> :where(
|
|
6958
|
+
.ghost-data-table-header,
|
|
6959
|
+
.ghost-data-table-bulk-actions,
|
|
6960
|
+
.ghost-data-table-footer
|
|
6961
|
+
) {
|
|
6709
6962
|
padding-block: var(--ghost-space-inset-sm);
|
|
6710
6963
|
padding-inline: var(--ghost-space-inset-md);
|
|
6711
6964
|
}
|
|
6712
6965
|
|
|
6713
|
-
|
|
6966
|
+
& > :where(.ghost-data-table-header, .ghost-data-table-bulk-actions) {
|
|
6714
6967
|
border-block-end: var(--ghost-border-hairline-width) solid
|
|
6715
6968
|
var(--ghost-border-default);
|
|
6716
6969
|
}
|
|
6717
6970
|
|
|
6718
|
-
|
|
6971
|
+
& > :where(.ghost-data-table-footer) {
|
|
6719
6972
|
border-block-start: var(--ghost-border-hairline-width) solid
|
|
6720
6973
|
var(--ghost-border-default);
|
|
6721
6974
|
}
|
|
@@ -6729,9 +6982,11 @@
|
|
|
6729
6982
|
--_ghost-data-table-block: var(--ghost-space-inset-xs);
|
|
6730
6983
|
--_ghost-data-table-inline: var(--ghost-space-inset-sm);
|
|
6731
6984
|
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6985
|
+
&
|
|
6986
|
+
> :where(.ghost-data-table-header)
|
|
6987
|
+
> :where([data-part='search'])
|
|
6988
|
+
> :where(label)
|
|
6989
|
+
> :where(.ghost-input) {
|
|
6735
6990
|
--_ghost-input-min-size: var(--ghost-control-size-sm-min);
|
|
6736
6991
|
--_ghost-input-padding-block: var(--ghost-control-size-sm-padding-block);
|
|
6737
6992
|
--_ghost-input-padding-inline: var(
|
|
@@ -6864,6 +7119,25 @@
|
|
|
6864
7119
|
}
|
|
6865
7120
|
}
|
|
6866
7121
|
|
|
7122
|
+
/* Exit: reduced motion keeps scale at 1 and only fades. */
|
|
7123
|
+
:where(
|
|
7124
|
+
.ghost-theme .ghost-hover-card-content[data-state='closed'],
|
|
7125
|
+
.ghost-themed-scope .ghost-hover-card-content[data-state='closed'],
|
|
7126
|
+
.ghost-hover-card-content[data-themed][data-state='closed']
|
|
7127
|
+
) {
|
|
7128
|
+
opacity: 0;
|
|
7129
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
7130
|
+
var(--ghost-motion-easing-standard);
|
|
7131
|
+
|
|
7132
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
7133
|
+
scale: 0.98;
|
|
7134
|
+
transition:
|
|
7135
|
+
opacity var(--ghost-motion-exit-duration)
|
|
7136
|
+
var(--ghost-motion-exit-easing),
|
|
7137
|
+
scale var(--ghost-motion-exit-duration) var(--ghost-motion-exit-easing);
|
|
7138
|
+
}
|
|
7139
|
+
}
|
|
7140
|
+
|
|
6867
7141
|
@media (forced-colors: active) {
|
|
6868
7142
|
:where(
|
|
6869
7143
|
.ghost-theme .ghost-hover-card-content,
|
|
@@ -8569,14 +8843,14 @@
|
|
|
8569
8843
|
}
|
|
8570
8844
|
}
|
|
8571
8845
|
/*
|
|
8572
|
-
* Themed
|
|
8573
|
-
*
|
|
8846
|
+
* Themed context-menu and submenu surfaces use elevation and control tokens.
|
|
8847
|
+
* Each surface styles its own items and the immediate groups it contains.
|
|
8574
8848
|
*/
|
|
8575
8849
|
@layer ghostvue-theme {
|
|
8576
8850
|
:where(
|
|
8577
|
-
.ghost-theme .ghost-
|
|
8578
|
-
|
|
8579
|
-
.ghost-context-menu-content[data-themed]
|
|
8851
|
+
:is(.ghost-theme, .ghost-themed-scope)
|
|
8852
|
+
:is(.ghost-context-menu-content, [data-part='sub-content']),
|
|
8853
|
+
:is(.ghost-context-menu-content, [data-part='sub-content'])[data-themed]
|
|
8580
8854
|
) {
|
|
8581
8855
|
background-color: var(--ghost-elevation-3-bg);
|
|
8582
8856
|
border: var(--ghost-border-hairline-width) solid
|
|
@@ -8594,216 +8868,127 @@
|
|
|
8594
8868
|
min-inline-size: max-content;
|
|
8595
8869
|
padding: var(--ghost-space-inset-2xs);
|
|
8596
8870
|
z-index: 50;
|
|
8597
|
-
}
|
|
8598
8871
|
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
8608
|
-
user-select: none;
|
|
8609
|
-
}
|
|
8872
|
+
& > :where([data-part='label']),
|
|
8873
|
+
& > :where([role='group']) > :where([data-part='label']) {
|
|
8874
|
+
color: var(--ghost-text-muted);
|
|
8875
|
+
font-size: var(--ghost-type-size-sm);
|
|
8876
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
8877
|
+
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
8878
|
+
user-select: none;
|
|
8879
|
+
}
|
|
8610
8880
|
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8881
|
+
&
|
|
8882
|
+
> :where(
|
|
8883
|
+
[data-part='item'],
|
|
8884
|
+
[data-part='checkbox-item'],
|
|
8885
|
+
[data-part='radio-item'],
|
|
8886
|
+
[data-part='sub-trigger']
|
|
8887
|
+
),
|
|
8888
|
+
&
|
|
8889
|
+
> :where([role='group'])
|
|
8890
|
+
> :where(
|
|
8891
|
+
[data-part='item'],
|
|
8892
|
+
[data-part='checkbox-item'],
|
|
8893
|
+
[data-part='radio-item'],
|
|
8894
|
+
[data-part='sub-trigger']
|
|
8895
|
+
) {
|
|
8896
|
+
align-items: center;
|
|
8897
|
+
border: var(--ghost-border-hairline-width) solid transparent;
|
|
8898
|
+
border-radius: var(--ghost-radius-sm);
|
|
8899
|
+
box-sizing: border-box;
|
|
8900
|
+
color: var(--ghost-surface-fg);
|
|
8901
|
+
cursor: default;
|
|
8902
|
+
display: flex;
|
|
8903
|
+
font: inherit;
|
|
8904
|
+
font-size: var(--ghost-control-size-sm-font);
|
|
8905
|
+
gap: var(--ghost-space-gap-sm);
|
|
8906
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
8907
|
+
outline: none;
|
|
8908
|
+
padding-block: var(--ghost-control-size-sm-padding-block);
|
|
8909
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
8910
|
+
transition: background-color var(--ghost-motion-duration-fast)
|
|
8911
|
+
var(--ghost-motion-easing-standard);
|
|
8912
|
+
user-select: none;
|
|
8640
8913
|
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
.ghost-theme .ghost-context-menu-content [data-part='checkbox-item']:hover,
|
|
8646
|
-
.ghost-themed-scope
|
|
8647
|
-
.ghost-context-menu-content
|
|
8648
|
-
[data-part='checkbox-item']:hover,
|
|
8649
|
-
.ghost-context-menu-content[data-themed] [data-part='checkbox-item']:hover,
|
|
8650
|
-
.ghost-theme .ghost-context-menu-content [data-part='radio-item']:hover,
|
|
8651
|
-
.ghost-themed-scope
|
|
8652
|
-
.ghost-context-menu-content
|
|
8653
|
-
[data-part='radio-item']:hover,
|
|
8654
|
-
.ghost-context-menu-content[data-themed] [data-part='radio-item']:hover
|
|
8655
|
-
) {
|
|
8656
|
-
background-color: var(--ghost-elevation-2-bg);
|
|
8657
|
-
}
|
|
8914
|
+
&:where([data-part='sub-trigger']) {
|
|
8915
|
+
background-color: transparent;
|
|
8916
|
+
text-align: start;
|
|
8917
|
+
}
|
|
8658
8918
|
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
.ghost-context-menu-content
|
|
8663
|
-
[data-part='item']:focus-visible,
|
|
8664
|
-
.ghost-context-menu-content[data-themed] [data-part='item']:focus-visible,
|
|
8665
|
-
.ghost-theme
|
|
8666
|
-
.ghost-context-menu-content
|
|
8667
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8668
|
-
.ghost-themed-scope
|
|
8669
|
-
.ghost-context-menu-content
|
|
8670
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8671
|
-
.ghost-context-menu-content[data-themed]
|
|
8672
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8673
|
-
.ghost-theme
|
|
8674
|
-
.ghost-context-menu-content
|
|
8675
|
-
[data-part='radio-item']:focus-visible,
|
|
8676
|
-
.ghost-themed-scope
|
|
8677
|
-
.ghost-context-menu-content
|
|
8678
|
-
[data-part='radio-item']:focus-visible,
|
|
8679
|
-
.ghost-context-menu-content[data-themed]
|
|
8680
|
-
[data-part='radio-item']:focus-visible
|
|
8681
|
-
) {
|
|
8682
|
-
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
8683
|
-
outline-offset: var(--ghost-focus-ring-offset);
|
|
8684
|
-
}
|
|
8919
|
+
&:where(:hover, [data-part='sub-trigger'][data-state='open']) {
|
|
8920
|
+
background-color: var(--ghost-elevation-2-bg);
|
|
8921
|
+
}
|
|
8685
8922
|
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
[data-part='item'][data-disabled],
|
|
8691
|
-
.ghost-context-menu-content[data-themed] [data-part='item'][data-disabled],
|
|
8692
|
-
.ghost-theme
|
|
8693
|
-
.ghost-context-menu-content
|
|
8694
|
-
[data-part='checkbox-item'][data-disabled],
|
|
8695
|
-
.ghost-themed-scope
|
|
8696
|
-
.ghost-context-menu-content
|
|
8697
|
-
[data-part='checkbox-item'][data-disabled],
|
|
8698
|
-
.ghost-context-menu-content[data-themed]
|
|
8699
|
-
[data-part='checkbox-item'][data-disabled],
|
|
8700
|
-
.ghost-theme
|
|
8701
|
-
.ghost-context-menu-content
|
|
8702
|
-
[data-part='radio-item'][data-disabled],
|
|
8703
|
-
.ghost-themed-scope
|
|
8704
|
-
.ghost-context-menu-content
|
|
8705
|
-
[data-part='radio-item'][data-disabled],
|
|
8706
|
-
.ghost-context-menu-content[data-themed]
|
|
8707
|
-
[data-part='radio-item'][data-disabled]
|
|
8708
|
-
) {
|
|
8709
|
-
color: var(--ghost-text-muted);
|
|
8710
|
-
cursor: not-allowed;
|
|
8711
|
-
opacity: var(--ghost-action-disabled-opacity);
|
|
8712
|
-
}
|
|
8923
|
+
&:where(:focus-visible) {
|
|
8924
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
8925
|
+
var(--ghost-focus-ring-color);
|
|
8926
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
8713
8927
|
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
) {
|
|
8719
|
-
align-self: stretch;
|
|
8720
|
-
background-color: var(--ghost-border-default);
|
|
8721
|
-
block-size: var(--ghost-border-hairline-width);
|
|
8722
|
-
border: none;
|
|
8723
|
-
margin-block: var(--ghost-space-gap-xs);
|
|
8724
|
-
padding: 0;
|
|
8725
|
-
}
|
|
8928
|
+
@media (forced-colors: active) {
|
|
8929
|
+
outline-color: Highlight;
|
|
8930
|
+
}
|
|
8931
|
+
}
|
|
8726
8932
|
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
var(--ghost-motion-easing-standard);
|
|
8933
|
+
&:where([data-disabled]) {
|
|
8934
|
+
color: var(--ghost-text-muted);
|
|
8935
|
+
cursor: not-allowed;
|
|
8936
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
8937
|
+
}
|
|
8938
|
+
}
|
|
8734
8939
|
|
|
8735
|
-
|
|
8736
|
-
|
|
8940
|
+
& > :where([data-part='separator']),
|
|
8941
|
+
& > :where([role='group']) > :where([data-part='separator']) {
|
|
8942
|
+
align-self: stretch;
|
|
8943
|
+
background-color: var(--ghost-border-default);
|
|
8944
|
+
block-size: var(--ghost-border-hairline-width);
|
|
8945
|
+
border: none;
|
|
8946
|
+
margin-block: var(--ghost-space-gap-xs);
|
|
8947
|
+
padding: 0;
|
|
8948
|
+
|
|
8949
|
+
@media (forced-colors: active) {
|
|
8950
|
+
background-color: CanvasText;
|
|
8951
|
+
}
|
|
8737
8952
|
}
|
|
8738
8953
|
|
|
8739
|
-
|
|
8740
|
-
transition:
|
|
8741
|
-
|
|
8742
|
-
var(--ghost-motion-enter-easing),
|
|
8743
|
-
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
8954
|
+
&:where([data-state='open']) {
|
|
8955
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
8956
|
+
var(--ghost-motion-easing-standard);
|
|
8744
8957
|
|
|
8745
8958
|
@starting-style {
|
|
8746
|
-
|
|
8959
|
+
opacity: 0;
|
|
8960
|
+
}
|
|
8961
|
+
|
|
8962
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
8963
|
+
transition:
|
|
8964
|
+
opacity var(--ghost-motion-duration-fast)
|
|
8965
|
+
var(--ghost-motion-enter-easing),
|
|
8966
|
+
scale var(--ghost-motion-duration-fast)
|
|
8967
|
+
var(--ghost-motion-enter-easing);
|
|
8968
|
+
|
|
8969
|
+
@starting-style {
|
|
8970
|
+
scale: 0.98;
|
|
8971
|
+
}
|
|
8747
8972
|
}
|
|
8748
8973
|
}
|
|
8749
|
-
}
|
|
8750
8974
|
|
|
8751
|
-
|
|
8752
|
-
:where(
|
|
8753
|
-
.ghost-theme .ghost-context-menu-content,
|
|
8754
|
-
.ghost-themed-scope .ghost-context-menu-content,
|
|
8755
|
-
.ghost-context-menu-content[data-themed]
|
|
8756
|
-
) {
|
|
8975
|
+
@media (forced-colors: active) {
|
|
8757
8976
|
background-color: Canvas;
|
|
8758
8977
|
border-color: CanvasText;
|
|
8759
8978
|
box-shadow: none;
|
|
8760
8979
|
color: CanvasText;
|
|
8761
8980
|
}
|
|
8762
|
-
|
|
8763
|
-
:where(
|
|
8764
|
-
.ghost-theme .ghost-context-menu-content [data-part='item']:focus-visible,
|
|
8765
|
-
.ghost-themed-scope
|
|
8766
|
-
.ghost-context-menu-content
|
|
8767
|
-
[data-part='item']:focus-visible,
|
|
8768
|
-
.ghost-context-menu-content[data-themed] [data-part='item']:focus-visible,
|
|
8769
|
-
.ghost-theme
|
|
8770
|
-
.ghost-context-menu-content
|
|
8771
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8772
|
-
.ghost-themed-scope
|
|
8773
|
-
.ghost-context-menu-content
|
|
8774
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8775
|
-
.ghost-context-menu-content[data-themed]
|
|
8776
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8777
|
-
.ghost-theme
|
|
8778
|
-
.ghost-context-menu-content
|
|
8779
|
-
[data-part='radio-item']:focus-visible,
|
|
8780
|
-
.ghost-themed-scope
|
|
8781
|
-
.ghost-context-menu-content
|
|
8782
|
-
[data-part='radio-item']:focus-visible,
|
|
8783
|
-
.ghost-context-menu-content[data-themed]
|
|
8784
|
-
[data-part='radio-item']:focus-visible
|
|
8785
|
-
) {
|
|
8786
|
-
outline-color: Highlight;
|
|
8787
|
-
}
|
|
8788
|
-
|
|
8789
|
-
:where(
|
|
8790
|
-
.ghost-theme .ghost-context-menu-content [data-part='separator'],
|
|
8791
|
-
.ghost-themed-scope .ghost-context-menu-content [data-part='separator'],
|
|
8792
|
-
.ghost-context-menu-content[data-themed] [data-part='separator']
|
|
8793
|
-
) {
|
|
8794
|
-
background-color: CanvasText;
|
|
8795
|
-
}
|
|
8796
8981
|
}
|
|
8797
8982
|
}
|
|
8798
8983
|
/*
|
|
8799
|
-
* Themed
|
|
8800
|
-
*
|
|
8984
|
+
* Themed menubar and submenu surfaces use elevation and control tokens.
|
|
8985
|
+
* Each surface styles its own items and the immediate groups it contains.
|
|
8801
8986
|
*/
|
|
8802
8987
|
@layer ghostvue-theme {
|
|
8803
8988
|
:where(
|
|
8804
|
-
.ghost-theme .ghost-
|
|
8805
|
-
|
|
8806
|
-
.ghost-menubar-content[data-themed]
|
|
8989
|
+
:is(.ghost-theme, .ghost-themed-scope)
|
|
8990
|
+
:is(.ghost-menubar-content, [data-part='sub-content']),
|
|
8991
|
+
:is(.ghost-menubar-content, [data-part='sub-content'])[data-themed]
|
|
8807
8992
|
) {
|
|
8808
8993
|
background-color: var(--ghost-elevation-3-bg);
|
|
8809
8994
|
border: var(--ghost-border-hairline-width) solid
|
|
@@ -8821,194 +9006,116 @@
|
|
|
8821
9006
|
min-inline-size: max-content;
|
|
8822
9007
|
padding: var(--ghost-space-inset-2xs);
|
|
8823
9008
|
z-index: 50;
|
|
8824
|
-
}
|
|
8825
9009
|
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
8835
|
-
user-select: none;
|
|
8836
|
-
}
|
|
9010
|
+
& > :where([data-part='label']),
|
|
9011
|
+
& > :where([role='group']) > :where([data-part='label']) {
|
|
9012
|
+
color: var(--ghost-text-muted);
|
|
9013
|
+
font-size: var(--ghost-type-size-sm);
|
|
9014
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
9015
|
+
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
9016
|
+
user-select: none;
|
|
9017
|
+
}
|
|
8837
9018
|
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
9019
|
+
&
|
|
9020
|
+
> :where(
|
|
9021
|
+
[data-part='item'],
|
|
9022
|
+
[data-part='checkbox-item'],
|
|
9023
|
+
[data-part='radio-item'],
|
|
9024
|
+
[data-part='sub-trigger']
|
|
9025
|
+
),
|
|
9026
|
+
&
|
|
9027
|
+
> :where([role='group'])
|
|
9028
|
+
> :where(
|
|
9029
|
+
[data-part='item'],
|
|
9030
|
+
[data-part='checkbox-item'],
|
|
9031
|
+
[data-part='radio-item'],
|
|
9032
|
+
[data-part='sub-trigger']
|
|
9033
|
+
) {
|
|
9034
|
+
align-items: center;
|
|
9035
|
+
border: var(--ghost-border-hairline-width) solid transparent;
|
|
9036
|
+
border-radius: var(--ghost-radius-sm);
|
|
9037
|
+
box-sizing: border-box;
|
|
9038
|
+
color: var(--ghost-surface-fg);
|
|
9039
|
+
cursor: default;
|
|
9040
|
+
display: flex;
|
|
9041
|
+
font: inherit;
|
|
9042
|
+
font-size: var(--ghost-control-size-sm-font);
|
|
9043
|
+
gap: var(--ghost-space-gap-sm);
|
|
9044
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
9045
|
+
outline: none;
|
|
9046
|
+
padding-block: var(--ghost-control-size-sm-padding-block);
|
|
9047
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
9048
|
+
transition: background-color var(--ghost-motion-duration-fast)
|
|
9049
|
+
var(--ghost-motion-easing-standard);
|
|
9050
|
+
user-select: none;
|
|
8867
9051
|
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
.ghost-theme .ghost-menubar-content [data-part='checkbox-item']:hover,
|
|
8873
|
-
.ghost-themed-scope
|
|
8874
|
-
.ghost-menubar-content
|
|
8875
|
-
[data-part='checkbox-item']:hover,
|
|
8876
|
-
.ghost-menubar-content[data-themed] [data-part='checkbox-item']:hover,
|
|
8877
|
-
.ghost-theme .ghost-menubar-content [data-part='radio-item']:hover,
|
|
8878
|
-
.ghost-themed-scope .ghost-menubar-content [data-part='radio-item']:hover,
|
|
8879
|
-
.ghost-menubar-content[data-themed] [data-part='radio-item']:hover
|
|
8880
|
-
) {
|
|
8881
|
-
background-color: var(--ghost-elevation-2-bg);
|
|
8882
|
-
}
|
|
9052
|
+
&:where([data-part='sub-trigger']) {
|
|
9053
|
+
background-color: transparent;
|
|
9054
|
+
text-align: start;
|
|
9055
|
+
}
|
|
8883
9056
|
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
.ghost-menubar-content[data-themed] [data-part='item']:focus-visible,
|
|
8888
|
-
.ghost-theme
|
|
8889
|
-
.ghost-menubar-content
|
|
8890
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8891
|
-
.ghost-themed-scope
|
|
8892
|
-
.ghost-menubar-content
|
|
8893
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8894
|
-
.ghost-menubar-content[data-themed]
|
|
8895
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8896
|
-
.ghost-theme .ghost-menubar-content [data-part='radio-item']:focus-visible,
|
|
8897
|
-
.ghost-themed-scope
|
|
8898
|
-
.ghost-menubar-content
|
|
8899
|
-
[data-part='radio-item']:focus-visible,
|
|
8900
|
-
.ghost-menubar-content[data-themed] [data-part='radio-item']:focus-visible
|
|
8901
|
-
) {
|
|
8902
|
-
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
8903
|
-
outline-offset: var(--ghost-focus-ring-offset);
|
|
8904
|
-
}
|
|
9057
|
+
&:where(:hover, [data-part='sub-trigger'][data-state='open']) {
|
|
9058
|
+
background-color: var(--ghost-elevation-2-bg);
|
|
9059
|
+
}
|
|
8905
9060
|
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
[data-part='item'][data-disabled],
|
|
8911
|
-
.ghost-menubar-content[data-themed] [data-part='item'][data-disabled],
|
|
8912
|
-
.ghost-theme
|
|
8913
|
-
.ghost-menubar-content
|
|
8914
|
-
[data-part='checkbox-item'][data-disabled],
|
|
8915
|
-
.ghost-themed-scope
|
|
8916
|
-
.ghost-menubar-content
|
|
8917
|
-
[data-part='checkbox-item'][data-disabled],
|
|
8918
|
-
.ghost-menubar-content[data-themed]
|
|
8919
|
-
[data-part='checkbox-item'][data-disabled],
|
|
8920
|
-
.ghost-theme .ghost-menubar-content [data-part='radio-item'][data-disabled],
|
|
8921
|
-
.ghost-themed-scope
|
|
8922
|
-
.ghost-menubar-content
|
|
8923
|
-
[data-part='radio-item'][data-disabled],
|
|
8924
|
-
.ghost-menubar-content[data-themed] [data-part='radio-item'][data-disabled]
|
|
8925
|
-
) {
|
|
8926
|
-
color: var(--ghost-text-muted);
|
|
8927
|
-
cursor: not-allowed;
|
|
8928
|
-
opacity: var(--ghost-action-disabled-opacity);
|
|
8929
|
-
}
|
|
9061
|
+
&:where(:focus-visible) {
|
|
9062
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
9063
|
+
var(--ghost-focus-ring-color);
|
|
9064
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
8930
9065
|
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8935
|
-
) {
|
|
8936
|
-
align-self: stretch;
|
|
8937
|
-
background-color: var(--ghost-border-default);
|
|
8938
|
-
block-size: var(--ghost-border-hairline-width);
|
|
8939
|
-
border: none;
|
|
8940
|
-
margin-block: var(--ghost-space-gap-xs);
|
|
8941
|
-
padding: 0;
|
|
8942
|
-
}
|
|
9066
|
+
@media (forced-colors: active) {
|
|
9067
|
+
outline-color: Highlight;
|
|
9068
|
+
}
|
|
9069
|
+
}
|
|
8943
9070
|
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
var(--ghost-motion-easing-standard);
|
|
9071
|
+
&:where([data-disabled]) {
|
|
9072
|
+
color: var(--ghost-text-muted);
|
|
9073
|
+
cursor: not-allowed;
|
|
9074
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
9075
|
+
}
|
|
9076
|
+
}
|
|
8951
9077
|
|
|
8952
|
-
|
|
8953
|
-
|
|
9078
|
+
& > :where([data-part='separator']),
|
|
9079
|
+
& > :where([role='group']) > :where([data-part='separator']) {
|
|
9080
|
+
align-self: stretch;
|
|
9081
|
+
background-color: var(--ghost-border-default);
|
|
9082
|
+
block-size: var(--ghost-border-hairline-width);
|
|
9083
|
+
border: none;
|
|
9084
|
+
margin-block: var(--ghost-space-gap-xs);
|
|
9085
|
+
padding: 0;
|
|
9086
|
+
|
|
9087
|
+
@media (forced-colors: active) {
|
|
9088
|
+
background-color: CanvasText;
|
|
9089
|
+
}
|
|
8954
9090
|
}
|
|
8955
9091
|
|
|
8956
|
-
|
|
8957
|
-
transition:
|
|
8958
|
-
|
|
8959
|
-
var(--ghost-motion-enter-easing),
|
|
8960
|
-
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
9092
|
+
&:where([data-state='open']) {
|
|
9093
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
9094
|
+
var(--ghost-motion-easing-standard);
|
|
8961
9095
|
|
|
8962
9096
|
@starting-style {
|
|
8963
|
-
|
|
9097
|
+
opacity: 0;
|
|
9098
|
+
}
|
|
9099
|
+
|
|
9100
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
9101
|
+
transition:
|
|
9102
|
+
opacity var(--ghost-motion-duration-fast)
|
|
9103
|
+
var(--ghost-motion-enter-easing),
|
|
9104
|
+
scale var(--ghost-motion-duration-fast)
|
|
9105
|
+
var(--ghost-motion-enter-easing);
|
|
9106
|
+
|
|
9107
|
+
@starting-style {
|
|
9108
|
+
scale: 0.98;
|
|
9109
|
+
}
|
|
8964
9110
|
}
|
|
8965
9111
|
}
|
|
8966
|
-
}
|
|
8967
9112
|
|
|
8968
|
-
|
|
8969
|
-
:where(
|
|
8970
|
-
.ghost-theme .ghost-menubar-content,
|
|
8971
|
-
.ghost-themed-scope .ghost-menubar-content,
|
|
8972
|
-
.ghost-menubar-content[data-themed]
|
|
8973
|
-
) {
|
|
9113
|
+
@media (forced-colors: active) {
|
|
8974
9114
|
background-color: Canvas;
|
|
8975
9115
|
border-color: CanvasText;
|
|
8976
9116
|
box-shadow: none;
|
|
8977
9117
|
color: CanvasText;
|
|
8978
9118
|
}
|
|
8979
|
-
|
|
8980
|
-
:where(
|
|
8981
|
-
.ghost-theme .ghost-menubar-content [data-part='item']:focus-visible,
|
|
8982
|
-
.ghost-themed-scope
|
|
8983
|
-
.ghost-menubar-content
|
|
8984
|
-
[data-part='item']:focus-visible,
|
|
8985
|
-
.ghost-menubar-content[data-themed] [data-part='item']:focus-visible,
|
|
8986
|
-
.ghost-theme
|
|
8987
|
-
.ghost-menubar-content
|
|
8988
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8989
|
-
.ghost-themed-scope
|
|
8990
|
-
.ghost-menubar-content
|
|
8991
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8992
|
-
.ghost-menubar-content[data-themed]
|
|
8993
|
-
[data-part='checkbox-item']:focus-visible,
|
|
8994
|
-
.ghost-theme
|
|
8995
|
-
.ghost-menubar-content
|
|
8996
|
-
[data-part='radio-item']:focus-visible,
|
|
8997
|
-
.ghost-themed-scope
|
|
8998
|
-
.ghost-menubar-content
|
|
8999
|
-
[data-part='radio-item']:focus-visible,
|
|
9000
|
-
.ghost-menubar-content[data-themed] [data-part='radio-item']:focus-visible
|
|
9001
|
-
) {
|
|
9002
|
-
outline-color: Highlight;
|
|
9003
|
-
}
|
|
9004
|
-
|
|
9005
|
-
:where(
|
|
9006
|
-
.ghost-theme .ghost-menubar-content [data-part='separator'],
|
|
9007
|
-
.ghost-themed-scope .ghost-menubar-content [data-part='separator'],
|
|
9008
|
-
.ghost-menubar-content[data-themed] [data-part='separator']
|
|
9009
|
-
) {
|
|
9010
|
-
background-color: CanvasText;
|
|
9011
|
-
}
|
|
9012
9119
|
}
|
|
9013
9120
|
|
|
9014
9121
|
:where(.ghost-theme .ghost-menubar, .ghost-themed-scope .ghost-menubar) {
|
|
@@ -9017,24 +9124,21 @@
|
|
|
9017
9124
|
flex-wrap: wrap;
|
|
9018
9125
|
font-family: var(--ghost-type-family-sans);
|
|
9019
9126
|
gap: var(--ghost-space-gap-xs);
|
|
9020
|
-
}
|
|
9021
9127
|
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
.ghost-themed-scope
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
padding: var(--ghost-space-inset-sm) var(--ghost-space-inset-md);
|
|
9030
|
-
}
|
|
9128
|
+
/* A trigger rendered as GhostButton sits inside the button's theme scope. */
|
|
9129
|
+
& > :where([data-part='trigger']),
|
|
9130
|
+
& > :where(.ghost-themed-scope) > :where([data-part='trigger']) {
|
|
9131
|
+
border-radius: var(--ghost-radius-md);
|
|
9132
|
+
color: var(--ghost-surface-fg);
|
|
9133
|
+
font: inherit;
|
|
9134
|
+
padding: var(--ghost-space-inset-sm) var(--ghost-space-inset-md);
|
|
9031
9135
|
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9136
|
+
&:where(:focus-visible) {
|
|
9137
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
9138
|
+
var(--ghost-focus-ring-color);
|
|
9139
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
9140
|
+
}
|
|
9141
|
+
}
|
|
9038
9142
|
}
|
|
9039
9143
|
}
|
|
9040
9144
|
/*
|
|
@@ -9046,14 +9150,17 @@
|
|
|
9046
9150
|
* localized `[dir]` subtree around its trigger, so the headless part resolves
|
|
9047
9151
|
* the direction and these rules map it to left/right explicitly.
|
|
9048
9152
|
*
|
|
9049
|
-
* Entry is a slide + fade via @starting-style
|
|
9050
|
-
*
|
|
9153
|
+
* Entry is a slide + fade via @starting-style; exit slides back to the same
|
|
9154
|
+
* edge (faster, accelerate easing) while useGhostPresence keeps the closed
|
|
9155
|
+
* surface mounted. Geometry and forced-colors rules match the part classes
|
|
9156
|
+
* without [data-state='open'] so the exiting surface keeps its edge offsets.
|
|
9157
|
+
* Reduced motion keeps only an opacity fade.
|
|
9051
9158
|
*/
|
|
9052
9159
|
@layer ghostvue-theme {
|
|
9053
9160
|
:where(
|
|
9054
|
-
.ghost-theme .ghost-drawer-overlay
|
|
9055
|
-
.ghost-themed-scope .ghost-drawer-overlay
|
|
9056
|
-
.ghost-drawer-overlay[data-themed]
|
|
9161
|
+
.ghost-theme .ghost-drawer-overlay,
|
|
9162
|
+
.ghost-themed-scope .ghost-drawer-overlay,
|
|
9163
|
+
.ghost-drawer-overlay[data-themed]
|
|
9057
9164
|
) {
|
|
9058
9165
|
background-color: var(--ghost-scrim);
|
|
9059
9166
|
inset: 0;
|
|
@@ -9062,9 +9169,9 @@
|
|
|
9062
9169
|
}
|
|
9063
9170
|
|
|
9064
9171
|
:where(
|
|
9065
|
-
.ghost-theme .ghost-drawer-content
|
|
9066
|
-
.ghost-themed-scope .ghost-drawer-content
|
|
9067
|
-
.ghost-drawer-content[data-themed]
|
|
9172
|
+
.ghost-theme .ghost-drawer-content,
|
|
9173
|
+
.ghost-themed-scope .ghost-drawer-content,
|
|
9174
|
+
.ghost-drawer-content[data-themed]
|
|
9068
9175
|
) {
|
|
9069
9176
|
align-content: start;
|
|
9070
9177
|
background-color: var(--ghost-elevation-4-bg);
|
|
@@ -9320,6 +9427,87 @@
|
|
|
9320
9427
|
translate: 0 100%;
|
|
9321
9428
|
}
|
|
9322
9429
|
}
|
|
9430
|
+
|
|
9431
|
+
/* Exit: fade and slide back toward the anchored edge. */
|
|
9432
|
+
:where(
|
|
9433
|
+
.ghost-theme .ghost-drawer-overlay[data-state='closed'],
|
|
9434
|
+
.ghost-themed-scope .ghost-drawer-overlay[data-state='closed'],
|
|
9435
|
+
.ghost-drawer-overlay[data-themed][data-state='closed']
|
|
9436
|
+
) {
|
|
9437
|
+
opacity: 0;
|
|
9438
|
+
transition: opacity var(--ghost-motion-exit-duration)
|
|
9439
|
+
var(--ghost-motion-exit-easing);
|
|
9440
|
+
}
|
|
9441
|
+
|
|
9442
|
+
:where(
|
|
9443
|
+
.ghost-theme .ghost-drawer-content[data-state='closed'],
|
|
9444
|
+
.ghost-themed-scope .ghost-drawer-content[data-state='closed'],
|
|
9445
|
+
.ghost-drawer-content[data-themed][data-state='closed']
|
|
9446
|
+
) {
|
|
9447
|
+
opacity: 0;
|
|
9448
|
+
transition:
|
|
9449
|
+
opacity var(--ghost-motion-exit-duration)
|
|
9450
|
+
var(--ghost-motion-exit-easing),
|
|
9451
|
+
translate var(--ghost-motion-exit-duration)
|
|
9452
|
+
var(--ghost-motion-exit-easing);
|
|
9453
|
+
}
|
|
9454
|
+
|
|
9455
|
+
:where(
|
|
9456
|
+
.ghost-theme
|
|
9457
|
+
.ghost-drawer-content[data-state='closed']:is(
|
|
9458
|
+
[data-side='start'][data-dir='ltr'],
|
|
9459
|
+
[data-side='end'][data-dir='rtl']
|
|
9460
|
+
),
|
|
9461
|
+
.ghost-themed-scope
|
|
9462
|
+
.ghost-drawer-content[data-state='closed']:is(
|
|
9463
|
+
[data-side='start'][data-dir='ltr'],
|
|
9464
|
+
[data-side='end'][data-dir='rtl']
|
|
9465
|
+
),
|
|
9466
|
+
.ghost-drawer-content[data-themed][data-state='closed']:is(
|
|
9467
|
+
[data-side='start'][data-dir='ltr'],
|
|
9468
|
+
[data-side='end'][data-dir='rtl']
|
|
9469
|
+
)
|
|
9470
|
+
) {
|
|
9471
|
+
translate: -100% 0;
|
|
9472
|
+
}
|
|
9473
|
+
|
|
9474
|
+
:where(
|
|
9475
|
+
.ghost-theme
|
|
9476
|
+
.ghost-drawer-content[data-state='closed']:is(
|
|
9477
|
+
[data-side='end'][data-dir='ltr'],
|
|
9478
|
+
[data-side='start'][data-dir='rtl']
|
|
9479
|
+
),
|
|
9480
|
+
.ghost-themed-scope
|
|
9481
|
+
.ghost-drawer-content[data-state='closed']:is(
|
|
9482
|
+
[data-side='end'][data-dir='ltr'],
|
|
9483
|
+
[data-side='start'][data-dir='rtl']
|
|
9484
|
+
),
|
|
9485
|
+
.ghost-drawer-content[data-themed][data-state='closed']:is(
|
|
9486
|
+
[data-side='end'][data-dir='ltr'],
|
|
9487
|
+
[data-side='start'][data-dir='rtl']
|
|
9488
|
+
)
|
|
9489
|
+
) {
|
|
9490
|
+
translate: 100% 0;
|
|
9491
|
+
}
|
|
9492
|
+
|
|
9493
|
+
:where(
|
|
9494
|
+
.ghost-theme .ghost-drawer-content[data-state='closed'][data-side='top'],
|
|
9495
|
+
.ghost-themed-scope
|
|
9496
|
+
.ghost-drawer-content[data-state='closed'][data-side='top'],
|
|
9497
|
+
.ghost-drawer-content[data-themed][data-state='closed'][data-side='top']
|
|
9498
|
+
) {
|
|
9499
|
+
translate: 0 -100%;
|
|
9500
|
+
}
|
|
9501
|
+
|
|
9502
|
+
:where(
|
|
9503
|
+
.ghost-theme
|
|
9504
|
+
.ghost-drawer-content[data-state='closed'][data-side='bottom'],
|
|
9505
|
+
.ghost-themed-scope
|
|
9506
|
+
.ghost-drawer-content[data-state='closed'][data-side='bottom'],
|
|
9507
|
+
.ghost-drawer-content[data-themed][data-state='closed'][data-side='bottom']
|
|
9508
|
+
) {
|
|
9509
|
+
translate: 0 100%;
|
|
9510
|
+
}
|
|
9323
9511
|
}
|
|
9324
9512
|
|
|
9325
9513
|
/* Reduced motion: no spatial movement in resting or starting state; a short
|
|
@@ -9338,6 +9526,20 @@
|
|
|
9338
9526
|
translate: none;
|
|
9339
9527
|
}
|
|
9340
9528
|
|
|
9529
|
+
:where(
|
|
9530
|
+
.ghost-theme .ghost-drawer-overlay[data-state='closed'],
|
|
9531
|
+
.ghost-themed-scope .ghost-drawer-overlay[data-state='closed'],
|
|
9532
|
+
.ghost-drawer-overlay[data-themed][data-state='closed'],
|
|
9533
|
+
.ghost-theme .ghost-drawer-content[data-state='closed'],
|
|
9534
|
+
.ghost-themed-scope .ghost-drawer-content[data-state='closed'],
|
|
9535
|
+
.ghost-drawer-content[data-themed][data-state='closed']
|
|
9536
|
+
) {
|
|
9537
|
+
opacity: 0;
|
|
9538
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
9539
|
+
var(--ghost-motion-easing-standard);
|
|
9540
|
+
translate: none;
|
|
9541
|
+
}
|
|
9542
|
+
|
|
9341
9543
|
@starting-style {
|
|
9342
9544
|
:where(
|
|
9343
9545
|
.ghost-theme .ghost-drawer-overlay[data-state='open'],
|
|
@@ -9355,9 +9557,9 @@
|
|
|
9355
9557
|
|
|
9356
9558
|
@media (forced-colors: active) {
|
|
9357
9559
|
:where(
|
|
9358
|
-
.ghost-theme .ghost-drawer-content
|
|
9359
|
-
.ghost-themed-scope .ghost-drawer-content
|
|
9360
|
-
.ghost-drawer-content[data-themed]
|
|
9560
|
+
.ghost-theme .ghost-drawer-content,
|
|
9561
|
+
.ghost-themed-scope .ghost-drawer-content,
|
|
9562
|
+
.ghost-drawer-content[data-themed]
|
|
9361
9563
|
) {
|
|
9362
9564
|
background-color: Canvas;
|
|
9363
9565
|
border-color: CanvasText;
|
|
@@ -10470,6 +10672,39 @@
|
|
|
10470
10672
|
z-index: 50;
|
|
10471
10673
|
}
|
|
10472
10674
|
|
|
10675
|
+
:where(
|
|
10676
|
+
.ghost-theme .ghost-command-palette-overlay[data-state='open'],
|
|
10677
|
+
.ghost-themed-scope .ghost-command-palette-overlay[data-state='open'],
|
|
10678
|
+
.ghost-command-palette-overlay[data-themed][data-state='open']
|
|
10679
|
+
) {
|
|
10680
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
10681
|
+
var(--ghost-motion-easing-standard);
|
|
10682
|
+
|
|
10683
|
+
@starting-style {
|
|
10684
|
+
opacity: 0;
|
|
10685
|
+
}
|
|
10686
|
+
|
|
10687
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
10688
|
+
transition: opacity var(--ghost-motion-duration-fast)
|
|
10689
|
+
var(--ghost-motion-enter-easing);
|
|
10690
|
+
}
|
|
10691
|
+
}
|
|
10692
|
+
|
|
10693
|
+
:where(
|
|
10694
|
+
.ghost-theme .ghost-command-palette-overlay[data-state='closed'],
|
|
10695
|
+
.ghost-themed-scope .ghost-command-palette-overlay[data-state='closed'],
|
|
10696
|
+
.ghost-command-palette-overlay[data-themed][data-state='closed']
|
|
10697
|
+
) {
|
|
10698
|
+
opacity: 0;
|
|
10699
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
10700
|
+
var(--ghost-motion-easing-standard);
|
|
10701
|
+
|
|
10702
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
10703
|
+
transition: opacity var(--ghost-motion-exit-duration)
|
|
10704
|
+
var(--ghost-motion-exit-easing);
|
|
10705
|
+
}
|
|
10706
|
+
}
|
|
10707
|
+
|
|
10473
10708
|
:where(
|
|
10474
10709
|
.ghost-theme .ghost-command-palette-content,
|
|
10475
10710
|
.ghost-themed-scope .ghost-command-palette-content,
|
|
@@ -10663,6 +10898,25 @@
|
|
|
10663
10898
|
}
|
|
10664
10899
|
}
|
|
10665
10900
|
|
|
10901
|
+
/* Exit: reduced motion keeps scale at 1 and only fades. */
|
|
10902
|
+
:where(
|
|
10903
|
+
.ghost-theme .ghost-command-palette-content[data-state='closed'],
|
|
10904
|
+
.ghost-themed-scope .ghost-command-palette-content[data-state='closed'],
|
|
10905
|
+
.ghost-command-palette-content[data-themed][data-state='closed']
|
|
10906
|
+
) {
|
|
10907
|
+
opacity: 0;
|
|
10908
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
10909
|
+
var(--ghost-motion-easing-standard);
|
|
10910
|
+
|
|
10911
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
10912
|
+
scale: 0.98;
|
|
10913
|
+
transition:
|
|
10914
|
+
opacity var(--ghost-motion-exit-duration)
|
|
10915
|
+
var(--ghost-motion-exit-easing),
|
|
10916
|
+
scale var(--ghost-motion-exit-duration) var(--ghost-motion-exit-easing);
|
|
10917
|
+
}
|
|
10918
|
+
}
|
|
10919
|
+
|
|
10666
10920
|
@media (forced-colors: active) {
|
|
10667
10921
|
:where(
|
|
10668
10922
|
.ghost-theme .ghost-command-palette-content,
|