akhaliq HF Staff commited on
Commit
b3bc4a3
·
verified ·
1 Parent(s): c502257

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +400 -50
style.css CHANGED
@@ -1,76 +1,426 @@
1
  * {
2
- box-sizing: border-box;
3
- padding: 0;
4
- margin: 0;
5
- font-family: sans-serif;
6
  }
7
 
8
- html,
9
- body {
10
- height: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
12
 
13
  body {
14
- padding: 32px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
- body,
18
- #container {
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: center;
22
- align-items: center;
23
  }
24
 
25
- #container {
26
- position: relative;
27
- gap: 0.4rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- width: 640px;
30
- height: 640px;
31
- max-width: 100%;
32
- max-height: 100%;
 
 
 
 
33
 
34
- border: 2px dashed #D1D5DB;
35
- border-radius: 0.75rem;
36
- overflow: hidden;
37
- cursor: pointer;
38
- margin: 1rem;
39
 
40
- background-size: 100% 100%;
41
- background-position: center;
42
- background-repeat: no-repeat;
43
- font-size: 18px;
 
44
  }
45
 
46
- #upload {
47
- display: none;
 
 
 
 
 
 
 
 
 
 
 
48
  }
49
 
50
- svg {
51
- pointer-events: none;
52
  }
53
 
54
- #example {
55
- font-size: 14px;
56
- text-decoration: underline;
57
- cursor: pointer;
 
 
 
58
  }
59
 
60
- #example:hover {
61
- color: #2563EB;
 
 
 
 
 
 
62
  }
63
 
64
- .bounding-box {
65
- position: absolute;
66
- box-sizing: border-box;
67
- border: solid 2px;
68
  }
69
 
70
- .bounding-box-label {
71
- color: white;
72
- position: absolute;
73
- font-size: 12px;
74
- margin: -16px 0 0 -2px;
75
- padding: 1px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
 
1
  * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
 
5
  }
6
 
7
+ :root {
8
+ /* Apple iOS colors */
9
+ --blue: #007AFF;
10
+ --blue-dark: #0051D5;
11
+ --gray: #8E8E93;
12
+ --gray-light: #C7C7CC;
13
+ --gray-lighter: #E5E5EA;
14
+ --gray-lightest: #F2F2F7;
15
+ --white: #FFFFFF;
16
+ --black: #000000;
17
+ --text-primary: #000000;
18
+ --text-secondary: #3C3C43;
19
+ --text-tertiary: #8E8E93;
20
+ --separator: rgba(60, 60, 67, 0.36);
21
+ --fill-tertiary: rgba(118, 118, 128, 0.12);
22
+ }
23
+
24
+ @media (prefers-color-scheme: dark) {
25
+ :root {
26
+ --blue: #0A84FF;
27
+ --gray-lightest: #1C1C1E;
28
+ --gray-lighter: #2C2C2E;
29
+ --gray-light: #48484A;
30
+ --gray: #8E8E93;
31
+ --white: #000000;
32
+ --black: #FFFFFF;
33
+ --text-primary: #FFFFFF;
34
+ --text-secondary: #EBEBF5;
35
+ --text-tertiary: #8E8E93;
36
+ --separator: rgba(84, 84, 88, 0.65);
37
+ --fill-tertiary: rgba(118, 118, 128, 0.24);
38
+ }
39
  }
40
 
