ldostadi commited on
Commit
05431df
·
verified ·
1 Parent(s): cffdb2f

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +435 -18
style.css CHANGED
@@ -1,28 +1,445 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
 
 
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
 
 
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ --primary-color: #2563eb;
3
+ --secondary-color: #0ea5e9;
4
+ --success-color: #10b981;
5
+ --warning-color: #f59e0b;
6
+ --error-color: #ef4444;
7
+ --bg-color: #f8fafc;
8
+ --card-bg: #ffffff;
9
+ --text-primary: #1e293b;
10
+ --text-secondary: #64748b;
11
+ --border-color: #e2e8f0;
12
+ --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
13
+ --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
14
+ }
15
+
16
+ * {
17
+ margin: 0;
18
+ padding: 0;
19
+ box-sizing: border-box;
20
+ }
21
+
22
  body {
23
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
24
+ background-color: var(--bg-color);
25
+ color: var(--text-primary);
26
+ line-height: 1.6;
27
+ }
28
+
29
+ header {
30
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
31
+ color: white;
32
+ padding: 2rem;
33
+ text-align: center;
34
+ box-shadow: var(--shadow-lg);
35
+ }
36
+
37
+ header h1 {
38
+ font-size: 2.5rem;
39
+ margin-bottom: 0.5rem;
40
+ }
41
+
42
+ header p {
43
+ font-size: 1.1rem;
44
+ opacity: 0.9;
45
+ }
46
+
47
+ .attribution {
48
+ margin-top: 1rem;
49
+ font-size: 0.9rem;
50
+ }
51
+
52
+ .attribution a {
53
+ color: white;
54
+ text-decoration: underline;
55
+ font-weight: 500;
56
+ }
57
+
58
+ main {
59
+ max-width: 1200px;
60
+ margin: 2rem auto;
61
+ padding: 0 1rem;
62
+ }
63
+
64
+ section {
65
+ background: var(--card-bg);
66
+ padding: 1.5rem;
67
+ margin-bottom: 1.5rem;
68
+ border-radius: 12px;
69
+ box-shadow: var(--shadow);
70
+ }
71
+
72
+ h2 {
73
+ color: var(--text-primary);
74
+ margin-bottom: 1rem;
75
+ font-size: 1.5rem;
76
+ }
77
+
78
+ .model-status {
79
+ background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
80
+ }
81
+
82
+ .status-container {
83
+ display: flex;
84
+ flex-direction: column;
85
+ gap: 0.5rem;
86
+ }
87
+
88
+ .status-item {
89
+ display: flex;
90
+ justify-content: space-between;
91
+ align-items: center;
92
+ padding: 0.5rem;
93
+ background: white;
94
+ border-radius: 6px;
95
+ }
96
+
97
+ .status {
98
+ font-weight: 600;
99
+ padding: 0.25rem 0.75rem;
100
+ border-radius: 20px;
101
+ font-size: 0.9rem;
102
+ }
103
+
104
+ .status.pending {
105
+ background: #fef3c7;
106
+ color: #92400e;
107
+ }
108
+
109
+ .status.ready {
110
+ background: #d1fae5;
111
+ color: #065f46;
112
  }
113
 
114
+ .progress-container {
115
+ margin-top: 1rem;
116
+ background: var(--border-color);
117
+ border-radius: 8px;
118
+ height: 24px;
119
+ position: relative;
120
+ overflow: hidden;
121
  }
122
 
123
+ .progress-bar {
124
+ height: 100%;
125
+ background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
126
+ width: 0%;
127
+ transition: width 0.3s ease;
128
  }
129
 
130
+ #progressText {
131
+ position: absolute;
132
+ top: 50%;
133
+ left: 50%;
134
+ transform: translate(-50%, -50%);
135
+ font-size: 0.8rem;
136
+ font-weight: 600;
137
+ color: var(--text-primary);
138
  }
139
 
140
+ .hidden {
141
+ display: none !important;
142
  }
