akhaliq HF Staff commited on
Commit
a62a267
·
verified ·
1 Parent(s): 5bfb419

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +98 -102
style.css CHANGED
@@ -26,94 +26,103 @@ body {
26
  .header {
27
  background: #ffffff;
28
  color: #1c1e21;
29
- padding: 1rem 2rem;
30
  display: flex;
31
  justify-content: space-between;
32
  align-items: center;
33
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
34
  position: sticky;
35
  top: 0;
36
  z-index: 100;
37
- border-bottom: 1px solid rgba(0, 0, 0, 0.05);
38
  }
39
 
40
  .header h1 {
41
  display: flex;
42
  align-items: center;
43
- gap: 0.5rem;
44
- font-size: 1.5rem;
45
- font-weight: 400;
46
  color: #1c1e21;
47
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 
48
  }
49
 
50
  .device-selector {
51
  display: flex;
52
  align-items: center;
53
- gap: 0.5rem;
54
- background: #e4e6ea;
55
- padding: 0.5rem 0.75rem;
56
- border-radius: 20px;
57
- border: 1px solid rgba(0, 0, 0, 0.1);
 
58
  }
59
 
60
  .device-selector label {
61
- font-size: 0.9rem;
62
- font-weight: 500;
63
- color: #65676b;
64
  white-space: nowrap;
65
  }
66
 
67
  .device-selector select {
68
  background: #ffffff;
69
- border: 1px solid #ccd0d5;
70
- padding: 0.375rem 0.5rem;
71
- border-radius: 6px;
72
- font-size: 0.9rem;
73
  color: #1c1e21;
74
  cursor: pointer;
75
- min-width: 100px;
 
76
  }
77
 
78
  .btn-secondary {
79
  background: #ffffff;
80
- border: 1px solid #ccd0d5;
81
  color: #1c1e21;
82
- padding: 0.5rem 0.75rem;
83
- border-radius: 6px;
84
  cursor: pointer;
85
  display: flex;
86
  align-items: center;
87
- gap: 0.25rem;
88
- font-size: 0.85rem;
89
- transition: all 0.2s ease;
90
  font-weight: 500;
91
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 
92
  }
93
 
94
  .btn-secondary:hover {
95
  background: #f5f6f5;
96
- border-color: #adadad;
97
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
 
98
  }
99
 
100
  .chat-container {
101
  flex: 1;
102
  display: flex;
103
  flex-direction: column;
104
- max-width: 800px;
105
  margin: 0 auto;
106
  width: 100%;
107
- padding: 1rem;
108
  background: #f0f2f5;
109
  }
110
 
111
  .messages-container {
112
  flex: 1;
113
  overflow-y: auto;
114
- padding: 1rem 0;
115
  scroll-behavior: smooth;
116
- max-height: calc(100vh - 200px);
 
 
 
 
117
  }
118
 
119
  .welcome-message {
@@ -121,41 +130,47 @@ body {
121
  }
122
 
123
  .message {
124
- margin-bottom: 1.5rem;
125
- animation: fadeIn 0.3s ease-out;
126
  display: flex;
127
  flex-direction: column;
 
 
128
  }
129
 
130
  @keyframes fadeIn {
131
- from { opacity: 0; transform: translateY(10px); }
132
- to { opacity: 1; transform: translateY(0); }
133
  }
134
 
135
  .message-header {
136
  display: flex;
137
  align-items: center;
138
- gap: 0.5rem;
139
- margin-bottom: 0.375rem;
140
- font-size: 0.8rem;
141
  color: #65676b;
142
  }
143
 
144
  .message-header i {
145
  color: #65676b;
146
- width: 16px;
147
  text-align: center;
148
- font-size: 0.9rem;
 
 
 
149
  }
150
 
151
  .user-message .message-header i {
152
  color: #0084ff;
 
153
  }
154
 
155
  .message-author {
156
  font-weight: 600;
157
  color: #1c1e21;
158
- font-size: 0.85rem;
159
  }
160
 
161
  .user-message .message-author {
@@ -164,43 +179,45 @@ body {
164
 
165
  .message-time {
166
  margin-left: auto;
167
- font-size: 0.75rem;
168
  color: #b0b3b8;
 
169
  }
170
 
171
  .message-content {
172
- padding: 0.75rem 1rem;
173
- border-radius: 18px;
174
- line-height: 1.4;
175
  word-wrap: break-word;
176
  max-width: 100%;
177
  position: relative;
178
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
179
- font-size: 0.95rem;
 
180
  }
181
 
182
  .assistant-message .message-content {
183
  background: #ffffff;
184
  border: 1px solid #e4e6ea;
185
  color: #1c1e21;
186
- margin-left: 3rem;
187
- margin-right: 1rem;
188
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
189
  }
190
 
191
  .user-message .message-content {
192
- background: #0084ff;
193
  color: #ffffff;
194
  margin-right: 0;
195
  margin-left: auto;
196
- max-width: 80%;
197
  align-self: flex-end;
198
- box-shadow: 0 1px 2px rgba(0, 132, 255, 0.3);
199
  }
200
 
201
  strong {
202
  color: #1c1e21;
203
- font-weight: 600;
204
  }
205
 
206
  em {
@@ -208,23 +225,25 @@ em {
208
  }
209
 
210
  code {
211
- background: #f0f2f5;
212
- padding: 0.2rem 0.4rem;
213
- border-radius: 4px;
214
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
215
  font-size: 0.9em;
216
- color: #65676b;
217
  border: 1px solid #e4e6ea;
 
218
  }
219
 
220
  .math-equation {
221
- background: #f0f2f5;
222
- padding: 0.2rem 0.4rem;
223
- border-radius: 4px;
224
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
225
- color: #0084ff;
226
  font-size: 0.95em;
227
  border: 1px solid #e4e6ea;
 
228
  }
229
 
230
  .math-equation sup,
@@ -240,73 +259,50 @@ code {
240
  }
241
 
242
  .input-container {
243
- padding: 1rem 0;
244
  background: #ffffff;
245
  border-top: 1px solid #e4e6ea;
246
  position: sticky;
247
  bottom: 0;
248
- box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
 
249
  }
250
 
251
  .input-wrapper {
252
  display: flex;
253
- gap: 0.75rem;
254
  max-width: 100%;
255
- padding: 0 1rem;
 
 
 
256
  }
257
 
258
  #message-input {
259
  flex: 1;
260
- padding: 0.75rem 1rem;
261
- border: 1px solid #ccd0d5;
262
- border-radius: 22px;
263
  font-size: 1rem;
264
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
265
  resize: none;
266
  outline: none;
267
- transition: all 0.2s ease;
268
- background: #f0f2f5;
269
- min-height: 50px;
270
- max-height: 120px;
271
  overflow-y: auto;
272
  color: #1c1e21;
 
273
  }
274
 
275
  #message-input:focus {
276
- border-color: #0084ff;
277
  background: #ffffff;
278
- box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.2);
279
  }
280
 
281
  .send-button {
282
- background: #0084ff;
283
- border: none;
284
- padding: 0.75rem;
285
- border-radius: 50%;
286
- cursor: pointer;
287
- display: flex;
288
- align-items: center;
289
- justify-content: center;
290
- transition: all 0.2s ease;
291
- min-width: 50px;
292
- height: 50px;
293
- color: white;
294
- font-size: 1rem;
295
- box-shadow: 0 1px 2px rgba(0, 132, 255, 0.3);
296
- }
297
-
298
- .send-button:hover:not(:disabled) {
299
- background: #0066cc;
300
- transform: translateY(-1px);
301
- box-shadow: 0 2px 4px rgba(0, 132, 255, 0.4);
302
- }
303
-
304
- .send-button:disabled {
305
- opacity: 0.5;
306
- cursor: not-allowed;
307
- background: #e4e6ea;
308
- transform: none;
309
- }
310
 
311
  .input-footer {
312
  text-align: center;
 
26
  .header {
27
  background: #ffffff;
28
  color: #1c1e21;
29
+ padding: 1.25rem 2rem;
30
  display: flex;
31
  justify-content: space-between;
32
  align-items: center;
33
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
34
  position: sticky;
35
  top: 0;
36
  z-index: 100;
37
+ border-bottom: 1px solid #e4e6ea;
38
  }
39
 
40
  .header h1 {
41
  display: flex;
42
  align-items: center;
43
+ gap: 0.75rem;
44
+ font-size: 1.6rem;
45
+ font-weight: 500;
46
  color: #1c1e21;
47
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
48
+ letter-spacing: -0.01em;
49
  }
50
 
51
  .device-selector {
52
  display: flex;
53
  align-items: center;
54
+ gap: 0.75rem;
55
+ background: #f5f6f5;
56
+ padding: 0.625rem 1rem;
57
+ border-radius: 24px;
58
+ border: 1px solid #e4e6ea;
59
+ backdrop-filter: blur(10px);
60
  }
61
 
62
  .device-selector label {
63
+ font-size: 0.95rem;
64
+ font-weight: 600;
65
+ color: #1c1e21;
66
  white-space: nowrap;
67
  }
68
 
69
  .device-selector select {
70
  background: #ffffff;
71
+ border: 1px solid #dadde1;
72
+ padding: 0.5rem 0.75rem;
73
+ border-radius: 8px;
74
+ font-size: 0.95rem;
75
  color: #1c1e21;
76
  cursor: pointer;
77
+ min-width: 120px;
78
+ font-weight: 500;
79
  }
80
 
81
  .btn-secondary {
82
  background: #ffffff;
83
+ border: 1px solid #dadde1;
84
  color: #1c1e21;
85
+ padding: 0.625rem 1rem;
86
+ border-radius: 8px;
87
  cursor: pointer;
88
  display: flex;
89
  align-items: center;
90
+ gap: 0.375rem;
91
+ font-size: 0.95rem;
92
+ transition: all 0.15s ease;
93
  font-weight: 500;
94
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
95
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
96
  }
97
 
98
  .btn-secondary:hover {
99
  background: #f5f6f5;
100
+ border-color: #b7bbbf;
101
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
102
+ transform: translateY(-1px);
103
  }
104
 
105
  .chat-container {
106
  flex: 1;
107
  display: flex;
108
  flex-direction: column;
109
+ max-width: 900px;
110
  margin: 0 auto;
111
  width: 100%;
112
+ padding: 1.5rem;
113
  background: #f0f2f5;
114
  }
115
 
116
  .messages-container {
117
  flex: 1;
118
  overflow-y: auto;
119
+ padding: 1.5rem 0;
120
  scroll-behavior: smooth;
121
+ max-height: calc(100vh - 220px);
122
+ border-radius: 12px;
123
+ background: #ffffff;
124
+ margin-bottom: 1rem;
125
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
126
  }
127
 
128
  .welcome-message {
 
130
  }
131
 
132
  .message {
133
+ margin-bottom: 2rem;
134
+ animation: fadeIn 0.25s ease-out;
135
  display: flex;
136
  flex-direction: column;
137
+ opacity: 0;
138
+ animation-fill-mode: forwards;
139
  }
140
 
141
  @keyframes fadeIn {
142
+ from { opacity: 0; transform: translateY(15px) scale(0.98); }
143
+ to { opacity: 1; transform: translateY(0) scale(1); }
144
  }
145
 
146
  .message-header {
147
  display: flex;
148
  align-items: center;
149
+ gap: 0.75rem;
150
+ margin-bottom: 0.5rem;
151
+ font-size: 0.85rem;
152
  color: #65676b;
153
  }
154
 
155
  .message-header i {
156
  color: #65676b;
157
+ width: 20px;
158
  text-align: center;
159
+ font-size: 1rem;
160
+ border-radius: 50%;
161
+ padding: 0.25rem;
162
+ background: rgba(101, 103, 107, 0.1);
163
  }
164
 
165
  .user-message .message-header i {
166
  color: #0084ff;
167
+ background: rgba(0, 132, 255, 0.1);
168
  }
169
 
170
  .message-author {
171
  font-weight: 600;
172
  color: #1c1e21;
173
+ font-size: 0.9rem;
174
  }
175
 
176
  .user-message .message-author {
 
179
 
180
  .message-time {
181
  margin-left: auto;
182
+ font-size: 0.8rem;
183
  color: #b0b3b8;
184
+ font-weight: 400;
185
  }
186
 
187
  .message-content {
188
+ padding: 1rem 1.25rem;
189
+ border-radius: 20px;
190
+ line-height: 1.45;
191
  word-wrap: break-word;
192
  max-width: 100%;
193
  position: relative;
194
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
195
+ font-size: 1rem;
196
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
197
  }
198
 
199
  .assistant-message .message-content {
200
  background: #ffffff;
201
  border: 1px solid #e4e6ea;
202
  color: #1c1e21;
203
+ margin-left: 3.5rem;
204
+ margin-right: 1.5rem;
205
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
206
  }
207
 
208
  .user-message .message-content {
209
+ background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
210
  color: #ffffff;
211
  margin-right: 0;
212
  margin-left: auto;
213
+ max-width: 85%;
214
  align-self: flex-end;
215
+ box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
216
  }
217
 
218
  strong {
219
  color: #1c1e21;
220
+ font-weight: 700;
221
  }
222
 
223
  em {
 
225
  }
226
 
227
  code {
228
+ background: #f5f6f5;
229
+ padding: 0.25rem 0.5rem;
230
+ border-radius: 6px;
231
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
232
  font-size: 0.9em;
233
+ color: #1c1e21;
234
  border: 1px solid #e4e6ea;
235
+ font-weight: 500;
236
  }
237
 
238
  .math-equation {
239
+ background: #f5f6f5;
240
+ padding: 0.25rem 0.5rem;
241
+ border-radius: 6px;
242
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
243
+ color: #1877f2;
244
  font-size: 0.95em;
245
  border: 1px solid #e4e6ea;
246
+ font-weight: 500;
247
  }
248
 
249
  .math-equation sup,
 
259
  }
260
 
261
  .input-container {
262
+ padding: 1.5rem 0;
263
  background: #ffffff;
264
  border-top: 1px solid #e4e6ea;
265
  position: sticky;
266
  bottom: 0;
267
+ box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
268
+ border-radius: 12px 12px 0 0;
269
  }
270
 
271
  .input-wrapper {
272
  display: flex;
273
+ gap: 1rem;
274
  max-width: 100%;
275
+ padding: 0 1.5rem;
276
+ background: #f5f6f5;
277
+ border-radius: 24px;
278
+ border: 1px solid #e4e6ea;
279
  }
280
 
281
  #message-input {
282
  flex: 1;
283
+ padding: 1rem 1.25rem;
284
+ border: none;
285
+ border-radius: 20px;
286
  font-size: 1rem;
287
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
288
  resize: none;
289
  outline: none;
290
+ transition: all 0.15s ease;
291
+ background: #ffffff;
292
+ min-height: 56px;
293
+ max-height: 140px;
294
  overflow-y: auto;
295
  color: #1c1e21;
296
+ font-weight: 400;
297
  }
298
 
299
  #message-input:focus {
 
300
  background: #ffffff;
301
+ box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
302
  }
303
 
304
  .send-button {
305
+ background: linear-gradient(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
 
307
  .input-footer {
308
  text-align: center;