akhaliq HF Staff commited on
Commit
75051c4
·
verified ·
1 Parent(s): b767261

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +374 -50
style.css CHANGED
@@ -1,76 +1,400 @@
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
+ --primary-color: #007AFF;
9
+ --primary-hover: #0051D5;
10
+ --background: #F5F5F7;
11
+ --surface: #FFFFFF;
12
+ --text-primary: #1D1D1F;
13
+ --text-secondary: #86868B;
14
+ --border: #D2D2D7;
15
+ --user-message: #007AFF;
16
+ --ai-message: #E8E8ED;
17
+ --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
18
+ --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
19
  }
20
 
21
  body {
22
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
23
+ background: var(--background);
24
+ color: var(--text-primary);
25
+ line-height: 1.6;
26
+ overflow-x: hidden;
27
+ }
28
+
29
+ .container {
30
+ max-width: 900px;
31
+ margin: 0 auto;
32
+ height: 100vh;
33
+ display: flex;
34
+ flex-direction: column;
35
+ background: var(--surface);
36
+ box-shadow: var(--shadow-lg);
37
+ }
38
+
39
+ header {
40
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
41
+ color: white;
42
+ padding: 24px 32px;
43
+ display: flex;
44
+ justify-content: space-between;
45
+ align-items: center;
46
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
47
+ }
48
+
49
+ .header-content h1 {
50
+ font-size: 28px;
51
+ font-weight: 600;
52
+ display: flex;
53
+ align-items: center;
54
+ gap: 12px;
55
+ margin-bottom: 4px;
56
+ }
57
+
58
+ .logo-icon {
59
+ width: 32px;
60
+ height: 32px;
61
+ }
62
+
63
+ .subtitle {
64
+ font-size: 14px;
65
+ opacity: 0.9;
66
+ font-weight: 400;
67
+ margin-left: 44px;
68
+ }
69
+
70
+ .built-with {
71
+ color: white;
72
+ text-decoration: none;
73
+ font-size: 13px;
74
+ opacity: 0.9;
75
+ transition: opacity 0.2s;
76
+ padding: 8px 16px;
77
+ border-radius: 20px;
78
+ background: rgba(255, 255, 255, 0.1);
79
+ backdrop-filter: blur(10px);
80
+ }
81
+
82
+ .built-with:hover {
83
+ opacity: 1;
84
+ background: rgba(255, 255, 255, 0.2);
85
+ }
86
+
87
+ .chat-container {
88
+ flex: 1;
89
+ display: flex;
90
+ flex-direction: column;
91
+ overflow: hidden;
92
+ position: relative;
93
+ }
94
+
95
+ .loading-screen {
96
+ position: absolute;
97
+ top: 0;
98
+ left: 0;
99
+ right: 0;
100
+ bottom: 0;
101
+ background: var(--surface);
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: center;
105
+ z-index: 1000;
106
+ }
107
+
108
+ .loading-screen.hidden {
109
+ display: none;
110
+ }
111
+
112
+ .loading-content {
113
+ text-align: center;
114
+ max-width: 400px;
115
+ padding: 32px;
116
+ }
117
+
118
+ .spinner {
119
+ width: 60px;
120
+ height: 60px;
121
+ border: 4px solid var(--border);
122
+ border-top-color: var(--primary-color);
123
+ border-radius: 50%;
124
+ animation: spin 1s linear infinite;
125
+ margin: 0 auto 24px;
126
  }
127
 
128
+ @keyframes spin {
129
+ to { transform: rotate(360deg); }
 
 
 
 
130
  }
131
 
132
+ .loading-text {
133
+ font-size: 18px;
134
+ font-weight: 500;
135
+ margin-bottom: 8px;
136
+ color: var(--text-primary);
137
+ }
138
+
139
+ .loading-subtext {
140
+ font-size: 14px;
141
+ color: var(--text-secondary);
142
+ margin-bottom: 24px;
143
+ }
144
 
145
+ .progress-bar {
146
+ width: 100%;
147
+ height: 6px;
148
+ background: var(--border);
149
+ border-radius: 3px;
150
+ overflow: hidden;
151
+ margin-bottom: 12px;
152
+ }
153
 
154
+ .progress-fill {
155
+ height: 100%;
156
+ background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
157
+ width: 0%;
158
+ transition: width 0.3s ease;
159
+ }
160
+
161
+ .progress-text {
162
+ font-size: 13px;
163
+ color: var(--text-secondary);
164
+ font-weight: 500;
165
+ }
166
+
167
+ .chat-messages {
168
+ flex: 1;
169
+ overflow-y: auto;
170
+ padding: 24px 32px;
171
+ display: flex;
172
+ flex-direction: column;
173
+ gap: 16px;
174
+ }
175
+
176
+ .chat-messages::-webkit-scrollbar {
177
+ width: 8px;
178
+ }
179
+
180
+ .chat-messages::-webkit-scrollbar-track {
181
+ background: transparent;
182
+ }
183
+
184
+ .chat-messages::-webkit-scrollbar-thumb {
185
+ background: var(--border);
186
+ border-radius: 4px;
187
+ }
188
+
189
+ .chat-messages::-webkit-scrollbar-thumb:hover {
190
+ background: var(--text-secondary);
191
+ }
192
+
193
+ .message {
194
+ display: flex;
195
+ gap: 12px;
196
+ max-width: 85%;
197
+ animation: slideIn 0.3s ease;
198
+ }
199
+
200
+ @keyframes slideIn {
201
+ from {
202
+ opacity: 0;
203
+ transform: translateY(10px);
204
+ }
205
+ to {
206
+ opacity: 1;
207
+ transform: translateY(0);
208
+ }
209
+ }
210
+
211
+ .message.user {
212
+ align-self: flex-end;
213
+ flex-direction: row-reverse;
214
+ }
215
 
