Apiarist Dev commited on
Commit ·
dc2bfb3
1
Parent(s): be206e5
off-brand: custom tab bar, themed inputs/labels/tables, custom scrollbar, strip Gradio tells
Browse files
app.py
CHANGED
|
@@ -699,6 +699,94 @@ table { border-color: rgba(244,163,0,0.25) !important; }
|
|
| 699 |
border-top: 1px solid rgba(244,163,0,0.20);
|
| 700 |
color: #b8a079; font-size: 0.8rem; text-align: center;
|
| 701 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 702 |
"""
|
| 703 |
|
| 704 |
|
|
|
|
| 699 |
border-top: 1px solid rgba(244,163,0,0.20);
|
| 700 |
color: #b8a079; font-size: 0.8rem; text-align: center;
|
| 701 |
}
|
| 702 |
+
|
| 703 |
+
/* ============================================================
|
| 704 |
+
OFF-BRAND PASS: strip the remaining 'default Gradio' tells
|
| 705 |
+
============================================================ */
|
| 706 |
+
|
| 707 |
+
/* Custom tab bar -> bespoke segmented nav */
|
| 708 |
+
.tabs > .tab-nav, .tab-nav {
|
| 709 |
+
border-bottom: 1px solid rgba(244,163,0,0.20) !important;
|
| 710 |
+
gap: 6px !important;
|
| 711 |
+
padding-bottom: 0 !important;
|
| 712 |
+
}
|
| 713 |
+
.tab-nav button {
|
| 714 |
+
background: transparent !important;
|
| 715 |
+
border: none !important;
|
| 716 |
+
color: #b9a079 !important;
|
| 717 |
+
font-family: 'JetBrains Mono', monospace !important;
|
| 718 |
+
font-weight: 600 !important;
|
| 719 |
+
letter-spacing: 0.04em;
|
| 720 |
+
text-transform: uppercase;
|
| 721 |
+
font-size: 0.82rem !important;
|
| 722 |
+
padding: 10px 16px !important;
|
| 723 |
+
border-radius: 10px 10px 0 0 !important;
|
| 724 |
+
transition: color 120ms ease, background 120ms ease;
|
| 725 |
+
}
|
| 726 |
+
.tab-nav button:hover { color: #ffd066 !important; background: rgba(244,163,0,0.06) !important; }
|
| 727 |
+
.tab-nav button.selected {
|
| 728 |
+
color: #1a1410 !important;
|
| 729 |
+
background: linear-gradient(180deg,#ffc23d,#f4a300) !important;
|
| 730 |
+
border: none !important;
|
| 731 |
+
}
|
| 732 |
+
|
| 733 |
+
/* Component labels -> small amber field-tags instead of grey Gradio labels */
|
| 734 |
+
.block label > span,
|
| 735 |
+
span[data-testid="block-info"],
|
| 736 |
+
.gr-box label span {
|
| 737 |
+
color: #d8b66a !important;
|
| 738 |
+
font-size: 0.72rem !important;
|
| 739 |
+
letter-spacing: 0.05em;
|
| 740 |
+
text-transform: uppercase;
|
| 741 |
+
font-weight: 600 !important;
|
| 742 |
+
}
|
| 743 |
+
|
| 744 |
+
/* Soften component chrome so it reads as one bespoke surface, not stacked Gradio boxes */
|
| 745 |
+
.block, .gr-box, .form, .gr-form {
|
| 746 |
+
box-shadow: none !important;
|
| 747 |
+
}
|
| 748 |
+
.gradio-container .block {
|
| 749 |
+
backdrop-filter: blur(2px);
|
| 750 |
+
}
|
| 751 |
+
|
| 752 |
+
/* Inputs / dropdowns -> dark themed, not white Gradio defaults */
|
| 753 |
+
input, textarea, select,
|
| 754 |
+
.gr-input, .gr-text-input, .gr-dropdown,
|
| 755 |
+
[data-testid="textbox"] textarea,
|
| 756 |
+
[data-testid="textbox"] input {
|
| 757 |
+
background: rgba(20,15,10,0.6) !important;
|
| 758 |
+
color: #f4e4bc !important;
|
| 759 |
+
border: 1px solid rgba(244,163,0,0.22) !important;
|
| 760 |
+
border-radius: 10px !important;
|
| 761 |
+
}
|
| 762 |
+
|
| 763 |
+
/* Accordions -> themed headers */
|
| 764 |
+
.label-wrap, .gr-accordion > .label-wrap {
|
| 765 |
+
color: #ffd066 !important;
|
| 766 |
+
}
|
| 767 |
+
|
| 768 |
+
/* Dataframe / table -> dark themed */
|
| 769 |
+
.gr-dataframe table, table.dataframe {
|
| 770 |
+
background: rgba(20,15,10,0.4) !important;
|
| 771 |
+
color: #f4e4bc !important;
|
| 772 |
+
}
|
| 773 |
+
.gr-dataframe thead th, table.dataframe thead th {
|
| 774 |
+
background: rgba(244,163,0,0.12) !important;
|
| 775 |
+
color: #ffd066 !important;
|
| 776 |
+
}
|
| 777 |
+
|
| 778 |
+
/* Custom scrollbar (a small but distinct off-brand touch) */
|
| 779 |
+
*::-webkit-scrollbar { width: 10px; height: 10px; }
|
| 780 |
+
*::-webkit-scrollbar-track { background: rgba(20,15,10,0.4); }
|
| 781 |
+
*::-webkit-scrollbar-thumb {
|
| 782 |
+
background: rgba(244,163,0,0.35); border-radius: 8px;
|
| 783 |
+
border: 2px solid rgba(20,15,10,0.4);
|
| 784 |
+
}
|
| 785 |
+
*::-webkit-scrollbar-thumb:hover { background: rgba(244,163,0,0.55); }
|
| 786 |
+
|
| 787 |
+
/* Tone down the stock 'Built with Gradio' footer chrome so it doesn't clash */
|
| 788 |
+
footer { opacity: 0.45 !important; }
|
| 789 |
+
footer:hover { opacity: 0.8 !important; }
|
| 790 |
"""
|
| 791 |
|
| 792 |
|