akhaliq HF Staff commited on
Commit
7db4cfe
·
verified ·
1 Parent(s): 2deea22

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +301 -50
style.css CHANGED
@@ -1,76 +1,327 @@
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
  body {
8
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
9
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
10
+ min-height: 100vh;
11
+ padding: 20px;
12
  }
13
 
14
+ .container {
15
+ max-width: 900px;
16
+ margin: 0 auto;
17
+ background: white;
18
+ border-radius: 20px;
19
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
20
+ overflow: hidden;
21
+ }
22
+
23
+ header {
24
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
25
+ color: white;
26
+ padding: 30px;
27
+ text-align: center;
28
+ }
29
+
30
+ header h1 {
31
+ font-size: 2em;
32
+ margin-bottom: 10px;
33
+ }
34
+
35
+ .subtitle {
36
+ opacity: 0.9;
37
+ font-size: 0.95em;
38
+ }
39
+
40
+ .attribution {
41
+ margin-top: 10px;
42
+ font-size: 0.85em;
43
+ opacity: 0.8;
44
  }
45
 
46
+ .attribution a {
47
+ color: #fff;
48
+ text-decoration: underline;
49
+ font-weight: 600;
 
 
50
  }
51
 
52
+ .attribution a:hover {
53
+ opacity: 0.9;
54
+ }
55
+
56
+ .status-bar {
57
+ background: #f8f9fa;
58
+ border-bottom: 1px solid #e9ecef;
59
+ padding: 15px 30px;
60
+ }
61
 
62
+ .status-content {
63
+ display: flex;
64
+ align-items: center;
65
+ gap: 15px;
66
+ }
67
+
68
+ #statusText {
69
+ font-size: 0.9em;
70
+ color: #495057;
71
+ font-weight: 500;
72
+ }
73
+
74
+ .progress-container {
75
+ flex: 1;
76
+ height: 6px;
77
+ background: #e9ecef;
78
+ border-radius: 3px;
79
+ overflow: hidden;
80
+ }
81
+
82
+ .progress-bar {
83
+ height: 100%;
84
+ background: linear-gradient(90deg, #667eea, #764ba2);
85
+ width: 0%;
86
+ transition: width 0.3s ease;
87
+ }
88
+
89
+ .chat-container {
90
+ height: 500px;
91
+ display: flex;
92
+ flex-direction: column;
93
+ }
94
+
95
+ .messages {
96
+ flex: 1;
97
+ overflow-y: auto;
98
+ padding: 20px 30px;
99
+ display: flex;
100
+ flex-direction: column;
101
+ gap: 15px;
102
+ }
103
+
104
+ .message {
105
+ display: flex;
106
+ animation: slideIn 0.3s ease;
107
+ }
108
+
109
+ @keyframes slideIn {
110
+ from {
111
+ opacity: 0;
112
+ transform: translateY(10px);
113
+ }
114
+ to {
115
+ opacity: 1;
116
+ transform: translateY(0);
117
+ }
118
+ }
119
+
120
+ .message-content {
121
+ max-width: 80%;
122
+ padding: 15px 20px;
123
+ border-radius: 15px;
124
+ line-height: 1.5;
125
+ }
126
+
127
+ .message.user {
128
+ justify-content: flex-end;
129
+ }
130
+
131
+ .message.user .message-content {
132
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
133
+ color: white;
134
+ }
135
+
136
+ .message.assistant .message-content {
137
+ background: #f8f9fa;
138
+ color: #212529;
139
+ }
140
+
141
+ .message-content strong {
142
+ display: block;
143
+ margin-bottom: 5px;
144
+ font-size: 0.85em;
145
+ opacity: 0.8;
146
+ }
147
+
148
+ .message-content p {
149
+ margin: 0;
150
+ white-space: pre-wrap;
151
+ word-wrap: break-word;
152
+ }
153
+
154
+ .typing-indicator {
155
+ display: inline-flex;
156
+ gap: 4px;
157
+ padding: 10px 0;
158
+ }
159
+
160
+ .typing-indicator span {
161
+ width: 8px;
162
+ height: 8px;
163
+ background: #667eea;
164
+ border-radius: 50%;
165
+ animation: bounce 1.4s infinite ease-in-out;
166
+ }
167
 
168
+ .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
169
+ .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
 
 
 
170
 
171
+ @keyframes bounce {
172
+ 0%, 80%, 100% { transform: scale(0); }
173
+ 40% { transform: scale(1); }
 
174
  }
175
 
176
+ .input-container {
177
+ padding: 20px 30px;
178
+ border-top: 1px solid #e9ecef;
179
+ display: flex;
180
+ gap: 10px;
181
+ background: #f8f9fa;
182
  }
183
 
184
+ #userInput {
185
+ flex: 1;
186
+ padding: 12px 15px;
187
+ border: 2px solid #e9ecef;
188
+ border-radius: 10px;
189
+ font-family: inherit;
190
+ font-size: 0.95em;
191
+ resize: none;
192
+ transition: border-color 0.3s ease;
193
  }