216
+ .message-avatar {
217
+ width: 36px;
218
+ height: 36px;
219
+ border-radius: 50%;
220
+ display: flex;
221
+ align-items: center;
222
+ justify-content: center;
223
+ flex-shrink: 0;
224
+ font-weight: 600;
225
+ font-size: 14px;
226
  }
227
 
228
+ .message.user .message-avatar {
229
+ background: var(--user-message);
230
+ color: white;
231
  }
232
 
233
+ .message.assistant .message-avatar {
234
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
235
+ color: white;
236
  }
237
 
238
+ .message-content {
239
+ background: var(--ai-message);
240
+ padding: 12px 16px;
241
+ border-radius: 18px;
242
+ word-wrap: break-word;
243
+ line-height: 1.5;
244
  }
245
 
246
+ .message.user .message-content {
247
+ background: var(--user-message);
248
+ color: white;
249
  }
250
 
251
+ .message.assistant .message-content {
252
+ background: var(--ai-message);
253
+ color: var(--text-primary);
 
254
  }
255
 
256
+ .typing-indicator {
257
+ display: flex;
258
+ gap: 4px;
259
+ padding: 8px 0;
260
+ }
261
+
262
+ .typing-dot {
263
+ width: 8px;
264
+ height: 8px;
265
+ border-radius: 50%;
266
+ background: var(--text-secondary);
267
+ animation: typing 1.4s infinite;
268
+ }
269
+
270
+ .typing-dot:nth-child(2) {
271
+ animation-delay: 0.2s;
272
+ }
273
+
274
+ .typing-dot:nth-child(3) {
275
+ animation-delay: 0.4s;
276
+ }
277
+
278
+ @keyframes typing {
279
+ 0%, 60%, 100% {
280
+ opacity: 0.3;
281
+ transform: translateY(0);
282
+ }
283
+ 30% {
284
+ opacity: 1;
285
+ transform: translateY(-8px);
286
+ }
287
+ }
288
+
289
+ .input-container {
290
+ padding: 16px 32px 24px;
291
+ background: var(--surface);
292
+ border-top: 1px solid var(--border);
293
+ }
294
+
295
+ .input-wrapper {
296
+ display: flex;
297
+ gap: 12px;
298
+ align-items: flex-end;
299
+ background: var(--background);
300
+ border: 2px solid var(--border);
301
+ border-radius: 24px;
302
+ padding: 8px 12px;
303
+ transition: border-color 0.2s;
304
+ }
305
+
306
+ .input-wrapper:focus-within {
307
+ border-color: var(--primary-color);
308
+ }
309
+
310
+ #messageInput {
311
+ flex: 1;
312
+ border: none;
313
+ background: transparent;
314
+ resize: none;
315
+ outline: none;
316
+ font-family: inherit;
317
+ font-size: 15px;
318
+ color: var(--text-primary);
319
+ max-height: 120px;
320
+ padding: 8px;
321
+ }
322
+
323
+ #messageInput::placeholder {
324
+ color: var(--text-secondary);
325
+ }
326
+
327
+ #messageInput:disabled {
328
+ opacity: 0.5;
329
+ cursor: not-allowed;
330
+ }
331
+
332
+ .send-button {
333
+ width: 36px;
334
+ height: 36px;
335
+ border: none;
336
+ background: var(--primary-color);
337
+ color: white;
338
+ border-radius: 50%;
339
+ cursor: pointer;
340
+ display: flex;
341
+ align-items: center;
342
+ justify-content: center;
343
+ transition: all 0.2s;
344
+ flex-shrink: 0;
345
+ }
346
+
347
+ .send-button:hover:not(:disabled) {
348
+ background: var(--primary-hover);
349
+ transform: scale(1.05);
350
+ }
351
+
352
+ .send-button:active:not(:disabled) {
353
+ transform: scale(0.95);
354
+ }
355
+
356
+ .send-button:disabled {
357
+ opacity: 0.5;
358
+ cursor: not-allowed;
359
+ }
360
+
361
+ .send-button svg {
362
+ width: 18px;
363
+ height: 18px;
364
+ }
365
+
366
+ .input-footer {
367
+ margin-top: 8px;
368
+ text-align: center;
369
+ }
370
+
371
+ .hint {
372
+ font-size: 12px;
373
+ color: var(--text-secondary);
374
+ }
375
+
376
+ @media (max-width: 768px) {
377
+ .container {
378
+ max-width: 100%;
379
+ }
380
+
381
+ header {
382
+ padding: 16px 20px;
383
+ }
384
+
385
+ .header-content h1 {
386
+ font-size: 22px;
387
+ }
388
+
389
+ .chat-messages {
390
+ padding: 16px 20px;
391
+ }
392
+
393
+ .message {
394
+ max-width: 90%;
395
+ }
396
+
397
+ .input-container {
398
+ padding: 12px 20px 16px;
399
+ }
400
  }