41
  body {
42
+ font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
43
+ background: var(--gray-lightest);
44
+ color: var(--text-primary);
45
+ line-height: 1.47059;
46
+ font-size: 17px;
47
+ overflow: hidden;
48
+ -webkit-font-smoothing: antialiased;
49
+ -moz-osx-font-smoothing: grayscale;
50
+ }
51
+
52
+ .container {
53
+ max-width: 980px;
54
+ margin: 0 auto;
55
+ height: 100vh;
56
+ display: flex;
57
+ flex-direction: column;
58
+ background: var(--white);
59
+ }
60
+
61
+ .header {
62
+ background: var(--white);
63
+ padding: 20px 20px 16px;
64
+ border-bottom: 0.5px solid var(--separator);
65
+ backdrop-filter: saturate(180%) blur(20px);
66
+ -webkit-backdrop-filter: saturate(180%) blur(20px);
67
+ }
68
+
69
+ .header-content {
70
+ text-align: center;
71
+ margin-bottom: 12px;
72
+ }
73
+
74
+ .title {
75
+ font-size: 28px;
76
+ font-weight: 700;
77
+ letter-spacing: -0.5px;
78
+ margin-bottom: 2px;
79
+ color: var(--text-primary);
80
+ }
81
+
82
+ .subtitle {
83
+ font-size: 13px;
84
+ color: var(--text-secondary);
85
+ font-weight: 400;
86
+ letter-spacing: -0.08px;
87
+ }
88
+
89
+ .built-with {
90
+ display: inline-block;
91
+ color: var(--blue);
92
+ text-decoration: none;
93
+ font-size: 13px;
94
+ padding: 6px 12px;
95
+ background: var(--fill-tertiary);
96
+ border-radius: 12px;
97
+ transition: all 0.2s ease;
98
+ font-weight: 500;
99
+ }
100
+
101
+ .built-with:hover {
102
+ background: var(--gray-lighter);
103
+ transform: scale(1.02);
104
+ }
105
+
106
+ .built-with:active {
107
+ transform: scale(0.98);
108
+ }
109
+
110
+ .chat-container {
111
+ flex: 1;
112
+ display: flex;
113
+ flex-direction: column;
114
+ overflow: hidden;
115
+ }
116
+
117
+ .messages-container {
118
+ flex: 1;
119
+ overflow-y: auto;
120
+ padding: 20px;
121
+ scroll-behavior: smooth;
122
+ }
123
+
124
+ .messages-container::-webkit-scrollbar {
125
+ width: 6px;
126
+ }
127
+
128
+ .messages-container::-webkit-scrollbar-track {
129
+ background: transparent;
130
+ }
131
+
132
+ .messages-container::-webkit-scrollbar-thumb {
133
+ background: var(--gray-light);
134
+ border-radius: 3px;
135
+ }
136
+
137
+ .welcome-message {
138
+ text-align: center;
139
+ padding: 60px 20px;
140
+ }
141
+
142
+ .welcome-icon {
143
+ margin-bottom: 20px;
144
+ animation: gentle-bounce 2s ease-in-out infinite;
145
+ }
146
+
147
+ @keyframes gentle-bounce {
148
+ 0%, 100% { transform: translateY(0); }
149
+ 50% { transform: translateY(-8px); }
150
+ }
151
+
152
+ .welcome-message h2 {
153
+ font-size: 22px;
154
+ font-weight: 600;
155
+ letter-spacing: -0.4px;
156
+ margin-bottom: 8px;
157
+ color: var(--text-primary);
158
+ }
159
+
160
+ .welcome-message p {
161
+ font-size: 15px;
162
+ color: var(--text-secondary);
163
+ max-width: 400px;
164
+ margin: 0 auto;
165
+ line-height: 1.4;
166
+ }
167
+
168
+ .message {
169
+ display: flex;
170
+ margin-bottom: 16px;
171
+ animation: message-appear 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
172
+ }
173
+
174
+ @keyframes message-appear {
175
+ from {
176
+ opacity: 0;
177
+ transform: translateY(8px);
178
+ }
179
+ to {
180
+ opacity: 1;
181
+ transform: translateY(0);
182
+ }
183
+ }
184
+
185
+ .message.user {
186
+ justify-content: flex-end;
187
+ }
188
+
189
+ .message-content {
190
+ max-width: 70%;
191
+ padding: 12px 16px;
192
+ border-radius: 18px;
193
+ font-size: 15px;
194
+ line-height: 1.4;
195
+ word-wrap: break-word;
196
+ position: relative;
197
  }
198
 
199
+ .message.user .message-content {
200
+ background: var(--blue);
201
+ color: white;
202
+ border-bottom-right-radius: 4px;
 
 
203
  }
204
 
205
+ .message.assistant .message-content {
206
+ background: var(--gray-lighter);
207
+ color: var(--text-primary);
208
+ border-bottom-left-radius: 4px;
209
+ }
210
+
211
+ .typing-indicator {
212
+ display: flex;
213
+ gap: 4px;
214
+ padding: 12px 16px;
215
+ align-items: center;
216
+ }
217
+
218
+ .typing-dot {
219
+ width: 8px;
220
+ height: 8px;
221
+ background: var(--gray);
222
+ border-radius: 50%;
223
+ animation: typing-animation 1.4s infinite;
224
+ }
225
+
226
+ .typing-dot:nth-child(2) {
227
+ animation-delay: 0.2s;
228
+ }
229
+
230
+ .typing-dot:nth-child(3) {
231
+ animation-delay: 0.4s;
232
+ }
233
+
234
+ @keyframes typing-animation {
235
+ 0%, 60%, 100% {
236
+ transform: translateY(0);
237
+ opacity: 0.5;
238
+ }
239
+ 30% {
240
+ transform: translateY(-6px);
241
+ opacity: 1;
242
+ }
243
+ }
244
+
245
+ .input-container {
246
+ padding: 8px 16px 20px;
247
+ background: var(--white);
248
+ border-top: 0.5px solid var(--separator);
249
+ }
250
+
251
+ .input-wrapper {
252
+ display: flex;
253
+ gap: 8px;
254
+ align-items: flex-end;
255
+ background: var(--gray-lightest);
256
+ border-radius: 20px;
257
+ padding: 8px 8px 8px 16px;
258
+ border: 1px solid var(--separator);
259
+ transition: all 0.2s ease;
260
+ }
261
+
262
+ .input-wrapper:focus-within {
263
+ border-color: var(--blue);
264
+ background: var(--white);
265
+ }
266
+
267
+ #userInput {
268
+ flex: 1;
269
+ border: none;
270
+ background: transparent;
271
+ padding: 4px 0;
272
+ font-size: 17px;
273
+ font-family: inherit;
274
+ resize: none;
275
+ max-height: 120px;
276
+ outline: none;
277
+ color: var(--text-primary);
278
+ line-height: 1.4;
279
+ }
280
+
281
+ #userInput::placeholder {
282
+ color: var(--text-tertiary);
283
+ }
284
+
285
+ .send-btn {
286
+ width: 32px;
287
+ height: 32px;
288
+ border: none;
289
+ background: var(--blue);
290
+ color: white;
291
+ border-radius: 50%;
292
+ cursor: pointer;
293
+ display: flex;
294
+ align-items: center;
295
+ justify-content: center;
296
+ transition: all 0.2s ease;
297
+ flex-shrink: 0;
298
+ }
299
 
