-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.css
More file actions
297 lines (259 loc) · 8.53 KB
/
index.css
File metadata and controls
297 lines (259 loc) · 8.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
:root {
font-family: 'Geist Mono', monospace;
line-height: 1.5;
font-weight: 400;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
--radius: 0;
--background: oklch(1 0 0);
--foreground: oklch(0.141 0.005 285.823);
--card: oklch(1 0 0);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.141 0.005 285.823);
--primary: oklch(0.466 0.168 255.5); /* #0A64C8 */
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.96 0.02 258.8);
--secondary-foreground: oklch(0.3 0.1 258.8);
--muted: oklch(0.96 0.015 258.8);
--muted-foreground: oklch(0.5 0.05 258.8);
--accent: oklch(0.96 0.02 258.8);
--accent-foreground: oklch(0.3 0.1 258.8);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--ring: oklch(0.6 0.15 258.8);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.141 0.005 285.823);
--sidebar-primary: oklch(0.466 0.168 255.5); /* #0A64C8 */
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.96 0.02 258.8);
--sidebar-accent-foreground: oklch(0.3 0.1 258.8);
--sidebar-border: oklch(0.92 0.02 258.8);
--sidebar-ring: oklch(0.6 0.15 258.8);
--destructive-foreground: var(--color-red-700);
--info: var(--color-blue-500);
--info-foreground: var(--color-blue-700);
--success: var(--color-emerald-500);
--success-foreground: var(--color-emerald-700);
--warning: var(--color-amber-500);
--warning-foreground: var(--color-amber-700);
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
}
@theme inline {
--animate-skeleton: skeleton 2s -1s infinite linear;
--color-warning-foreground: var(--warning-foreground);
--color-warning: var(--warning);
--color-success-foreground: var(--success-foreground);
--color-success: var(--success);
--color-info-foreground: var(--info-foreground);
--color-info: var(--info);
--color-destructive-foreground: var(--destructive-foreground);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--color-foreground: var(--foreground);
--color-background: var(--background);
--radius: 0;
--radius-sm: 0;
--radius-md: 0;
--radius-lg: 0;
--radius-xl: 0;
--radius-2xl: 0;
--radius-3xl: 0;
--radius-4xl: 0;
@keyframes skeleton {
to {
background-position: -200% 0;
}
}
}
.dark {
--background: oklch(0.141 0.005 285.823);
--foreground: oklch(0.985 0 0);
--card: oklch(0.21 0.006 285.885);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.21 0.006 285.885);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.55 0.2 258.8);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.25 0.04 258.8);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.25 0.03 258.8);
--muted-foreground: oklch(0.65 0.08 258.8);
--accent: oklch(0.25 0.04 258.8);
--accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.55 0.18 258.8);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.21 0.006 285.885);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.55 0.2 258.8);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.25 0.04 258.8);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.55 0.18 258.8);
--destructive-foreground: var(--color-red-400);
--info: var(--color-blue-500);
--info-foreground: var(--color-blue-400);
--success: var(--color-emerald-500);
--success-foreground: var(--color-emerald-400);
--warning: var(--color-amber-500);
--warning-foreground: var(--color-amber-400);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
/* Global button styles for consistent UX */
button {
@apply cursor-pointer;
}
button:disabled {
@apply cursor-not-allowed;
}
/* CodeMirror Autocomplete */
.cm-tooltip-autocomplete {
@apply min-w-80 max-w-lg bg-popover border border-border shadow-lg;
}
.cm-tooltip-autocomplete > ul > li {
@apply flex items-center px-2 py-1 min-h-6 text-popover-foreground;
}
.cm-tooltip-autocomplete ul li[aria-selected] {
background: color-mix(in oklch, var(--primary) 12%, transparent) !important;
color: var(--foreground) !important;
}
.cm-tooltip-autocomplete ul li[aria-selected] .cm-completionDetail {
@apply text-muted-foreground;
}
/* Matched text highlighting */
.cm-completionMatchedText {
@apply text-primary;
}
/* Bold on selected items */
.cm-tooltip-autocomplete ul li[aria-selected] .cm-completionMatchedText {
@apply font-semibold;
}
/* Hide default label, we use custom highlighted version */
.cm-completionLabel {
@apply hidden;
}
.cm-completionLabel-highlighted {
@apply shrink-0 font-mono text-[13px];
}
.cm-completionDetail {
@apply grow ml-3 text-muted-foreground font-mono text-xs text-right truncate;
}
/* Function info panel (shown beside autocomplete) */
.cm-completionInfo {
@apply py-3 px-4 bg-popover border border-border border-l-0 shadow-lg text-popover-foreground min-w-64 max-w-80;
}
.cm-function-info {
@apply flex flex-col gap-2.5;
}
/* Signature line: name(args) → returnType */
.cm-function-info-signature {
@apply font-mono text-[13px] leading-normal break-all;
}
.cm-function-info-name {
@apply text-purple-600 dark:text-purple-400 font-semibold;
}
.cm-function-info-args-inline {
@apply text-foreground;
}
.cm-function-info-return {
@apply text-muted-foreground;
}
/* Description */
.cm-function-info-description {
@apply text-muted-foreground text-xs leading-relaxed pt-2.5 border-t border-border;
}
/* Signature Help (parameter hints) */
.cm-signature-help {
@apply px-3 py-2 bg-popover border border-border rounded shadow-lg font-mono text-xs text-popover-foreground;
}
.cm-signature-help-signature {
@apply text-foreground;
}
.cm-signature-help-name {
@apply text-purple-600 dark:text-purple-400 font-medium;
}
.cm-signature-help-arg {
@apply text-muted-foreground;
}
.cm-signature-help-arg-active {
@apply text-foreground font-semibold underline underline-offset-2;
}
/* PostgreSQL Syntax Highlighting (SSMS-inspired colors) */
.pg-keyword {
color: #0000ff; /* Blue - reserved keywords */
}
.pg-keyword-unreserved {
color: #8000ff; /* Purple - unreserved keywords */
}
.pg-type {
color: #2b91af; /* Teal - type names */
}
.pg-string {
color: #a31515; /* Dark red - strings */
}
.pg-number {
color: #098658; /* Dark green - numbers */
}
.pg-comment {
color: #008000; /* Green - comments */
}
.pg-param {
color: #ff00ff; /* Magenta - parameters */
}
}