Repository navigation
Expand file tree
/
Copy pathinput.css
More file actions
327 lines (276 loc) · 6.27 KB
/
Copy pathinput.css
File metadata and controls
327 lines (276 loc) · 6.27 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
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
}
@layer utilities {
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
}
@layer components {
.cais-nav-icon {
width: 14px;
height: 14px;
flex-shrink: 0;
}
.htmx-swapping {
opacity: 0;
transition: opacity 150ms ease-out;
}
.htmx-settling {
opacity: 1;
transition: opacity 150ms ease-in;
}
form.htmx-request button[type="submit"] {
@apply opacity-60 pointer-events-none;
}
.htmx-indicator {
@apply hidden;
}
.htmx-request .htmx-indicator {
@apply inline-block;
}
.htmx-request .htmx-request-hide {
@apply hidden;
}
form[data-cais-chat-form] button[type="submit"] {
@apply inline-flex items-center justify-center shrink-0;
}
form[data-cais-chat-form].htmx-request button[type="submit"] .htmx-request-hide {
@apply hidden;
}
form[data-cais-chat-form].htmx-request button[type="submit"] .htmx-indicator {
@apply inline-flex;
}
.cais-toast-enter {
animation: cais-toast-in 200ms ease-out;
}
@keyframes cais-toast-in {
from {
opacity: 0;
transform: translate(-50%, -0.75rem);
}
to {
opacity: 1;
transform: translate(-50%, 0);
}
}
.htmx-request .cais-skeleton {
@apply animate-pulse bg-slate-200 rounded-lg;
}
.cais-auth-screen {
@apply min-h-screen bg-gradient-to-br from-indigo-50 via-white to-violet-100;
}
.cais-password-wrap {
@apply relative;
}
.cais-password-wrap input {
padding-right: 2.5rem;
}
.cais-password-toggle {
@apply absolute right-0 top-0 flex h-full items-center px-3 text-slate-400 hover:text-slate-600;
border: none;
background: transparent;
cursor: pointer;
}
.cais-password-toggle svg {
width: 1rem;
height: 1rem;
}
.relative > [data-cais-password-toggle] {
@apply absolute right-0 top-0 flex h-full items-center px-3 text-slate-400 hover:text-slate-600;
border: none;
background: transparent;
cursor: pointer;
}
.relative > input[type="password"] {
padding-right: 2.5rem;
}
.cais-select-search {
position: relative;
}
.cais-select-search-native {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.cais-select-search-trigger {
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
border-radius: 0.5rem;
border: 1px solid rgb(203 213 225);
background: rgb(255 255 255);
padding: 0.5rem 0.75rem;
text-align: left;
outline: none;
}
.cais-select-search-trigger:focus {
box-shadow: 0 0 0 2px rgb(99 102 241);
}
.cais-select-search-trigger:disabled {
cursor: not-allowed;
background: rgb(248 250 252);
opacity: 0.6;
}
.cais-select-search-panel {
position: absolute;
z-index: 20;
margin-top: 0.25rem;
width: 100%;
overflow: hidden;
border-radius: 0.5rem;
border: 1px solid rgb(226 232 240);
background: rgb(255 255 255);
box-shadow:
0 10px 15px -3px rgb(0 0 0 / 0.1),
0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.cais-select-search-input {
width: 100%;
border: 0;
border-bottom: 1px solid rgb(226 232 240);
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
line-height: 1.25rem;
outline: none;
}
.cais-select-search-list {
max-height: 12rem;
overflow-y: auto;
margin: 0;
padding: 0.25rem 0;
list-style: none;
}
.cais-select-search-option {
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
line-height: 1.25rem;
cursor: pointer;
}
.cais-select-search-option:hover {
background: rgb(238 242 255);
}
.cais-select-search-option.is-selected {
background: rgb(238 242 255);
font-weight: 500;
color: rgb(67 56 202);
}
.cais-select-search-option.is-highlighted {
background: rgb(241 245 249);
}
.cais-select-search-option.is-hidden {
display: none;
}
.cais-select-search-chevron {
width: 1rem;
height: 1rem;
flex-shrink: 0;
color: rgb(148 163 184);
}
.cais-chat-shell {
min-height: 0;
}
.cais-chat-messages-wrap {
position: relative;
min-height: 0;
}
#chat-messages {
overflow-x: hidden;
max-width: 100%;
overflow-anchor: none;
-webkit-overflow-scrolling: touch;
}
.cais-chat-scroll-down {
position: absolute;
bottom: 0.75rem;
left: 50%;
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
width: 2.75rem;
height: 2.75rem;
border-radius: 9999px;
border: 1px solid rgb(226 232 240);
background: rgb(255 255 255);
color: rgb(79 70 229);
box-shadow:
0 10px 15px -3px rgb(0 0 0 / 0.1),
0 4px 6px -4px rgb(0 0 0 / 0.1);
transform: translateX(-50%) translateY(0.5rem);
opacity: 0;
pointer-events: none;
transition:
opacity 0.2s ease,
transform 0.2s ease;
}
.cais-chat-scroll-down:not(.hidden) {
opacity: 1;
pointer-events: auto;
transform: translateX(-50%) translateY(0);
}
.cais-chat-scroll-down:active {
transform: translateX(-50%) scale(0.96);
}
.cais-chat-bubble {
overflow-wrap: anywhere;
word-break: break-word;
white-space: pre-wrap;
}
.cais-msg-time {
font-size: 0.625rem;
line-height: 1rem;
font-weight: 600;
letter-spacing: 0.01em;
color: rgb(148 163 184);
}
.cais-msg-user .cais-msg-time {
color: rgb(129 140 248);
}
.cais-thinking-dots {
display: inline-flex;
align-items: center;
gap: 0.2rem;
width: 1.5rem;
}
.cais-thinking-dots span {
display: block;
width: 0.35rem;
height: 0.35rem;
border-radius: 9999px;
background: rgb(148 163 184);
animation: cais-thinking-bounce 1.2s ease-in-out infinite;
}
.cais-thinking-dots span:nth-child(2) {
animation-delay: 0.15s;
}
.cais-thinking-dots span:nth-child(3) {
animation-delay: 0.3s;
}
@keyframes cais-thinking-bounce {
0%,
80%,
100% {
transform: translateY(0);
opacity: 0.4;
}
40% {
transform: translateY(-0.2rem);
opacity: 1;
}
}
}