-
Notifications
You must be signed in to change notification settings - Fork 580
Expand file tree
/
Copy pathglobals.css
More file actions
352 lines (298 loc) · 8.2 KB
/
globals.css
File metadata and controls
352 lines (298 loc) · 8.2 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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--primary: 210 100% 50%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 210 100% 50%;
--radius: 0.5rem;
}
.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--primary: 210 100% 50%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 210 100% 50%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
@layer utilities {
.bg-grid-slate-200 {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(226 232 240 / 0.8)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}
.bg-grid-slate-800 {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(30 41 59 / 0.8)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}
.hero-gradient-text {
background-image: linear-gradient(94deg, #2563eb 0%, #3b82f6 48%, #06b6d4 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0 2px 18px rgba(59, 130, 246, 0.18);
}
.dark .hero-gradient-text {
text-shadow: 0 2px 18px rgba(56, 189, 248, 0.22);
}
}
/* Ant Design Button Icon with Lucide icons */
.ant-btn-icon {
display: inline-flex !important;
align-items: center !important;
}
.ant-collapse-header {
@apply bg-gray-50;
}
.ant-collapse-collapsible-disabled {
cursor: default !important;
}
.ant-collapse-content-box {
padding-top: 0 !important;
padding-bottom: 0 !important;
padding-right: 0 !important;
}
.ant-collapse-item-active > .ant-collapse-header {
@apply shadow-md;
}
.ant-collapse-item-disabled > .ant-collapse-header {
@apply cursor-default;
}
/* Remove border radius from first and last collapse panels */
.tool-categories-collapse .ant-collapse-item:first-child .ant-collapse-header {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
.tool-categories-collapse .ant-collapse-item:last-child .ant-collapse-header {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
.tool-categories-collapse .ant-collapse-item:first-child .ant-collapse-content {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
.tool-categories-collapse .ant-collapse-item:last-child .ant-collapse-content {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
/* Ensure collapse panel headers have proper height */
.tool-categories-collapse .ant-collapse-header {
min-height: 36px !important;
padding: 8px 16px !important;
display: flex !important;
align-items: center !important;
}
/* Styles for the List component inside MemoryManageModal */
.memory-modal-list .ant-list-item {
display: flex;
align-items: flex-start;
margin-top: 2px;
}
.memory-modal-list .ant-list-item-action {
width: 5%;
margin-left: auto !important;
display: flex;
justify-content: right;
}
.memory-modal-panel {
background: #f9fafb;
border-radius: 4px;
border: 1px solid #f0f0f0;
}
/* Scrollbar styles */
/* For Webkit browsers (Chrome, Safari, Edge, etc.) */
::-webkit-scrollbar {
width: 16px;
background-color: transparent;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.4);
border-radius: 5px;
border: 2px solid transparent;
background-clip: content-box;
}
/* For Firefox */
* {
scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}
/* Tool Pool Tabs scroll fix */
.tool-pool-tabs .ant-tabs-content-holder {
overflow: hidden;
height: 100%;
}
.tool-pool-tabs .ant-tabs-content {
height: 100%;
}
.tool-pool-tabs .ant-tabs-tabpane {
height: 100%;
overflow: hidden;
}
/* Ensure tool pool tabs content area can scroll */
.tool-pool-tabs .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane > div {
height: 100%;
max-height: 100%;
}
/* Adjust tabs content area left and right padding - use stronger selector */
.tool-pool-tabs.ant-tabs.ant-tabs-left > .ant-tabs-content-holder {
padding-left: 12px !important;
padding-right: 9px !important;
margin-left: 0 !important;
}
.tool-pool-tabs.ant-tabs.ant-tabs-left > .ant-tabs-content-holder > .ant-tabs-content {
padding-left: 0 !important;
margin-left: 0 !important;
}
.tool-pool-tabs.ant-tabs.ant-tabs-left .ant-tabs-tabpane {
padding-left: 0 !important;
}
/* Reduce tab inner and outer margins to make tabs more compact */
.tool-pool-tabs .ant-tabs-tab {
padding: 12px 6px !important;
margin: 4px 2px !important;
min-height: auto !important;
width: auto !important;
max-width: 100px !important;
}
.tool-pool-tabs .ant-tabs-nav-list {
padding: 4px 0 !important;
width: auto !important;
}
.tool-pool-tabs .ant-tabs-tab-btn {
padding: 0 !important;
line-height: 1.2 !important;
}
/* Document chunks tabs layout */
.document-chunk-tabs {
height: 100%;
}
.document-chunk-tabs .ant-tabs {
height: 100%;
}
.document-chunk-tabs .ant-tabs-content-holder,
.document-chunk-tabs .ant-tabs-content,
.document-chunk-tabs .ant-tabs-tabpane {
height: 100%;
}
.document-chunk-tabs.ant-tabs-left > .ant-tabs-nav {
flex: 0 0 32%;
max-width: 32%;
}
.document-chunk-tabs.ant-tabs-left > .ant-tabs-content-holder {
flex: 1 1 68%;
max-width: 68%;
}
.document-chunk-tabs .ant-tabs-nav {
height: 100%;
}
.document-chunk-tabs .ant-tabs-nav-list {
height: 100%;
overflow-y: auto;
}
/* Active tab highlight style for document chunks */
.document-chunk-tabs .ant-tabs-tab.ant-tabs-tab-active {
background-color: rgb(226, 240, 253) !important;
}
.document-chunk-tabs .ant-tabs-tab.ant-tabs-tab-active::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background-color: #3b82f6;
/* border-radius: 0 2px 2px 0; */
}
.document-chunk-tabs .ant-tabs-tab.ant-tabs-tab-active::after {
content: none;
}
.document-chunk-tabs .ant-tabs-ink-bar {
display: none !important;
}
.document-chunk-tabs .ant-tabs-tab {
position: relative;
margin: 4px 1px !important;
padding: 8px 12px !important;
}
.document-chunk-tabs .ant-tabs-tab:hover {
background-color: rgb(241, 245, 249);
}
.chunk-count-badge .ant-badge-count {
box-shadow: none;
border: none;
}
/* Styles for Embedding warning modal */
.kb-embedding-warning .ant-modal-wrap {
position: absolute;
inset: 0;
}
.kb-embedding-warning .ant-modal {
width: max-content;
min-width: 0;
}
.button-text-full {
display: inline !important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
/* Selected table row: draw full-height left stripe inside first cell */
tr.selected-row > td:first-child {
position: relative;
z-index: 0;
}
tr.selected-row > td:first-child::before {
content: "";
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background-color: #3b82f6; /* tailwind border-blue-500 */
z-index: 5;
pointer-events: none;
border-radius: 0 4px 4px 0;
}
/* Override antd Tooltip inner border to prevent double borders */
.ant-tooltip .ant-tooltip-inner {
border: none !important;
}