143
+
144
+ .upload-area {
145
+ border: 2px dashed var(--border-color);
146
+ border-radius: 8px;
147
+ padding: 2rem;
148
+ text-align: center;
149
+ transition: all 0.3s ease;
150
+ cursor: pointer;
151
+ }
152
+
153
+ .upload-area:hover, .upload-area.dragover {
154
+ border-color: var(--primary-color);
155
+ background: #f0f9ff;
156
+ }
157
+
158
+ .upload-label {
159
+ display: flex;
160
+ flex-direction: column;
161
+ gap: 0.5rem;
162
+ cursor: pointer;
163
+ }
164
+
165
+ .upload-label span {
166
+ font-size: 1.1rem;
167
+ font-weight: 500;
168
+ }
169
+
170
+ .upload-label small {
171
+ color: var(--text-secondary);
172
+ }
173
+
174
+ #fileInput {
175
+ display: none;
176
+ }
177
+
178
+ .content-grid {
179
+ display: grid;
180
+ grid-template-columns: 1fr 1fr;
181
+ gap: 1.5rem;
182
+ }
183
+
184
+ .panel {
185
+ max-height: 500px;
186
+ overflow-y: auto;
187
+ }
188
+
189
+ .document-list, .axiom-list {
190
+ display: flex;
191
+ flex-direction: column;
192
+ gap: 1rem;
193
+ }
194
+
195
+ .document-item, .axiom-item {
196
+ background: #f8fafc;
197
+ padding: 1rem;
198
+ border-radius: 8px;
199
+ border-left: 4px solid var(--primary-color);
200
+ }
201
+
202
+ .doc-header, .axiom-header {
203
+ display: flex;
204
+ justify-content: space-between;
205
+ align-items: center;
206
+ margin-bottom: 0.5rem;
207
+ }
208
+
209
+ .remove-btn {
210
+ background: var(--error-color);
211
+ color: white;
212
+ border: none;
213
+ padding: 0.25rem 0.75rem;
214
+ border-radius: 4px;
215
+ cursor: pointer;
216
+ font-size: 0.8rem;
217
+ }
218
+
219
+ .remove-btn:hover {
220
+ opacity: 0.9;
221
+ }
222
+
223
+ .doc-info {
224
+ display: flex;
225
+ gap: 1rem;
226
+ font-size: 0.9rem;
227
+ color: var(--text-secondary);
228
+ margin-bottom: 0.5rem;
229
+ }
230
+
231
+ .doc-preview, .axiom-text {
232
+ font-size: 0.9rem;
233
+ color: var(--text-secondary);
234
+ line-height: 1.5;
235
+ }
236
+
237
+ .generation-controls {
238
+ display: flex;
239
+ flex-direction: column;
240
+ gap: 1rem;
241
+ }
242
+
243
+ #queryInput {
244
+ padding: 1rem;
245
+ border: 2px solid var(--border-color);
246
+ border-radius: 8px;
247
+ font-size: 1rem;
248
+ resize: vertical;
249
+ font-family: inherit;
250
+ }
251
+
252
+ #queryInput:focus {
253
+ outline: none;
254
+ border-color: var(--primary-color);
255
+ }
256
+
257
+ .generation-options {
258
+ display: flex;
259
+ gap: 1.5rem;
260
+ flex-wrap: wrap;
261
+ }
262
+
263
+ .generation-options label {
264
+ display: flex;
265
+ align-items: center;
266
+ gap: 0.5rem;
267
+ cursor: pointer;
268
+ }
269
+
270
+ #generateBtn {
271
+ background: var(--primary-color);
272
+ color: white;
273
+ border: none;
274
+ padding: 0.75rem 2rem;
275
+ border-radius: 8px;
276
+ font-size: 1rem;
277
+ font-weight: 600;
278
+ cursor: pointer;
279
+ transition: all 0.3s ease;
280
+ }
281
+
282
+ #generateBtn:hover:not(:disabled) {
283
+ background: var(--secondary-color);
284
+ transform: translateY(-2px);
285
+ box-shadow: var(--shadow-lg);
286
+ }
287
+
288
+ #generateBtn:disabled {
289
+ opacity: 0.5;
290
+ cursor: not-allowed;
291
+ }
292
+
293
+ .result-container {
294
+ margin-top: 1.5rem;
295
+ padding: 1.5rem;
296
+ background: #f0f9ff;
297
+ border-radius: 8px;
298
+ border: 1px solid #bae6fd;
299
+ }
300
+
301
+ .response-text {
302
+ background: white;
303
+ padding: 1rem;
304
+ border-radius: 6px;
305
+ margin-top: 0.5rem;
306
+ white-space: pre-wrap;
307
+ line-height: 1.6;
308
+ }
309
+
310
+ .context-info {
311
+ margin-top: 1rem;
312
+ }
313
+
314
+ .context-info summary {
315
+ cursor: pointer;
316
+ font-weight: 600;
317
+ color: var(--primary-color);
318
+ }
319
+
320
+ .context-item {
321
+ background: white;
322
+ padding: 0.75rem;
323
+ margin: 0.5rem 0;
324
+ border-radius: 6px;
325
+ border-left: 3px solid var(--secondary-color);
326
+ }
327
+
328
+ .context-header {
329
+ display: flex;
330
+ justify-content: space-between;
331
+ margin-bottom: 0.5rem;
332
+ font-size: 0.9rem;
333
+ }
334
+
335
+ .similarity {
336
+ color: var(--success-color);
337
+ font-weight: 600;
338
+ }
339
+
340
+ .context-text {
341
+ font-size: 0.85rem;
342
+ color: var(--text-secondary);
343
+ }
344
+
345
+ .actions {
346
+ display: flex;
347
+ gap: 1rem;
348
+ justify-content: center;
349
+ }
350
+
351
+ button {
352
+ padding: 0.75rem 1.5rem;
353
+ border: none;
354
+ border-radius: 8px;
355
+ font-size: 1rem;
356
+ cursor: pointer;
357
+ transition: all 0.3s ease;
358
+ }
359
+
360
+ .danger {
361
+ background: var(--error-color);
362
+ color: white;
363
+ }
364
+
365
+ button:not(.danger) {
366
+ background: var(--success-color);
367
+ color: white;
368
+ }
369
+
370
+ button:hover {
371
+ opacity: 0.9;
372
+ transform: translateY(-1px);
373
+ }
374
+
375
+ .empty-state {
376
+ text-align: center;
377
+ color: var(--text-secondary);
378
+ font-style: italic;
379
+ padding: 2rem;
380
+ }
381
+
382
+ .notification {
383
+ position: fixed;
384
+ top: 1rem;
385
+ right: 1rem;
386
+ padding: 1rem 1.5rem;
387
+ border-radius: 8px;
388
+ color: white;
389
+ font-weight: 600;
390
+ box-shadow: var(--shadow-lg);
391
+ transform: translateX(400px);
392
+ transition: transform 0.3s ease;
393
+ z-index: 1000;
394
+ }
395
+
396
+ .notification.show {
397
+ transform: translateX(0);
398
+ }
399
+
400
+ .notification.success {
401
+ background: var(--success-color);
402
+ }
403
+
404
+ .notification.error {
405
+ background: var(--error-color);
406
+ }
407
+
408
+ .notification.warning {
409
+ background: var(--warning-color);
410
+ }
411
+
412
+ .notification.info {
413
+ background: var(--primary-color);
414
+ }
415
+
416
+ .loading {
417
+ color: var(--primary-color);
418
+ font-weight: 600;
419
+ }
420
+
421
+ .loading::after {
422
+ content: '...';
423
+ animation: dots 1.5s infinite;
424
+ }
425
+
426
+ @keyframes dots {
427
+ 0%, 20% { content: '.'; }
428
+ 40% { content: '..'; }
429
+ 60%, 100% { content: '...'; }
430
+ }
431
+
432
+ @media (max-width: 768px) {
433
+ .content-grid {
434
+ grid-template-columns: 1fr;
435
+ }
436
+
437
+ header h1 {
438
+ font-size: 2rem;
439
+ }
440
+
441
+ .generation-options {
442
+ flex-direction: column;
443
+ gap: 0.5rem;
444
+ }
445
+ }