ZhouChuYue commited on
Commit
0c9565a
·
1 Parent(s): 06c7a0f

refactor: simplify Parser UI to premium clean style

Browse files
Files changed (1) hide show
  1. app.py +118 -0
app.py CHANGED
@@ -453,6 +453,124 @@ ul.options, .gr-dropdown-options {
453
  background-color: rgba(30, 41, 59, 0.4) !important;
454
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
455
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
  """
457
 
458
  # Build Gradio interface
 
453
  background-color: rgba(30, 41, 59, 0.4) !important;
454
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
455
  }
456
+
457
+ /* === Premium Clean Overrides === */
458
+ :root {
459
+ --bg: #0b1120;
460
+ --surface: #111827;
461
+ --surface-2: #0f172a;
462
+ --border: #1f2937;
463
+ --text: #e5e7eb;
464
+ --muted: #94a3b8;
465
+ --accent: #6366f1;
466
+ }
467
+
468
+ body {
469
+ background-color: var(--bg) !important;
470
+ color: var(--text) !important;
471
+ }
472
+
473
+ .gradio-container {
474
+ background: var(--bg) !important;
475
+ width: 95vw !important;
476
+ max-width: 1400px !important;
477
+ margin: 0 auto !important;
478
+ }
479
+
480
+ .main-title {
481
+ background: none !important;
482
+ -webkit-text-fill-color: unset !important;
483
+ color: var(--text) !important;
484
+ font-size: 2.4rem !important;
485
+ letter-spacing: -0.01em !important;
486
+ }
487
+
488
+ .subtitle {
489
+ color: var(--muted) !important;
490
+ margin-bottom: 2rem !important;
491
+ }
492
+
493
+ .glass-panel {
494
+ background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95)) !important;
495
+ border: 1px solid var(--border) !important;
496
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
497
+ }
498
+
499
+ .section-header {
500
+ color: var(--text) !important;
501
+ border-bottom: 1px solid var(--border) !important;
502
+ text-shadow: none !important;
503
+ }
504
+
505
+ /* Labels & descriptions */
506
+ .block > label > span,
507
+ .form > label > span,
508
+ .gr-form > label > span,
509
+ .label-wrap > span,
510
+ span.description,
511
+ .description {
512
+ color: var(--muted) !important;
513
+ text-shadow: none !important;
514
+ }
515
+
516
+ /* Inputs */
517
+ .gr-input, textarea, input, .gr-box, .gr-check-radio, .gr-dropdown {
518
+ background-color: var(--surface-2) !important;
519
+ border: 1px solid var(--border) !important;
520
+ color: var(--text) !important;
521
+ }
522
+
523
+ .gr-input:focus, textarea:focus, input:focus {
524
+ border-color: var(--accent) !important;
525
+ background-color: #111827 !important;
526
+ }
527
+
528
+ /* Buttons */
529
+ .gr-button-primary {
530
+ background: var(--accent) !important;
531
+ box-shadow: none !important;
532
+ color: #ffffff !important;
533
+ }
534
+
535
+ .gr-button-primary:hover {
536
+ background: #4f46e5 !important;
537
+ }
538
+
539
+ .gr-button-secondary {
540
+ background: transparent !important;
541
+ border: 1px solid var(--border) !important;
542
+ color: var(--text) !important;
543
+ }
544
+
545
+ .gr-button-secondary:hover {
546
+ background: rgba(31, 41, 55, 0.6) !important;
547
+ }
548
+
549
+ /* Tabs */
550
+ .tab-nav button {
551
+ color: var(--muted) !important;
552
+ }
553
+
554
+ .tab-nav button.selected {
555
+ color: var(--text) !important;
556
+ border-bottom: 2px solid var(--accent) !important;
557
+ }
558
+
559
+ /* Output */
560
+ .output-textbox, .markdown-box {
561
+ background-color: var(--surface-2) !important;
562
+ border: 1px solid var(--border) !important;
563
+ height: 560px !important;
564
+ max-height: 560px !important;
565
+ }
566
+
567
+ .markdown-box, .markdown-box * {
568
+ color: var(--text) !important;
569
+ }
570
+
571
+ .markdown-box code, .markdown-box pre {
572
+ background: #1f2937 !important;
573
+ }
574
  """
575
 
576
  # Build Gradio interface