akhaliq HF Staff commited on
Commit
8bcf740
·
verified ·
1 Parent(s): 9edc45f

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +69 -56
style.css CHANGED
@@ -6,7 +6,7 @@
6
 
7
  body {
8
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
9
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
10
  min-height: 100vh;
11
  display: flex;
12
  align-items: center;
@@ -18,8 +18,8 @@ body {
18
  width: 100%;
19
  max-width: 900px;
20
  background: white;
21
- border-radius: 20px;
22
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
23
  overflow: hidden;
24
  display: flex;
25
  flex-direction: column;
@@ -28,17 +28,19 @@ body {
28
  }
29
 
30
  header {
31
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
32
- color: white;
33
- padding: 20px;
34
  display: flex;
35
  justify-content: space-between;
36
  align-items: center;
 
37
  }
38
 
39
  header h1 {
40
- font-size: 24px;
41
- font-weight: 600;
 
42
  }
43
 
44
  .model-info {
@@ -48,11 +50,12 @@ header h1 {
48
  }
49
 
50
  .model-badge {
51
- background: rgba(255, 255, 255, 0.2);
 
52
  padding: 5px 12px;
53
- border-radius: 20px;
54
  font-size: 12px;
55
- font-weight: 500;
56
  }
57
 
58
  .device-toggle {
@@ -80,7 +83,7 @@ header h1 {
80
  left: 0;
81
  right: 0;
82
  bottom: 0;
83
- background-color: rgba(255, 255, 255, 0.3);
84
  transition: 0.3s;
85
  border-radius: 24px;
86
  }
@@ -98,7 +101,7 @@ header h1 {
98
  }
99
 
100
  input:checked + .slider {
101
- background-color: #4CAF50;
102
  }
103
 
104
  input:checked + .slider:before {
@@ -112,7 +115,8 @@ input:disabled + .slider {
112
 
113
  #deviceLabel {
114
  font-size: 12px;
115
- font-weight: 500;
 
116
  }
117
 
118
  .chat-container {
@@ -131,7 +135,7 @@ input:disabled + .slider {
131
  .welcome-message {
132
  text-align: center;
133
  padding: 40px 20px;
134
- color: #666;
135
  }
136
 
137
  .welcome-icon {
@@ -140,8 +144,9 @@ input:disabled + .slider {
140
  }
141
 
142
  .welcome-message h2 {
143
- color: #333;
144
  margin-bottom: 10px;
 
145
  }
146
 
147
  .message {
@@ -156,32 +161,34 @@ input:disabled + .slider {
156
  }
157
 
158
  .avatar {
159
- width: 36px;
160
- height: 36px;
161
  border-radius: 50%;
162
  display: flex;
163
  align-items: center;
164
  justify-content: center;
165
- font-size: 20px;
166
  flex-shrink: 0;
 
167
  }
168
 
169
  .message-content {
170
  max-width: 70%;
171
- padding: 12px 16px;
172
  border-radius: 18px;
173
- line-height: 1.5;
174
  word-wrap: break-word;
 
175
  }
176
 
177
  .message.user .message-content {
178
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
179
  color: white;
180
  }
181
 
182
  .message.assistant .message-content {
183
- background: #f1f3f5;
184
- color: #333;
185
  }
186
 
187
  .message.error .message-content {
@@ -200,8 +207,8 @@ input:disabled + .slider {
200
  .typing-dots {
201
  display: flex;
202
  gap: 4px;
203
- padding: 12px 16px;
204
- background: #f1f3f5;
205
  border-radius: 18px;
206
  width: fit-content;
207
  }
@@ -209,7 +216,7 @@ input:disabled + .slider {
209
  .typing-dots span {
210
  width: 8px;
211
  height: 8px;
212
- background: #999;
213
  border-radius: 50%;
214
  animation: typing 1.4s infinite;
215
  }
@@ -223,8 +230,8 @@ input:disabled + .slider {
223
  }
224
 
225
  .input-container {
226
- padding: 20px;
227
- border-top: 1px solid #e0e0e0;
228
  background: white;
229
  }
230
 
@@ -236,37 +243,39 @@ input:disabled + .slider {
236
 
237
  #userInput {
238
  flex: 1;
239
- padding: 12px;
240
- border: 2px solid #e0e0e0;
241
- border-radius: 12px;
242
  font-size: 15px;
243
  resize: none;
244
  outline: none;
245
- transition: border-color 0.3s;
246
  max-height: 120px;
247
- line-height: 1.5;
 
248
  }
249
 
250
  #userInput:focus {
251
- border-color: #667eea;
 
252
  }
253
 
254
  .send-button {
255
- width: 44px;
256
- height: 44px;
257
  border-radius: 50%;
258
  border: none;
259
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
260
  color: white;
261
  cursor: pointer;
262
  display: flex;
263
  align-items: center;
264
  justify-content: center;
265
- transition: transform 0.2s, opacity 0.2s;
266
  }
267
 
268
  .send-button:hover:not(:disabled) {
269
- transform: scale(1.05);
270
  }
271
 
272
  .send-button:disabled {
@@ -284,22 +293,23 @@ input:disabled + .slider {
284
 
285
  #charCount {
286
  font-size: 12px;
287
- color: #999;
288
  }
289
 
290
  .clear-button {
291
  font-size: 12px;
292
- color: #666;
293
  background: none;
294
  border: none;
295
  cursor: pointer;
296
  padding: 4px 8px;
297
- border-radius: 4px;
298
  transition: background 0.2s;
 
299
  }
300
 
301
  .clear-button:hover {
302
- background: #f1f3f5;
303
  }
304
 
305
  .init-loader {
@@ -318,36 +328,39 @@ input:disabled + .slider {
318
  }
319
 
320
  .spinner {
321
- width: 50px;
322
- height: 50px;
323
- border: 4px solid #f3f3f3;
324
- border-top: 4px solid #667eea;
325
  border-radius: 50%;
326
  animation: spin 1s linear infinite;
327
  margin: 0 auto 20px;
328
  }
329
 
330
  .loader-content p {
331
- color: #333;
332
  margin-bottom: 8px;
 
333
  }
334
 
335
  .loader-subtext {
336
- font-size: 14px;
337
- color: #666;
 
338
  }
339
 
340
  .notification {
341
  position: fixed;
342
  top: 20px;
343
  right: 20px;
344
- padding: 12px 20px;
345
  border-radius: 8px;
346
  background: white;
347
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
348
  transform: translateX(400px);
349
  transition: transform 0.3s;
350
  z-index: 2000;
 
351
  }
352
 
353
  .notification.show {
@@ -355,15 +368,15 @@ input:disabled + .slider {
355
  }
356
 
357
  .notification.success {
358
- border-left: 4px solid #4CAF50;
359
  }
360
 
361
  .notification.error {
362
- border-left: 4px solid #f44336;
363
  }
364
 
365
  .notification.info {
366
- border-left: 4px solid #2196F3;
367
  }
368
 
369
  @keyframes fadeIn {
 
6
 
7
  body {
8
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
9
+ background: #f0f2f5;
10
  min-height: 100vh;
11
  display: flex;
12
  align-items: center;
 
18
  width: 100%;
19
  max-width: 900px;
20
  background: white;
21
+ border-radius: 8px;
22
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
23
  overflow: hidden;
24
  display: flex;
25
  flex-direction: column;
 
28
  }
29
 
30
  header {
31
+ background: white;
32
+ color: #1c1e21;
33
+ padding: 16px 20px;
34
  display: flex;
35
  justify-content: space-between;
36
  align-items: center;
37
+ border-bottom: 1px solid #e4e6eb;
38
  }
39
 
40
  header h1 {
41
+ font-size: 20px;
42
+ font-weight: 700;
43
+ color: #1877f2;
44
  }
45
 
46
  .model-info {
 
50
  }
51
 
52
  .model-badge {
53
+ background: #e7f3ff;
54
+ color: #1877f2;
55
  padding: 5px 12px;
56
+ border-radius: 16px;
57
  font-size: 12px;
58
+ font-weight: 600;
59
  }
60
 
61
  .device-toggle {
 
83
  left: 0;
84
  right: 0;
85
  bottom: 0;
86
+ background-color: #b0b3b8;
87
  transition: 0.3s;
88
  border-radius: 24px;
89
  }
 
101
  }
102
 
103
  input:checked + .slider {
104
+ background-color: #1877f2;
105
  }
106
 
107
  input:checked + .slider:before {
 
115
 
116
  #deviceLabel {
117
  font-size: 12px;
118
+ font-weight: 600;
119
+ color: #65676b;
120
  }
121
 
122
  .chat-container {
 
135
  .welcome-message {
136
  text-align: center;
137
  padding: 40px 20px;
138
+ color: #65676b;
139
  }
140
 
141
  .welcome-icon {
 
144
  }
145
 
146
  .welcome-message h2 {
147
+ color: #1c1e21;
148
  margin-bottom: 10px;
149
+ font-weight: 700;
150
  }
151
 
152
  .message {
 
161
  }
162
 
163
  .avatar {
164
+ width: 32px;
165
+ height: 32px;
166
  border-radius: 50%;
167
  display: flex;
168
  align-items: center;
169
  justify-content: center;
170
+ font-size: 18px;
171
  flex-shrink: 0;
172
+ background: #e4e6eb;
173
  }
174
 
175
  .message-content {
176
  max-width: 70%;
177
+ padding: 8px 12px;
178
  border-radius: 18px;
179
+ line-height: 1.4;
180
  word-wrap: break-word;
181
+ font-size: 15px;
182
  }
183
 
184
  .message.user .message-content {
185
+ background: #1877f2;
186
  color: white;
187
  }
188
 
189
  .message.assistant .message-content {
190
+ background: #e4e6eb;
191
+ color: #1c1e21;
192
  }
193
 
194
  .message.error .message-content {
 
207
  .typing-dots {
208
  display: flex;
209
  gap: 4px;
210
+ padding: 8px 12px;
211
+ background: #e4e6eb;
212
  border-radius: 18px;
213
  width: fit-content;
214
  }
 
216
  .typing-dots span {
217
  width: 8px;
218
  height: 8px;
219
+ background: #65676b;
220
  border-radius: 50%;
221
  animation: typing 1.4s infinite;
222
  }
 
230
  }
231
 
232
  .input-container {
233
+ padding: 16px 20px;
234
+ border-top: 1px solid #e4e6eb;
235
  background: white;
236
  }
237
 
 
243
 
244
  #userInput {
245
  flex: 1;
246
+ padding: 10px 12px;
247
+ border: 1px solid #ccd0d5;
248
+ border-radius: 20px;
249
  font-size: 15px;
250
  resize: none;
251
  outline: none;
252
+ transition: border-color 0.2s;
253
  max-height: 120px;
254
+ line-height: 1.4;
255
+ background: #f0f2f5;
256
  }
257
 
258
  #userInput:focus {
259
+ border-color: #1877f2;
260
+ background: white;
261
  }
262
 
263
  .send-button {
264
+ width: 36px;
265
+ height: 36px;
266
  border-radius: 50%;
267
  border: none;
268
+ background: #1877f2;
269
  color: white;
270
  cursor: pointer;
271
  display: flex;
272
  align-items: center;
273
  justify-content: center;
274
+ transition: background 0.2s, opacity 0.2s;
275
  }
276
 
277
  .send-button:hover:not(:disabled) {
278
+ background: #166fe5;
279
  }
280
 
281
  .send-button:disabled {
 
293
 
294
  #charCount {
295
  font-size: 12px;
296
+ color: #65676b;
297
  }
298
 
299
  .clear-button {
300
  font-size: 12px;
301
+ color: #1877f2;
302
  background: none;
303
  border: none;
304
  cursor: pointer;
305
  padding: 4px 8px;
306
+ border-radius: 6px;
307
  transition: background 0.2s;
308
+ font-weight: 600;
309
  }
310
 
311
  .clear-button:hover {
312
+ background: #e7f3ff;
313
  }
314
 
315
  .init-loader {
 
328
  }
329
 
330
  .spinner {
331
+ width: 48px;
332
+ height: 48px;
333
+ border: 3px solid #e4e6eb;
334
+ border-top: 3px solid #1877f2;
335
  border-radius: 50%;
336
  animation: spin 1s linear infinite;
337
  margin: 0 auto 20px;
338
  }
339
 
340
  .loader-content p {
341
+ color: #1c1e21;
342
  margin-bottom: 8px;
343
+ font-weight: 600;
344
  }
345
 
346
  .loader-subtext {
347
+ font-size: 13px;
348
+ color: #65676b;
349
+ font-weight: 400;
350
  }
351
 
352
  .notification {
353
  position: fixed;
354
  top: 20px;
355
  right: 20px;
356
+ padding: 12px 16px;
357
  border-radius: 8px;
358
  background: white;
359
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
360
  transform: translateX(400px);
361
  transition: transform 0.3s;
362
  z-index: 2000;
363
+ font-size: 14px;
364
  }
365
 
366
  .notification.show {
 
368
  }
369
 
370
  .notification.success {
371
+ border-left: 4px solid #42b883;
372
  }
373
 
374
  .notification.error {
375
+ border-left: 4px solid #f02849;
376
  }
377
 
378
  .notification.info {
379
+ border-left: 4px solid #1877f2;
380
  }
381
 
382
  @keyframes fadeIn {