@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/mono.css
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
* flash the opposite palette.
|
|
11
11
|
*/
|
|
12
12
|
@layer ghostvue-theme {
|
|
13
|
+
:where([data-ghost-theme='mono']) {
|
|
14
|
+
--_ghost-progress-intensity-baseline: 0.45;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
:where(:where([data-ghost-theme='mono']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) {
|
|
14
18
|
--ghost-action-danger-bg: #b91c1c;
|
|
15
19
|
--ghost-action-danger-bg-active: #640004;
|
|
@@ -158,6 +162,7 @@
|
|
|
158
162
|
--ghost-space-inset-2xs: 0.25rem;
|
|
159
163
|
--ghost-space-inset-lg: 1.25rem;
|
|
160
164
|
--ghost-space-inset-md: 1rem;
|
|
165
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
161
166
|
--ghost-space-inset-sm: 0.75rem;
|
|
162
167
|
--ghost-space-inset-xs: 0.5rem;
|
|
163
168
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -229,11 +234,11 @@
|
|
|
229
234
|
|
|
230
235
|
:where(:where([data-ghost-theme='mono']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where([data-ghost-theme='mono']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
231
236
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
232
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
237
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
233
238
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
234
239
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
235
240
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
236
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
241
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
237
242
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
238
243
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
239
244
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -402,6 +407,7 @@
|
|
|
402
407
|
--ghost-space-inset-2xs: 0.25rem;
|
|
403
408
|
--ghost-space-inset-lg: 1.25rem;
|
|
404
409
|
--ghost-space-inset-md: 1rem;
|
|
410
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
405
411
|
--ghost-space-inset-sm: 0.75rem;
|
|
406
412
|
--ghost-space-inset-xs: 0.5rem;
|
|
407
413
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -473,11 +479,11 @@
|
|
|
473
479
|
|
|
474
480
|
:where(:where([data-ghost-theme='mono']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))), :where(:where([data-ghost-theme='mono']):not([data-ghost-mode]):not(:where([data-ghost-mode] *))) :where(*) {
|
|
475
481
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
476
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
482
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
477
483
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
478
484
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
479
485
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
480
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
486
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
481
487
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
482
488
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
483
489
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -647,6 +653,7 @@
|
|
|
647
653
|
--ghost-space-inset-2xs: 0.25rem;
|
|
648
654
|
--ghost-space-inset-lg: 1.25rem;
|
|
649
655
|
--ghost-space-inset-md: 1rem;
|
|
656
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
650
657
|
--ghost-space-inset-sm: 0.75rem;
|
|
651
658
|
--ghost-space-inset-xs: 0.5rem;
|
|
652
659
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -718,11 +725,11 @@
|
|
|
718
725
|
|
|
719
726
|
:where(:where([data-ghost-theme='mono']):where([data-ghost-mode='light']), :where([data-ghost-theme='mono']) :where([data-ghost-mode='light'])), :where(:where([data-ghost-theme='mono']):where([data-ghost-mode='light']), :where([data-ghost-theme='mono']) :where([data-ghost-mode='light'])) :where(*) {
|
|
720
727
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
721
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
728
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
722
729
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
723
730
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
724
731
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
725
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
732
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
726
733
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
727
734
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
728
735
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -891,6 +898,7 @@
|
|
|
891
898
|
--ghost-space-inset-2xs: 0.25rem;
|
|
892
899
|
--ghost-space-inset-lg: 1.25rem;
|
|
893
900
|
--ghost-space-inset-md: 1rem;
|
|
901
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
894
902
|
--ghost-space-inset-sm: 0.75rem;
|
|
895
903
|
--ghost-space-inset-xs: 0.5rem;
|
|
896
904
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -962,11 +970,11 @@
|
|
|
962
970
|
|
|
963
971
|
:where(:where([data-ghost-theme='mono']):where([data-ghost-mode='dark']), :where([data-ghost-theme='mono']) :where([data-ghost-mode='dark'])), :where(:where([data-ghost-theme='mono']):where([data-ghost-mode='dark']), :where([data-ghost-theme='mono']) :where([data-ghost-mode='dark'])) :where(*) {
|
|
964
972
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
965
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
973
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
966
974
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
967
975
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
968
976
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
969
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
977
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
970
978
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
971
979
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
972
980
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1136,6 +1144,7 @@
|
|
|
1136
1144
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1137
1145
|
--ghost-space-inset-lg: 1.25rem;
|
|
1138
1146
|
--ghost-space-inset-md: 1rem;
|
|
1147
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1139
1148
|
--ghost-space-inset-sm: 0.75rem;
|
|
1140
1149
|
--ghost-space-inset-xs: 0.5rem;
|
|
1141
1150
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1207,11 +1216,11 @@
|
|
|
1207
1216
|
|
|
1208
1217
|
:where(:where([data-ghost-theme='mono']):not([data-ghost-mode])), :where(:where([data-ghost-theme='mono']):not([data-ghost-mode])) :where(*) {
|
|
1209
1218
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1210
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1219
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1211
1220
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1212
1221
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1213
1222
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1214
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1223
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1215
1224
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1216
1225
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1217
1226
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1382,6 +1391,7 @@
|
|
|
1382
1391
|
--ghost-space-inset-2xs: 0.25rem;
|
|
1383
1392
|
--ghost-space-inset-lg: 1.25rem;
|
|
1384
1393
|
--ghost-space-inset-md: 1rem;
|
|
1394
|
+
--ghost-space-inset-scrollbar: 1rem;
|
|
1385
1395
|
--ghost-space-inset-sm: 0.75rem;
|
|
1386
1396
|
--ghost-space-inset-xs: 0.5rem;
|
|
1387
1397
|
--ghost-space-stack-lg: 1.5rem;
|
|
@@ -1453,11 +1463,11 @@
|
|
|
1453
1463
|
|
|
1454
1464
|
:where(:where([data-ghost-theme='mono']):not([data-ghost-mode])), :where(:where([data-ghost-theme='mono']):not([data-ghost-mode])) :where(*) {
|
|
1455
1465
|
--ghost-action-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1456
|
-
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1466
|
+
--ghost-action-spinner-duration: calc(700ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-intensity-baseline, 1));
|
|
1457
1467
|
--ghost-focus-ring-duration: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1458
1468
|
--ghost-interactive-leave-spring-duration: calc(504ms * var(--ghost-motion-intensity, 1));
|
|
1459
1469
|
--ghost-motion-duration-expressive: calc(700ms * var(--ghost-motion-intensity, 1));
|
|
1460
|
-
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1));
|
|
1470
|
+
--ghost-motion-duration-fast: calc(120ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1461
1471
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1462
1472
|
--ghost-motion-duration-moderate: calc(250ms * var(--ghost-motion-intensity, 1));
|
|
1463
1473
|
--ghost-motion-duration-slow: calc(400ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1631,7 +1641,7 @@
|
|
|
1631
1641
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1632
1642
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1633
1643
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1634
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1644
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1635
1645
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1636
1646
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1637
1647
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
@@ -1655,7 +1665,7 @@
|
|
|
1655
1665
|
--ghost-focus-ring-duration: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1656
1666
|
--ghost-interactive-leave-spring-duration: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1657
1667
|
--ghost-motion-duration-expressive: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1658
|
-
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1668
|
+
--ghost-motion-duration-fast: calc(80ms * var(--ghost-motion-intensity, 1) / var(--_ghost-progress-update-baseline, 1));
|
|
1659
1669
|
--ghost-motion-duration-instant: calc(0ms * var(--ghost-motion-intensity, 1));
|
|
1660
1670
|
--ghost-motion-duration-moderate: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
1661
1671
|
--ghost-motion-duration-slow: calc(80ms * var(--ghost-motion-intensity, 1));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Themed GhostCheckboxGroup: fieldset reset and vertical stack gap from
|
|
3
|
+
* semantic tokens. Targets only the group root and its direct legend child.
|
|
4
|
+
*/
|
|
5
|
+
@layer ghostvue-theme {
|
|
6
|
+
:where(
|
|
7
|
+
.ghost-theme .ghost-checkbox-group,
|
|
8
|
+
.ghost-themed-scope .ghost-checkbox-group
|
|
9
|
+
) {
|
|
10
|
+
border: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: var(--ghost-space-stack-sm);
|
|
14
|
+
margin: 0;
|
|
15
|
+
min-inline-size: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(
|
|
20
|
+
.ghost-theme .ghost-checkbox-group > legend,
|
|
21
|
+
.ghost-themed-scope .ghost-checkbox-group > legend
|
|
22
|
+
) {
|
|
23
|
+
color: var(--ghost-text-default);
|
|
24
|
+
font-size: var(--ghost-type-size-md);
|
|
25
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
26
|
+
line-height: var(--ghost-type-line-tight);
|
|
27
|
+
margin-block-end: var(--ghost-space-stack-sm);
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -18,6 +18,39 @@
|
|
|
18
18
|
z-index: 50;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
:where(
|
|
22
|
+
.ghost-theme .ghost-command-palette-overlay[data-state='open'],
|
|
23
|
+
.ghost-themed-scope .ghost-command-palette-overlay[data-state='open'],
|
|
24
|
+
.ghost-command-palette-overlay[data-themed][data-state='open']
|
|
25
|
+
) {
|
|
26
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
27
|
+
var(--ghost-motion-easing-standard);
|
|
28
|
+
|
|
29
|
+
@starting-style {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
34
|
+
transition: opacity var(--ghost-motion-duration-fast)
|
|
35
|
+
var(--ghost-motion-enter-easing);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where(
|
|
40
|
+
.ghost-theme .ghost-command-palette-overlay[data-state='closed'],
|
|
41
|
+
.ghost-themed-scope .ghost-command-palette-overlay[data-state='closed'],
|
|
42
|
+
.ghost-command-palette-overlay[data-themed][data-state='closed']
|
|
43
|
+
) {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
46
|
+
var(--ghost-motion-easing-standard);
|
|
47
|
+
|
|
48
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
49
|
+
transition: opacity var(--ghost-motion-exit-duration)
|
|
50
|
+
var(--ghost-motion-exit-easing);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
21
54
|
:where(
|
|
22
55
|
.ghost-theme .ghost-command-palette-content,
|
|
23
56
|
.ghost-themed-scope .ghost-command-palette-content,
|
|
@@ -211,6 +244,25 @@
|
|
|
211
244
|
}
|
|
212
245
|
}
|
|
213
246
|
|
|
247
|
+
/* Exit: reduced motion keeps scale at 1 and only fades. */
|
|
248
|
+
:where(
|
|
249
|
+
.ghost-theme .ghost-command-palette-content[data-state='closed'],
|
|
250
|
+
.ghost-themed-scope .ghost-command-palette-content[data-state='closed'],
|
|
251
|
+
.ghost-command-palette-content[data-themed][data-state='closed']
|
|
252
|
+
) {
|
|
253
|
+
opacity: 0;
|
|
254
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
255
|
+
var(--ghost-motion-easing-standard);
|
|
256
|
+
|
|
257
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
258
|
+
scale: 0.98;
|
|
259
|
+
transition:
|
|
260
|
+
opacity var(--ghost-motion-exit-duration)
|
|
261
|
+
var(--ghost-motion-exit-easing),
|
|
262
|
+
scale var(--ghost-motion-exit-duration) var(--ghost-motion-exit-easing);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
214
266
|
@media (forced-colors: active) {
|
|
215
267
|
:where(
|
|
216
268
|
.ghost-theme .ghost-command-palette-content,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Themed
|
|
3
|
-
*
|
|
2
|
+
* Themed context-menu and submenu surfaces use elevation and control tokens.
|
|
3
|
+
* Each surface styles its own items and the immediate groups it contains.
|
|
4
4
|
*/
|
|
5
5
|
@layer ghostvue-theme {
|
|
6
6
|
:where(
|
|
7
|
-
.ghost-theme .ghost-
|
|
8
|
-
|
|
9
|
-
.ghost-context-menu-content[data-themed]
|
|
7
|
+
:is(.ghost-theme, .ghost-themed-scope)
|
|
8
|
+
:is(.ghost-context-menu-content, [data-part='sub-content']),
|
|
9
|
+
:is(.ghost-context-menu-content, [data-part='sub-content'])[data-themed]
|
|
10
10
|
) {
|
|
11
11
|
background-color: var(--ghost-elevation-3-bg);
|
|
12
12
|
border: var(--ghost-border-hairline-width) solid
|
|
@@ -24,204 +24,115 @@
|
|
|
24
24
|
min-inline-size: max-content;
|
|
25
25
|
padding: var(--ghost-space-inset-2xs);
|
|
26
26
|
z-index: 50;
|
|
27
|
-
}
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
38
|
-
user-select: none;
|
|
39
|
-
}
|
|
28
|
+
& > :where([data-part='label']),
|
|
29
|
+
& > :where([role='group']) > :where([data-part='label']) {
|
|
30
|
+
color: var(--ghost-text-muted);
|
|
31
|
+
font-size: var(--ghost-type-size-sm);
|
|
32
|
+
font-weight: var(--ghost-type-weight-semibold);
|
|
33
|
+
padding: var(--ghost-space-inset-xs) var(--ghost-space-inset-sm);
|
|
34
|
+
user-select: none;
|
|
35
|
+
}
|
|
40
36
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
37
|
+
&
|
|
38
|
+
> :where(
|
|
39
|
+
[data-part='item'],
|
|
40
|
+
[data-part='checkbox-item'],
|
|
41
|
+
[data-part='radio-item'],
|
|
42
|
+
[data-part='sub-trigger']
|
|
43
|
+
),
|
|
44
|
+
&
|
|
45
|
+
> :where([role='group'])
|
|
46
|
+
> :where(
|
|
47
|
+
[data-part='item'],
|
|
48
|
+
[data-part='checkbox-item'],
|
|
49
|
+
[data-part='radio-item'],
|
|
50
|
+
[data-part='sub-trigger']
|
|
51
|
+
) {
|
|
52
|
+
align-items: center;
|
|
53
|
+
border: var(--ghost-border-hairline-width) solid transparent;
|
|
54
|
+
border-radius: var(--ghost-radius-sm);
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
color: var(--ghost-surface-fg);
|
|
57
|
+
cursor: default;
|
|
58
|
+
display: flex;
|
|
59
|
+
font: inherit;
|
|
60
|
+
font-size: var(--ghost-control-size-sm-font);
|
|
61
|
+
gap: var(--ghost-space-gap-sm);
|
|
62
|
+
min-block-size: var(--ghost-control-size-sm-min);
|
|
63
|
+
outline: none;
|
|
64
|
+
padding-block: var(--ghost-control-size-sm-padding-block);
|
|
65
|
+
padding-inline: var(--ghost-space-inset-sm);
|
|
66
|
+
transition: background-color var(--ghost-motion-duration-fast)
|
|
67
|
+
var(--ghost-motion-easing-standard);
|
|
68
|
+
user-select: none;
|
|
70
69
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
.ghost-theme .ghost-context-menu-content [data-part='checkbox-item']:hover,
|
|
76
|
-
.ghost-themed-scope
|
|
77
|
-
.ghost-context-menu-content
|
|
78
|
-
[data-part='checkbox-item']:hover,
|
|
79
|
-
.ghost-context-menu-content[data-themed] [data-part='checkbox-item']:hover,
|
|
80
|
-
.ghost-theme .ghost-context-menu-content [data-part='radio-item']:hover,
|
|
81
|
-
.ghost-themed-scope
|
|
82
|
-
.ghost-context-menu-content
|
|
83
|
-
[data-part='radio-item']:hover,
|
|
84
|
-
.ghost-context-menu-content[data-themed] [data-part='radio-item']:hover
|
|
85
|
-
) {
|
|
86
|
-
background-color: var(--ghost-elevation-2-bg);
|
|
87
|
-
}
|
|
70
|
+
&:where([data-part='sub-trigger']) {
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
text-align: start;
|
|
73
|
+
}
|
|
88
74
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
.ghost-context-menu-content
|
|
93
|
-
[data-part='item']:focus-visible,
|
|
94
|
-
.ghost-context-menu-content[data-themed] [data-part='item']:focus-visible,
|
|
95
|
-
.ghost-theme
|
|
96
|
-
.ghost-context-menu-content
|
|
97
|
-
[data-part='checkbox-item']:focus-visible,
|
|
98
|
-
.ghost-themed-scope
|
|
99
|
-
.ghost-context-menu-content
|
|
100
|
-
[data-part='checkbox-item']:focus-visible,
|
|
101
|
-
.ghost-context-menu-content[data-themed]
|
|
102
|
-
[data-part='checkbox-item']:focus-visible,
|
|
103
|
-
.ghost-theme
|
|
104
|
-
.ghost-context-menu-content
|
|
105
|
-
[data-part='radio-item']:focus-visible,
|
|
106
|
-
.ghost-themed-scope
|
|
107
|
-
.ghost-context-menu-content
|
|
108
|
-
[data-part='radio-item']:focus-visible,
|
|
109
|
-
.ghost-context-menu-content[data-themed]
|
|
110
|
-
[data-part='radio-item']:focus-visible
|
|
111
|
-
) {
|
|
112
|
-
outline: var(--ghost-focus-ring-width) solid var(--ghost-focus-ring-color);
|
|
113
|
-
outline-offset: var(--ghost-focus-ring-offset);
|
|
114
|
-
}
|
|
75
|
+
&:where(:hover, [data-part='sub-trigger'][data-state='open']) {
|
|
76
|
+
background-color: var(--ghost-elevation-2-bg);
|
|
77
|
+
}
|
|
115
78
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
[data-part='item'][data-disabled],
|
|
121
|
-
.ghost-context-menu-content[data-themed] [data-part='item'][data-disabled],
|
|
122
|
-
.ghost-theme
|
|
123
|
-
.ghost-context-menu-content
|
|
124
|
-
[data-part='checkbox-item'][data-disabled],
|
|
125
|
-
.ghost-themed-scope
|
|
126
|
-
.ghost-context-menu-content
|
|
127
|
-
[data-part='checkbox-item'][data-disabled],
|
|
128
|
-
.ghost-context-menu-content[data-themed]
|
|
129
|
-
[data-part='checkbox-item'][data-disabled],
|
|
130
|
-
.ghost-theme
|
|
131
|
-
.ghost-context-menu-content
|
|
132
|
-
[data-part='radio-item'][data-disabled],
|
|
133
|
-
.ghost-themed-scope
|
|
134
|
-
.ghost-context-menu-content
|
|
135
|
-
[data-part='radio-item'][data-disabled],
|
|
136
|
-
.ghost-context-menu-content[data-themed]
|
|
137
|
-
[data-part='radio-item'][data-disabled]
|
|
138
|
-
) {
|
|
139
|
-
color: var(--ghost-text-muted);
|
|
140
|
-
cursor: not-allowed;
|
|
141
|
-
opacity: var(--ghost-action-disabled-opacity);
|
|
142
|
-
}
|
|
79
|
+
&:where(:focus-visible) {
|
|
80
|
+
outline: var(--ghost-focus-ring-width) solid
|
|
81
|
+
var(--ghost-focus-ring-color);
|
|
82
|
+
outline-offset: var(--ghost-focus-ring-offset);
|
|
143
83
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
) {
|
|
149
|
-
align-self: stretch;
|
|
150
|
-
background-color: var(--ghost-border-default);
|
|
151
|
-
block-size: var(--ghost-border-hairline-width);
|
|
152
|
-
border: none;
|
|
153
|
-
margin-block: var(--ghost-space-gap-xs);
|
|
154
|
-
padding: 0;
|
|
155
|
-
}
|
|
84
|
+
@media (forced-colors: active) {
|
|
85
|
+
outline-color: Highlight;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
156
88
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
var(--ghost-motion-easing-standard);
|
|
89
|
+
&:where([data-disabled]) {
|
|
90
|
+
color: var(--ghost-text-muted);
|
|
91
|
+
cursor: not-allowed;
|
|
92
|
+
opacity: var(--ghost-action-disabled-opacity);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
164
95
|
|
|
165
|
-
|
|
166
|
-
|
|
96
|
+
& > :where([data-part='separator']),
|
|
97
|
+
& > :where([role='group']) > :where([data-part='separator']) {
|
|
98
|
+
align-self: stretch;
|
|
99
|
+
background-color: var(--ghost-border-default);
|
|
100
|
+
block-size: var(--ghost-border-hairline-width);
|
|
101
|
+
border: none;
|
|
102
|
+
margin-block: var(--ghost-space-gap-xs);
|
|
103
|
+
padding: 0;
|
|
104
|
+
|
|
105
|
+
@media (forced-colors: active) {
|
|
106
|
+
background-color: CanvasText;
|
|
107
|
+
}
|
|
167
108
|
}
|
|
168
109
|
|
|
169
|
-
|
|
170
|
-
transition:
|
|
171
|
-
|
|
172
|
-
var(--ghost-motion-enter-easing),
|
|
173
|
-
scale var(--ghost-motion-duration-fast) var(--ghost-motion-enter-easing);
|
|
110
|
+
&:where([data-state='open']) {
|
|
111
|
+
transition: opacity var(--ghost-motion-fade-duration)
|
|
112
|
+
var(--ghost-motion-easing-standard);
|
|
174
113
|
|
|
175
114
|
@starting-style {
|
|
176
|
-
|
|
115
|
+
opacity: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
119
|
+
transition:
|
|
120
|
+
opacity var(--ghost-motion-duration-fast)
|
|
121
|
+
var(--ghost-motion-enter-easing),
|
|
122
|
+
scale var(--ghost-motion-duration-fast)
|
|
123
|
+
var(--ghost-motion-enter-easing);
|
|
124
|
+
|
|
125
|
+
@starting-style {
|
|
126
|
+
scale: 0.98;
|
|
127
|
+
}
|
|
177
128
|
}
|
|
178
129
|
}
|
|
179
|
-
}
|
|
180
130
|
|
|
181
|
-
|
|
182
|
-
:where(
|
|
183
|
-
.ghost-theme .ghost-context-menu-content,
|
|
184
|
-
.ghost-themed-scope .ghost-context-menu-content,
|
|
185
|
-
.ghost-context-menu-content[data-themed]
|
|
186
|
-
) {
|
|
131
|
+
@media (forced-colors: active) {
|
|
187
132
|
background-color: Canvas;
|
|
188
133
|
border-color: CanvasText;
|
|
189
134
|
box-shadow: none;
|
|
190
135
|
color: CanvasText;
|
|
191
136
|
}
|
|
192
|
-
|
|
193
|
-
:where(
|
|
194
|
-
.ghost-theme .ghost-context-menu-content [data-part='item']:focus-visible,
|
|
195
|
-
.ghost-themed-scope
|
|
196
|
-
.ghost-context-menu-content
|
|
197
|
-
[data-part='item']:focus-visible,
|
|
198
|
-
.ghost-context-menu-content[data-themed] [data-part='item']:focus-visible,
|
|
199
|
-
.ghost-theme
|
|
200
|
-
.ghost-context-menu-content
|
|
201
|
-
[data-part='checkbox-item']:focus-visible,
|
|
202
|
-
.ghost-themed-scope
|
|
203
|
-
.ghost-context-menu-content
|
|
204
|
-
[data-part='checkbox-item']:focus-visible,
|
|
205
|
-
.ghost-context-menu-content[data-themed]
|
|
206
|
-
[data-part='checkbox-item']:focus-visible,
|
|
207
|
-
.ghost-theme
|
|
208
|
-
.ghost-context-menu-content
|
|
209
|
-
[data-part='radio-item']:focus-visible,
|
|
210
|
-
.ghost-themed-scope
|
|
211
|
-
.ghost-context-menu-content
|
|
212
|
-
[data-part='radio-item']:focus-visible,
|
|
213
|
-
.ghost-context-menu-content[data-themed]
|
|
214
|
-
[data-part='radio-item']:focus-visible
|
|
215
|
-
) {
|
|
216
|
-
outline-color: Highlight;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
:where(
|
|
220
|
-
.ghost-theme .ghost-context-menu-content [data-part='separator'],
|
|
221
|
-
.ghost-themed-scope .ghost-context-menu-content [data-part='separator'],
|
|
222
|
-
.ghost-context-menu-content[data-themed] [data-part='separator']
|
|
223
|
-
) {
|
|
224
|
-
background-color: CanvasText;
|
|
225
|
-
}
|
|
226
137
|
}
|
|
227
138
|
}
|