194
 
195
+ #userInput:focus {
196
+ outline: none;
197
+ border-color: #667eea;
 
198
  }
199
 
200
+ #userInput:disabled {
201
+ background: #e9ecef;
202
+ cursor: not-allowed;
203
  }
204
 
205
+ button {
206
+ padding: 12px 24px;
207
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
208
+ color: white;
209
+ border: none;
210
+ border-radius: 10px;
211
+ cursor: pointer;
212
+ font-weight: 600;
213
+ font-size: 0.95em;
214
+ display: flex;
215
+ align-items: center;
216
+ gap: 8px;
217
+ transition: transform 0.2s ease, opacity 0.2s ease;
218
  }
219
 
220
+ button:hover:not(:disabled) {
221
+ transform: translateY(-2px);
222
+ opacity: 0.9;
223
+ }
224
+
225
+ button:active:not(:disabled) {
226
+ transform: translateY(0);
227
+ }
228
+
229
+ button:disabled {
230
+ opacity: 0.5;
231
+ cursor: not-allowed;
232
+ }
233
+
234
+ .clear-btn {
235
+ background: #dc3545;
236
+ padding: 12px 20px;
237
+ }
238
+
239
+ .info-panel {
240
+ background: #f8f9fa;
241
+ padding: 20px 30px;
242
+ border-top: 1px solid #e9ecef;
243
+ }
244
+
245
+ .info-panel h3 {
246
+ color: #495057;
247
+ margin-bottom: 10px;
248
+ font-size: 1em;
249
+ }
250
+
251
+ .info-panel ul {
252
+ list-style: none;
253
+ color: #6c757d;
254
+ font-size: 0.9em;
255
+ }
256
+
257
+ .info-panel li {
258
+ padding: 5px 0;
259
+ padding-left: 20px;
260
+ position: relative;
261
+ }
262
+
263
+ .info-panel li:before {
264
+ content: "→";
265
+ position: absolute;
266
+ left: 0;
267
+ color: #667eea;
268
+ }
269
+
270
+ /* Scrollbar styling */
271
+ .messages::-webkit-scrollbar {
272
+ width: 8px;
273
+ }
274
+
275
+ .messages::-webkit-scrollbar-track {
276
+ background: #f1f1f1;
277
+ }
278
+
279
+ .messages::-webkit-scrollbar-thumb {
280
+ background: #667eea;
281
+ border-radius: 4px;
282
+ }
283
+
284
+ .messages::-webkit-scrollbar-thumb:hover {
285
+ background: #764ba2;
286
+ }
287
+
288
+ /* Responsive design */
289
+ @media (max-width: 768px) {
290
+ body {
291
+ padding: 10px;
292
+ }
293
+
294
+ .container {
295
+ border-radius: 15px;
296
+ }
297
+
298
+ header {
299
+ padding: 20px;
300
+ }
301
+
302
+ header h1 {
303
+ font-size: 1.5em;
304
+ }
305
+
306
+ .chat-container {
307
+ height: 400px;
308
+ }
309
+
310
+ .messages {
311
+ padding: 15px;
312
+ }
313
+
314
+ .message-content {
315
+ max-width: 90%;
316
+ }
317
+
318
+ .input-container {
319
+ flex-direction: column;
320
+ padding: 15px;
321
+ }
322
+
323
+ button {
324
+ width: 100%;
325
+ justify-content: center;
326
+ }
327
  }