Maximofn commited on
Commit
b6ec4a5
·
1 Parent(s): 9f9f203

Refactor example button styles for modern design; enhance dark theme support and hide footer for cleaner UI.

Browse files
Files changed (1) hide show
  1. style.css +94 -24
style.css CHANGED
@@ -285,23 +285,63 @@
285
  transform: translateY(-1px) !important;
286
  }
287
 
288
- /* Example buttons */
289
- .example,
290
- button.example {
291
- background: var(--bg-light-secondary) !important;
292
- color: var(--text-light-primary) !important;
293
- border: 1px solid var(--border-light) !important;
294
- border-radius: 12px !important;
295
- padding: 0.75rem 1rem !important;
296
- transition: all 0.2s ease !important;
 
 
 
 
 
 
 
 
 
 
 
297
  }
298
 
299
- .example:hover,
300
- button.example:hover {
301
- background: var(--bg-light-tertiary) !important;
302
- border-color: var(--primary-purple-light) !important;
303
- transform: translateY(-2px) !important;
304
- box-shadow: 0 4px 12px var(--shadow-purple-md) !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  }
306
 
307
  /* Scrollbar styling */
@@ -403,18 +443,29 @@
403
  }
404
 
405
  /* Dark theme - Example buttons */
406
- .dark .example,
407
- .dark button.example {
408
- background: var(--bg-dark-card) !important;
409
- color: var(--text-dark-primary) !important;
410
- border-color: var(--border-dark) !important;
 
 
411
  }
412
 
413
- .dark .example:hover,
414
- .dark button.example:hover {
415
- background: var(--bg-dark-secondary) !important;
 
 
416
  border-color: var(--primary-purple-light) !important;
417
- box-shadow: 0 4px 12px var(--shadow-purple-lg) !important;
 
 
 
 
 
 
 
418
  }
419
 
420
  /* Dark theme - Scrollbar */
@@ -431,4 +482,23 @@
431
  .dark .chatbot::-webkit-scrollbar-thumb:hover,
432
  .dark [data-testid="chatbot"]::-webkit-scrollbar-thumb:hover {
433
  background: var(--primary-purple-light);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  }
 
285
  transform: translateY(-1px) !important;
286
  }
287
 
288
+ /* Example buttons - Modern pill style */
289
+ .examples .example,
290
+ button.example,
291
+ [data-testid="examples"] button {
292
+ background: linear-gradient(135deg, var(--bg-light-card) 0%, var(--bg-light-secondary) 100%) !important;
293
+ color: var(--primary-purple) !important;
294
+ border: 2px solid var(--primary-purple-lighter) !important;
295
+ border-radius: 24px !important;
296
+ padding: 0.875rem 1.5rem !important;
297
+ font-size: 0.95rem !important;
298
+ font-weight: 500 !important;
299
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
300
+ box-shadow: 0 2px 8px var(--shadow-purple-sm) !important;
301
+ cursor: pointer !important;
302
+ display: inline-flex !important;
303
+ align-items: center !important;
304
+ gap: 0.5rem !important;
305
+ white-space: normal !important;
306
+ text-align: left !important;
307
+ line-height: 1.4 !important;
308
  }
309
 
310
+ .examples .example:hover,
311
+ button.example:hover,
312
+ [data-testid="examples"] button:hover {
313
+ background: var(--gradient-purple) !important;
314
+ color: white !important;
315
+ border-color: var(--primary-purple) !important;
316
+ transform: translateY(-2px) scale(1.02) !important;
317
+ box-shadow: 0 6px 20px var(--shadow-purple-lg) !important;
318
+ }
319
+
320
+ /* Hide the "Aa" icon in examples */
321
+ .examples .example::before,
322
+ button.example::before,
323
+ [data-testid="examples"] button::before,
324
+ .examples .example .icon,
325
+ button.example .icon,
326
+ [data-testid="examples"] button .icon {
327
+ display: none !important;
328
+ }
329
+
330
+ /* Style the text content of examples */
331
+ .examples .example span,
332
+ button.example span,
333
+ [data-testid="examples"] button span {
334
+ color: inherit !important;
335
+ }
336
+
337
+ /* Container for examples */
338
+ .examples,
339
+ [data-testid="examples"] {
340
+ display: flex !important;
341
+ flex-wrap: wrap !important;
342
+ gap: 1rem !important;
343
+ padding: 1rem 0 !important;
344
+ justify-content: center !important;
345
  }
346
 
347
  /* Scrollbar styling */
 
443
  }
444
 
445
  /* Dark theme - Example buttons */
446
+ .dark .examples .example,
447
+ .dark button.example,
448
+ .dark [data-testid="examples"] button {
449
+ background: linear-gradient(135deg, var(--bg-dark-card) 0%, var(--bg-dark-secondary) 100%) !important;
450
+ color: var(--primary-purple-lighter) !important;
451
+ border-color: var(--primary-purple) !important;
452
+ box-shadow: 0 2px 8px var(--shadow-purple-xl) !important;
453
  }
454
 
455
+ .dark .examples .example:hover,
456
+ .dark button.example:hover,
457
+ .dark [data-testid="examples"] button:hover {
458
+ background: var(--gradient-purple-pink) !important;
459
+ color: white !important;
460
  border-color: var(--primary-purple-light) !important;
461
+ box-shadow: 0 6px 24px var(--shadow-purple-light-lg) !important;
462
+ }
463
+
464
+ /* Dark theme - Example text */
465
+ .dark .examples .example span,
466
+ .dark button.example span,
467
+ .dark [data-testid="examples"] button span {
468
+ color: inherit !important;
469
  }
470
 
471
  /* Dark theme - Scrollbar */
 
482
  .dark .chatbot::-webkit-scrollbar-thumb:hover,
483
  .dark [data-testid="chatbot"]::-webkit-scrollbar-thumb:hover {
484
  background: var(--primary-purple-light);
485
+ }
486
+
487
+ /* ============================================
488
+ HIDE FOOTER
489
+ ============================================ */
490
+
491
+ /* Hide the Gradio footer with API and settings links */
492
+ footer,
493
+ .footer,
494
+ [data-testid="footer"],
495
+ .gradio-container footer,
496
+ .built-with,
497
+ .api-link,
498
+ .settings-link {
499
+ display: none !important;
500
+ visibility: hidden !important;
501
+ height: 0 !important;
502
+ padding: 0 !important;
503
+ margin: 0 !important;
504
  }