300
+ .send-btn:hover:not(:disabled) {
301
+ background: var(--blue-dark);
302
+ transform: scale(1.05);
303
+ }
304
+
305
+ .send-btn:active:not(:disabled) {
306
+ transform: scale(0.95);
307
+ }
308
 
309
+ .send-btn:disabled {
310
+ background: var(--gray-light);
311
+ cursor: not-allowed;
312
+ opacity: 0.4;
313
+ }
314
 
315
+ .status {
316
+ margin-top: 8px;
317
+ text-align: center;
318
+ font-size: 13px;
319
+ color: var(--text-tertiary);
320
  }
321
 
322
+ .loading-overlay {
323
+ position: fixed;
324
+ top: 0;
325
+ left: 0;
326
+ right: 0;
327
+ bottom: 0;
328
+ background: rgba(0, 0, 0, 0.4);
329
+ backdrop-filter: saturate(180%) blur(20px);
330
+ -webkit-backdrop-filter: saturate(180%) blur(20px);
331
+ display: flex;
332
+ align-items: center;
333
+ justify-content: center;
334
+ z-index: 1000;
335
  }
336
 
337
+ .loading-overlay.hidden {
338
+ display: none;
339
  }
340
 
341
+ .loading-content {
342
+ background: var(--white);
343
+ padding: 40px;
344
+ border-radius: 20px;
345
+ text-align: center;
346
+ max-width: 360px;
347
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
348
  }
349
 
350
+ .loading-spinner {
351
+ width: 50px;
352
+ height: 50px;
353
+ border: 3px solid var(--gray-lighter);
354
+ border-top-color: var(--blue);
355
+ border-radius: 50%;
356
+ animation: spin 0.8s linear infinite;
357
+ margin: 0 auto 24px;
358
  }
359
 
360
+ @keyframes spin {
361
+ to { transform: rotate(360deg); }
 
 
362
  }
363
 
364
+ .loading-content h3 {
365
+ font-size: 22px;
366
+ margin-bottom: 8px;
367
+ font-weight: 600;
368
+ letter-spacing: -0.4px;
369
+ color: var(--text-primary);
370
+ }
371
+
372
+ .loading-content p {
373
+ color: var(--text-secondary);
374
+ margin-bottom: 20px;
375
+ font-size: 15px;
376
+ }
377
+
378
+ .progress-bar {
379
+ width: 100%;
380
+ height: 4px;
381
+ background: var(--gray-lighter);
382
+ border-radius: 2px;
383
+ overflow: hidden;
384
+ margin-bottom: 8px;
385
+ }
386
+
387
+ .progress-fill {
388
+ height: 100%;
389
+ background: var(--blue);
390
+ width: 0%;
391
+ transition: width 0.3s ease;
392
+ border-radius: 2px;
393
+ }
394
+
395
+ .progress-text {
396
+ font-size: 13px;
397
+ color: var(--text-tertiary);
398
+ font-weight: 500;
399
+ }
400
+
401
+ @media (max-width: 768px) {
402
+ .container {
403
+ max-width: 100%;
404
+ }
405
+
406
+ .header {
407
+ padding: 16px;
408
+ }
409
+
410
+ .title {
411
+ font-size: 24px;
412
+ }
413
+
414
+ .messages-container {
415
+ padding: 16px;
416
+ }
417
+
418
+ .message-content {
419
+ max-width: 80%;
420
+ }
421
+
422
+ .loading-content {
423
+ margin: 20px;
424
+ padding: 32px;
425
+ }
426
  }