@farming-labs/astro-theme 0.0.3-beta.2 → 0.0.3-beta.3
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/package.json +3 -3
- package/src/components/DocsContent.astro +262 -2
- package/src/components/DocsLayout.astro +35 -14
- package/src/components/DocsPage.astro +50 -23
- package/src/components/FloatingAIChat.astro +25 -3
- package/src/components/SearchDialog.astro +345 -265
- package/styles/colorful.css +49 -3
- package/styles/darksharp.css +18 -0
- package/styles/docs.css +229 -17
- package/styles/greentree.css +237 -27
- package/styles/omni.css +359 -0
- package/styles/pixel-border.css +108 -2
package/styles/greentree.css
CHANGED
|
@@ -42,6 +42,14 @@
|
|
|
42
42
|
--color-fd-accent: #1a1d1c;
|
|
43
43
|
--color-fd-accent-foreground: #e5e7e6;
|
|
44
44
|
--color-fd-border: #2a2d2c;
|
|
45
|
+
|
|
46
|
+
/* Sidebar — match docs background */
|
|
47
|
+
--fd-sidebar-bg: #0a0d0d;
|
|
48
|
+
--fd-sidebar-card-bg: #1a1d1c;
|
|
49
|
+
--fd-sidebar-active-bg: #284d2b;
|
|
50
|
+
--fd-sidebar-active-text: #26bd6c;
|
|
51
|
+
--fd-sidebar-active-line: #26bd6c;
|
|
52
|
+
--fd-sidebar-indent-line: #2a2d2c;
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
/* ─── Typography — Inter, Mintlify-style values ──────────────── */
|
|
@@ -70,13 +78,13 @@ h3 {
|
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
/* ═══════════════════════════════════════════════════════════════════
|
|
73
|
-
* SIDEBAR — GreenTree: no border, green active background
|
|
74
81
|
* ═══════════════════════════════════════════════════════════════════ */
|
|
75
82
|
|
|
76
83
|
aside,
|
|
77
84
|
#nd-sidebar,
|
|
78
85
|
aside#nd-sidebar,
|
|
79
|
-
#nd-docs-layout aside
|
|
86
|
+
#nd-docs-layout aside,
|
|
87
|
+
.fd-sidebar {
|
|
80
88
|
border: none;
|
|
81
89
|
border-right: none;
|
|
82
90
|
border-left: none;
|
|
@@ -85,34 +93,124 @@ aside#nd-sidebar,
|
|
|
85
93
|
background: var(--color-fd-background);
|
|
86
94
|
}
|
|
87
95
|
|
|
88
|
-
|
|
96
|
+
.dark .fd-sidebar {
|
|
97
|
+
background: var(--fd-sidebar-bg, #1a1a1a);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dark .fd-sidebar .fd-sidebar-title {
|
|
101
|
+
font-size: 1.125rem;
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
color: #e0e0e0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Search bar — rounded, darker grey background, ⌘ K badges */
|
|
107
|
+
.dark .fd-sidebar .fd-sidebar-search-btn {
|
|
108
|
+
background: var(--fd-sidebar-card-bg, #252525) !important;
|
|
109
|
+
border: 1px solid var(--fd-sidebar-indent-line, #3c3c3c);
|
|
110
|
+
border-radius: 8px;
|
|
111
|
+
color: #a0a0a0;
|
|
112
|
+
font-size: 0.875rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dark .fd-sidebar .fd-sidebar-search-btn:hover {
|
|
116
|
+
background: #2d2d2d !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.dark .fd-sidebar .fd-sidebar-search-btn kbd {
|
|
120
|
+
background: #404040 !important;
|
|
121
|
+
border-color: #3c3c3c;
|
|
122
|
+
color: #a0a0a0;
|
|
123
|
+
border-radius: 4px;
|
|
124
|
+
padding: 2px 6px;
|
|
125
|
+
font-size: 11px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Nav padding */
|
|
129
|
+
.fd-sidebar .fd-sidebar-nav {
|
|
130
|
+
padding: 8px 12px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* All sidebar links — 14px, 400/500 weight, 6px 10px padding */
|
|
134
|
+
aside a[data-active],
|
|
135
|
+
.fd-sidebar .fd-sidebar-link {
|
|
89
136
|
font-size: 0.875rem;
|
|
90
137
|
line-height: 1.5;
|
|
91
|
-
font-weight:
|
|
138
|
+
font-weight: 400;
|
|
92
139
|
padding: 6px 10px;
|
|
93
140
|
border-radius: 8px;
|
|
94
141
|
color: var(--color-fd-muted-foreground);
|
|
95
|
-
transition:
|
|
96
|
-
color 150ms,
|
|
97
|
-
background-color 150ms;
|
|
142
|
+
transition: color 150ms, background-color 150ms;
|
|
98
143
|
}
|
|
99
144
|
|
|
100
|
-
|
|
145
|
+
.dark .fd-sidebar .fd-sidebar-link {
|
|
146
|
+
color: #e0e0e0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
aside a[data-active]:hover,
|
|
150
|
+
.fd-sidebar .fd-sidebar-link:hover {
|
|
101
151
|
color: var(--color-fd-foreground);
|
|
102
152
|
background: var(--color-fd-accent);
|
|
103
153
|
}
|
|
104
154
|
|
|
105
|
-
|
|
106
|
-
color:
|
|
107
|
-
|
|
108
|
-
background: rgba(13, 147, 115, 0.08);
|
|
109
|
-
background-color: rgba(13, 147, 115, 0.08);
|
|
155
|
+
.dark .fd-sidebar .fd-sidebar-link:hover {
|
|
156
|
+
color: #e0e0e0;
|
|
157
|
+
background: #2d2d2d;
|
|
110
158
|
}
|
|
111
159
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
color: var(--color-fd-primary);
|
|
160
|
+
aside a[data-active="true"],
|
|
161
|
+
.fd-sidebar .fd-sidebar-link-active,
|
|
162
|
+
.fd-sidebar .fd-sidebar-link[data-active="true"] {
|
|
163
|
+
color: var(--color-fd-primary) !important;
|
|
164
|
+
font-weight: 600 !important;
|
|
165
|
+
background: transparent !important;
|
|
166
|
+
background-color: transparent !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.dark .fd-sidebar .fd-sidebar-link-active,
|
|
170
|
+
.dark .fd-sidebar .fd-sidebar-link[data-active="true"] {
|
|
171
|
+
color: var(--fd-sidebar-active-text, #50c878) !important;
|
|
172
|
+
background: transparent !important;
|
|
173
|
+
background-color: transparent !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.fd-sidebar-folder-content .fd-sidebar-link-active::before,
|
|
177
|
+
.fd-sidebar-folder-content .fd-sidebar-link[data-active="true"]::before {
|
|
178
|
+
content: "";
|
|
179
|
+
position: absolute;
|
|
180
|
+
left: 0;
|
|
181
|
+
top: 0;
|
|
182
|
+
bottom: 0;
|
|
183
|
+
width: 2px;
|
|
184
|
+
background: var(--fd-sidebar-active-line, #50c878);
|
|
185
|
+
border-radius: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.dark .fd-sidebar-folder-content .fd-sidebar-link-active::before,
|
|
189
|
+
.dark .fd-sidebar-folder-content .fd-sidebar-link[data-active="true"]::before {
|
|
190
|
+
background: var(--fd-sidebar-active-line, #50c878);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.fd-sidebar .fd-sidebar-top-link.fd-sidebar-link-active,
|
|
194
|
+
.fd-sidebar .fd-sidebar-top-link[data-active="true"] {
|
|
195
|
+
background: transparent !important;
|
|
196
|
+
background-color: transparent !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.fd-sidebar .fd-sidebar-top-link.fd-sidebar-link-active::before,
|
|
200
|
+
.fd-sidebar .fd-sidebar-top-link[data-active="true"]::before {
|
|
201
|
+
content: "";
|
|
202
|
+
position: absolute;
|
|
203
|
+
left: 0;
|
|
204
|
+
top: 25%;
|
|
205
|
+
bottom: 25%;
|
|
206
|
+
width: 2px;
|
|
207
|
+
background: var(--color-fd-primary);
|
|
208
|
+
border-radius: 1px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.dark .fd-sidebar .fd-sidebar-top-link.fd-sidebar-link-active::before,
|
|
212
|
+
.dark .fd-sidebar .fd-sidebar-top-link[data-active="true"]::before {
|
|
213
|
+
background: var(--fd-sidebar-active-line, #50c878);
|
|
116
214
|
}
|
|
117
215
|
|
|
118
216
|
aside a[data-active="true"]::before {
|
|
@@ -120,22 +218,66 @@ aside a[data-active="true"]::before {
|
|
|
120
218
|
width: 0;
|
|
121
219
|
}
|
|
122
220
|
|
|
123
|
-
|
|
221
|
+
.dark .fd-sidebar .fd-sidebar-folder {
|
|
222
|
+
margin: 2px 0;
|
|
223
|
+
padding: 0;
|
|
224
|
+
border-radius: 0;
|
|
225
|
+
border: none;
|
|
226
|
+
background: transparent;
|
|
227
|
+
overflow: visible;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.dark .fd-sidebar .fd-sidebar-folder.fd-sidebar-first-item {
|
|
231
|
+
margin-top: 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
aside a[data-active].w-full,
|
|
235
|
+
.fd-sidebar .fd-sidebar-folder-trigger {
|
|
124
236
|
font-weight: 600;
|
|
125
237
|
font-size: 0.875rem;
|
|
126
238
|
color: var(--color-fd-foreground);
|
|
127
|
-
padding
|
|
128
|
-
|
|
129
|
-
|
|
239
|
+
padding: 7px 10px 8px 10px;
|
|
240
|
+
margin-top: 0;
|
|
241
|
+
border: none;
|
|
130
242
|
background: transparent !important;
|
|
131
243
|
}
|
|
132
244
|
|
|
133
|
-
|
|
245
|
+
.dark .fd-sidebar .fd-sidebar-folder-trigger {
|
|
246
|
+
color: #e0e0e0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.fd-sidebar .fd-sidebar-folder-trigger:hover {
|
|
250
|
+
background: var(--color-fd-accent) !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.dark .fd-sidebar .fd-sidebar-folder-trigger:hover {
|
|
254
|
+
background: #2d2d2d !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
aside a[data-active].w-full:first-child,
|
|
258
|
+
.fd-sidebar-nav > .fd-sidebar-folder.fd-sidebar-first-item > .fd-sidebar-folder-trigger {
|
|
134
259
|
margin-top: 0;
|
|
135
260
|
}
|
|
136
261
|
|
|
137
|
-
|
|
138
|
-
|
|
262
|
+
/* Top-level page links — no card, normal spacing */
|
|
263
|
+
.fd-sidebar .fd-sidebar-top-link {
|
|
264
|
+
margin-top: 0;
|
|
265
|
+
padding: 6px 10px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.fd-sidebar .fd-sidebar-top-link.fd-sidebar-first-item {
|
|
269
|
+
margin-top: 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
aside a[data-active="true"].w-full,
|
|
273
|
+
.fd-sidebar .fd-sidebar-top-link.fd-sidebar-link-active,
|
|
274
|
+
.fd-sidebar .fd-sidebar-top-link[data-active="true"] {
|
|
275
|
+
color: var(--color-fd-primary) !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.dark .fd-sidebar .fd-sidebar-top-link.fd-sidebar-link-active,
|
|
279
|
+
.dark .fd-sidebar .fd-sidebar-top-link[data-active="true"] {
|
|
280
|
+
color: var(--fd-sidebar-active-text, #50c878) !important;
|
|
139
281
|
}
|
|
140
282
|
|
|
141
283
|
aside div.w-full:not([role]) {
|
|
@@ -147,7 +289,29 @@ aside div.w-full:not([role]) {
|
|
|
147
289
|
margin-top: 0.5rem;
|
|
148
290
|
}
|
|
149
291
|
|
|
150
|
-
|
|
292
|
+
.fd-sidebar .fd-sidebar-folder-content {
|
|
293
|
+
position: relative;
|
|
294
|
+
padding-left: 16px;
|
|
295
|
+
margin-left: 8px;
|
|
296
|
+
margin-top: 2px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.fd-sidebar .fd-sidebar-folder-content::before {
|
|
300
|
+
content: "";
|
|
301
|
+
position: absolute;
|
|
302
|
+
left: 4px;
|
|
303
|
+
top: 4px;
|
|
304
|
+
bottom: 4px;
|
|
305
|
+
width: 1px;
|
|
306
|
+
background: var(--color-fd-border);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.dark .fd-sidebar .fd-sidebar-folder-content::before {
|
|
310
|
+
background: var(--fd-sidebar-indent-line, var(--color-fd-border));
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
aside button[class*="bg-fd-secondary"],
|
|
314
|
+
.fd-sidebar .fd-sidebar-search-btn {
|
|
151
315
|
background: transparent;
|
|
152
316
|
border: 1px solid var(--color-fd-border);
|
|
153
317
|
border-radius: 8px;
|
|
@@ -155,7 +319,9 @@ aside button[class*="bg-fd-secondary"] {
|
|
|
155
319
|
}
|
|
156
320
|
|
|
157
321
|
aside .border-t,
|
|
158
|
-
aside [class*="border-t"]
|
|
322
|
+
aside [class*="border-t"],
|
|
323
|
+
.fd-sidebar .fd-sidebar-footer,
|
|
324
|
+
.fd-sidebar .fd-sidebar-footer-custom {
|
|
159
325
|
border-top-color: transparent;
|
|
160
326
|
}
|
|
161
327
|
|
|
@@ -425,7 +591,6 @@ details > :not(summary) {
|
|
|
425
591
|
}
|
|
426
592
|
|
|
427
593
|
.fd-page-description {
|
|
428
|
-
margin-bottom: 1rem;
|
|
429
594
|
font-size: 1rem;
|
|
430
595
|
line-height: 1.7;
|
|
431
596
|
color: var(--color-fd-muted-foreground);
|
|
@@ -490,6 +655,43 @@ details > :not(summary) {
|
|
|
490
655
|
filter: brightness(1.1);
|
|
491
656
|
}
|
|
492
657
|
|
|
658
|
+
.dark .fd-ai-floating-trigger .ask-ai-trigger {
|
|
659
|
+
font-family: var(--fd-font-sans, inherit);
|
|
660
|
+
border-radius: 999px !important;
|
|
661
|
+
background: var(--color-fd-primary) !important;
|
|
662
|
+
color: #fff !important;
|
|
663
|
+
box-shadow: 0 2px 8px rgba(38, 189, 108, 0.25) !important;
|
|
664
|
+
border: none !important;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.dark .fd-ai-floating-trigger .ask-ai-trigger:hover {
|
|
668
|
+
filter: brightness(1.1);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
:root:not(.dark) .fd-ai-floating-trigger .ask-ai-trigger {
|
|
672
|
+
font-family: var(--fd-font-sans, inherit);
|
|
673
|
+
border-radius: 999px !important;
|
|
674
|
+
background: var(--color-fd-primary) !important;
|
|
675
|
+
color: #fff !important;
|
|
676
|
+
box-shadow: 0 2px 8px rgba(13, 147, 115, 0.2) !important;
|
|
677
|
+
border: none !important;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
:root:not(.dark) .fd-ai-floating-trigger .ask-ai-trigger:hover {
|
|
681
|
+
filter: brightness(1.1);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.fd-ai-fm-input-bar .fd-ai-floating-trigger .ask-ai-trigger {
|
|
685
|
+
border-radius: 999px !important;
|
|
686
|
+
background: var(--color-fd-primary) !important;
|
|
687
|
+
color: #fff !important;
|
|
688
|
+
border: none !important;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.fd-ai-fm-input-bar .fd-ai-floating-trigger .ask-ai-trigger:hover {
|
|
692
|
+
filter: brightness(1.1);
|
|
693
|
+
}
|
|
694
|
+
|
|
493
695
|
.fd-ai-suggestion,
|
|
494
696
|
.fd-ai-result {
|
|
495
697
|
border-radius: 10px;
|
|
@@ -526,6 +728,14 @@ details > :not(summary) {
|
|
|
526
728
|
flex-shrink: 0;
|
|
527
729
|
}
|
|
528
730
|
|
|
731
|
+
.fd-sidebar-search-kbd {
|
|
732
|
+
display: flex;
|
|
733
|
+
gap: 2px;
|
|
734
|
+
margin-left: auto;
|
|
735
|
+
font-size: 0.75rem;
|
|
736
|
+
opacity: 0.6;
|
|
737
|
+
}
|
|
738
|
+
|
|
529
739
|
.fd-sidebar-search-kbd kbd {
|
|
530
740
|
font-family: inherit;
|
|
531
741
|
font-size: 0.7rem;
|
package/styles/omni.css
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════════
|
|
2
|
+
* Omni Command Palette — core styles (clone of website/components/ui/omni-command-palette)
|
|
3
|
+
* Uses same CSS variables as docs so it auto-adapts to every theme.
|
|
4
|
+
* ═══════════════════════════════════════════════════════════════════ */
|
|
5
|
+
|
|
6
|
+
@keyframes omni-fade-in {
|
|
7
|
+
from {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
10
|
+
to {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@keyframes omni-fade-out {
|
|
15
|
+
from {
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
@keyframes omni-scale-in {
|
|
23
|
+
from {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translateX(-50%) scale(0.96) translateY(-4px);
|
|
26
|
+
}
|
|
27
|
+
to {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
transform: translateX(-50%) scale(1) translateY(0);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@keyframes omni-scale-out {
|
|
33
|
+
from {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
transform: translateX(-50%) scale(1) translateY(0);
|
|
36
|
+
}
|
|
37
|
+
to {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transform: translateX(-50%) scale(0.96) translateY(-4px);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes omni-spin {
|
|
44
|
+
from {
|
|
45
|
+
transform: rotate(0deg);
|
|
46
|
+
}
|
|
47
|
+
to {
|
|
48
|
+
transform: rotate(360deg);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.omni-spin {
|
|
53
|
+
animation: omni-spin 1s linear infinite;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.omni-overlay {
|
|
57
|
+
position: fixed;
|
|
58
|
+
inset: 0;
|
|
59
|
+
z-index: 100;
|
|
60
|
+
background: rgba(0, 0, 0, 0.55);
|
|
61
|
+
backdrop-filter: blur(4px);
|
|
62
|
+
animation: omni-fade-in 150ms ease-out;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.omni-content {
|
|
66
|
+
position: fixed;
|
|
67
|
+
z-index: 101;
|
|
68
|
+
top: 18%;
|
|
69
|
+
left: 50%;
|
|
70
|
+
transform: translateX(-50%);
|
|
71
|
+
width: min(720px, calc(100% - 32px));
|
|
72
|
+
border-radius: var(--radius, 0.75rem);
|
|
73
|
+
border: 1px solid var(--color-fd-border, #262626);
|
|
74
|
+
background: var(--color-fd-popover, #0c0c0c);
|
|
75
|
+
color: var(--color-fd-foreground, #fafafa);
|
|
76
|
+
box-shadow:
|
|
77
|
+
0 24px 60px -12px rgba(0, 0, 0, 0.5),
|
|
78
|
+
0 0 0 1px rgba(255, 255, 255, 0.04);
|
|
79
|
+
outline: none;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
animation: omni-scale-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (max-width: 639px) {
|
|
85
|
+
.omni-content {
|
|
86
|
+
top: 10%;
|
|
87
|
+
width: calc(100% - 24px);
|
|
88
|
+
max-height: 75vh;
|
|
89
|
+
}
|
|
90
|
+
.omni-kbd {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Header */
|
|
96
|
+
.omni-header {
|
|
97
|
+
border-bottom: 1px solid var(--color-fd-border, #262626);
|
|
98
|
+
}
|
|
99
|
+
.omni-search-row {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 0.5rem;
|
|
103
|
+
padding: 0.625rem 0.875rem;
|
|
104
|
+
}
|
|
105
|
+
.omni-search-icon {
|
|
106
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
}
|
|
109
|
+
.omni-search-input {
|
|
110
|
+
flex: 1;
|
|
111
|
+
background: transparent;
|
|
112
|
+
outline: none;
|
|
113
|
+
font-size: 0.875rem;
|
|
114
|
+
line-height: 1.25rem;
|
|
115
|
+
color: var(--color-fd-foreground, #fafafa);
|
|
116
|
+
border: none;
|
|
117
|
+
}
|
|
118
|
+
.omni-search-input::placeholder {
|
|
119
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
120
|
+
}
|
|
121
|
+
.omni-kbd {
|
|
122
|
+
border-radius: 0.25rem;
|
|
123
|
+
background: var(--color-fd-muted, #262626);
|
|
124
|
+
padding: 0.125rem 0.375rem;
|
|
125
|
+
font-size: 10px;
|
|
126
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
127
|
+
font-family: inherit;
|
|
128
|
+
line-height: 1.4;
|
|
129
|
+
}
|
|
130
|
+
.omni-close-btn {
|
|
131
|
+
margin-left: 0.25rem;
|
|
132
|
+
border-radius: 0.25rem;
|
|
133
|
+
padding: 0.25rem;
|
|
134
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
135
|
+
transition: background 120ms;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
border: none;
|
|
138
|
+
background: none;
|
|
139
|
+
}
|
|
140
|
+
.omni-close-btn:hover {
|
|
141
|
+
background: var(--color-fd-muted, #262626);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Body / listbox */
|
|
145
|
+
.omni-body {
|
|
146
|
+
max-height: 60vh;
|
|
147
|
+
overflow: auto;
|
|
148
|
+
padding: 0.25rem;
|
|
149
|
+
}
|
|
150
|
+
.omni-body::-webkit-scrollbar {
|
|
151
|
+
width: 6px;
|
|
152
|
+
}
|
|
153
|
+
.omni-body::-webkit-scrollbar-track {
|
|
154
|
+
background: transparent;
|
|
155
|
+
}
|
|
156
|
+
.omni-body::-webkit-scrollbar-thumb {
|
|
157
|
+
background: var(--color-fd-muted, #262626);
|
|
158
|
+
border-radius: 3px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Loading */
|
|
162
|
+
.omni-loading {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 0.5rem;
|
|
166
|
+
padding: 0.5rem 0.75rem;
|
|
167
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
168
|
+
font-size: 0.75rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Groups */
|
|
172
|
+
.omni-group {
|
|
173
|
+
padding: 0.25rem 0;
|
|
174
|
+
}
|
|
175
|
+
.omni-group-label {
|
|
176
|
+
padding: 0.25rem 0.75rem;
|
|
177
|
+
font-size: 10px;
|
|
178
|
+
text-transform: uppercase;
|
|
179
|
+
letter-spacing: 0.06em;
|
|
180
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
181
|
+
font-weight: 500;
|
|
182
|
+
}
|
|
183
|
+
.omni-group-items {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Items */
|
|
189
|
+
.omni-item {
|
|
190
|
+
display: flex;
|
|
191
|
+
width: 100%;
|
|
192
|
+
align-items: center;
|
|
193
|
+
gap: 0.75rem;
|
|
194
|
+
border-radius: calc(var(--radius, 0.75rem) - 4px);
|
|
195
|
+
padding: 0.5rem 0.75rem;
|
|
196
|
+
text-align: left;
|
|
197
|
+
font-size: 0.875rem;
|
|
198
|
+
line-height: 1.25rem;
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
border: none;
|
|
201
|
+
background: transparent;
|
|
202
|
+
color: var(--color-fd-foreground, #fafafa);
|
|
203
|
+
transition: background 80ms;
|
|
204
|
+
}
|
|
205
|
+
.omni-item:hover,
|
|
206
|
+
.omni-item-active {
|
|
207
|
+
background: color-mix(in srgb, var(--color-fd-accent, #262626) 60%, transparent);
|
|
208
|
+
}
|
|
209
|
+
.omni-item-active {
|
|
210
|
+
color: var(--color-fd-accent-foreground, #fafafa);
|
|
211
|
+
}
|
|
212
|
+
.omni-item-disabled {
|
|
213
|
+
opacity: 0.5;
|
|
214
|
+
cursor: not-allowed;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.omni-item-icon {
|
|
218
|
+
flex-shrink: 0;
|
|
219
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
220
|
+
}
|
|
221
|
+
.omni-item-active .omni-item-icon {
|
|
222
|
+
color: var(--color-fd-accent-foreground, #fafafa);
|
|
223
|
+
}
|
|
224
|
+
.omni-item-text {
|
|
225
|
+
flex: 1;
|
|
226
|
+
min-width: 0;
|
|
227
|
+
}
|
|
228
|
+
.omni-item-label {
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
text-overflow: ellipsis;
|
|
231
|
+
white-space: nowrap;
|
|
232
|
+
}
|
|
233
|
+
.omni-item-subtitle {
|
|
234
|
+
overflow: hidden;
|
|
235
|
+
text-overflow: ellipsis;
|
|
236
|
+
white-space: nowrap;
|
|
237
|
+
font-size: 0.75rem;
|
|
238
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
239
|
+
opacity: 0.8;
|
|
240
|
+
}
|
|
241
|
+
.omni-item-active .omni-item-subtitle {
|
|
242
|
+
color: var(--color-fd-accent-foreground, #fafafa);
|
|
243
|
+
opacity: 0.7;
|
|
244
|
+
}
|
|
245
|
+
.omni-item-badge {
|
|
246
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
247
|
+
flex-shrink: 0;
|
|
248
|
+
}
|
|
249
|
+
.omni-item-ext {
|
|
250
|
+
position: relative;
|
|
251
|
+
z-index: 2;
|
|
252
|
+
display: inline-flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
justify-content: center;
|
|
255
|
+
padding: 0.25rem;
|
|
256
|
+
border-radius: 0.25rem;
|
|
257
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
258
|
+
flex-shrink: 0;
|
|
259
|
+
transition:
|
|
260
|
+
color 100ms,
|
|
261
|
+
background 100ms;
|
|
262
|
+
text-decoration: none;
|
|
263
|
+
}
|
|
264
|
+
.omni-item-ext:hover {
|
|
265
|
+
color: var(--color-fd-foreground, #fafafa);
|
|
266
|
+
background: var(--color-fd-muted, #262626);
|
|
267
|
+
}
|
|
268
|
+
.omni-item-shortcuts {
|
|
269
|
+
display: none;
|
|
270
|
+
align-items: center;
|
|
271
|
+
gap: 0.25rem;
|
|
272
|
+
font-size: 10px;
|
|
273
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
274
|
+
}
|
|
275
|
+
@media (min-width: 640px) {
|
|
276
|
+
.omni-item-shortcuts {
|
|
277
|
+
display: flex;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
.omni-kbd-sm {
|
|
281
|
+
border-radius: 0.25rem;
|
|
282
|
+
background: var(--color-fd-muted, #262626);
|
|
283
|
+
padding: 0.125rem 0.25rem;
|
|
284
|
+
font-family: inherit;
|
|
285
|
+
}
|
|
286
|
+
.omni-item-chevron {
|
|
287
|
+
width: 0.875rem;
|
|
288
|
+
height: 0.875rem;
|
|
289
|
+
margin-left: 0.25rem;
|
|
290
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
291
|
+
opacity: 0;
|
|
292
|
+
transition: opacity 120ms;
|
|
293
|
+
flex-shrink: 0;
|
|
294
|
+
}
|
|
295
|
+
.omni-item:hover .omni-item-chevron {
|
|
296
|
+
opacity: 1;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* Highlight */
|
|
300
|
+
.omni-highlight {
|
|
301
|
+
border-radius: 2px;
|
|
302
|
+
background: color-mix(in srgb, var(--color-fd-primary, #6366f1) 30%, transparent);
|
|
303
|
+
padding: 0 2px;
|
|
304
|
+
color: inherit;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* Empty states */
|
|
308
|
+
.omni-empty-group {
|
|
309
|
+
padding: 0.5rem 0.75rem;
|
|
310
|
+
font-size: 0.75rem;
|
|
311
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
312
|
+
}
|
|
313
|
+
.omni-empty {
|
|
314
|
+
padding: 2rem 0.75rem;
|
|
315
|
+
text-align: center;
|
|
316
|
+
font-size: 0.875rem;
|
|
317
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
318
|
+
}
|
|
319
|
+
.omni-empty-icon {
|
|
320
|
+
width: 2rem;
|
|
321
|
+
height: 2rem;
|
|
322
|
+
margin: 0 auto 0.5rem;
|
|
323
|
+
display: flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
justify-content: center;
|
|
326
|
+
border-radius: 9999px;
|
|
327
|
+
background: var(--color-fd-muted, #262626);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Footer */
|
|
331
|
+
.omni-footer {
|
|
332
|
+
border-top: 1px solid var(--color-fd-border, #262626);
|
|
333
|
+
}
|
|
334
|
+
.omni-footer-inner {
|
|
335
|
+
display: flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
justify-content: space-between;
|
|
338
|
+
padding: 0.5rem 0.75rem;
|
|
339
|
+
font-size: 0.75rem;
|
|
340
|
+
color: var(--color-fd-muted-foreground, #a3a3a3);
|
|
341
|
+
}
|
|
342
|
+
.omni-footer-hints {
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
gap: 1rem;
|
|
346
|
+
}
|
|
347
|
+
.omni-footer-hint {
|
|
348
|
+
display: flex;
|
|
349
|
+
align-items: center;
|
|
350
|
+
gap: 0.25rem;
|
|
351
|
+
}
|
|
352
|
+
.omni-footer-hint-desktop {
|
|
353
|
+
display: none;
|
|
354
|
+
}
|
|
355
|
+
@media (min-width: 640px) {
|
|
356
|
+
.omni-footer-hint-desktop {
|
|
357
|
+
display: flex;
|
|
358
|
+
}
|
|
359
|
+
}
|