LiveHouse-TS / src /display /css_html_js.py
ziyuzhou02's picture
Deploy Space: update src
88bdb34 verified
Raw History Blame
2.67 kB
# Gradio custom styles for the TSFM Realworld Bench leaderboard.
custom_css = """
:root {
--bench-ink: #18202f;
--bench-muted: #5b6575;
--bench-line: #d7dce5;
--bench-panel: #f8fafc;
--bench-blue: #2563eb;
--bench-teal: #0f766e;
}
.gradio-container {
max-width: 1320px !important;
margin: 0 auto !important;
}
.markdown-text {
font-size: 16px !important;
color: var(--bench-muted);
}
.tab-buttons {
overflow-x: auto !important;
overflow-y: visible !important;
}
.tab-buttons > div:first-child,
.tab-buttons .tab-nav,
.tab-buttons [role="tablist"] {
display: flex !important;
flex-wrap: nowrap !important;
gap: 4px !important;
overflow-x: auto !important;
overflow-y: visible !important;
scrollbar-width: thin;
}
.tab-buttons button,
.tab-buttons [role="tab"] {
flex: 0 0 auto !important;
white-space: nowrap !important;
font-size: 16px !important;
font-weight: 650 !important;
border-radius: 6px 6px 0 0 !important;
}
#leaderboard-table { margin-top: 15px; }
.summary-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin: 18px 0 22px;
}
.summary-card {
border: 1px solid var(--bench-line);
border-radius: 8px;
background: linear-gradient(180deg, #ffffff 0%, var(--bench-panel) 100%);
padding: 14px 16px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.summary-value {
color: var(--bench-ink);
font-size: 28px;
line-height: 1.1;
font-weight: 780;
}
.summary-value.small {
font-size: 18px;
line-height: 1.35;
}
.summary-label {
margin-top: 5px;
color: var(--bench-muted);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
font-weight: 700;
}
.dataframe {
border-radius: 8px !important;
overflow: hidden !important;
border: 1px solid var(--bench-line) !important;
}
.dataframe table {
font-size: 14px !important;
}
.dataframe th {
background: #eef2f7 !important;
color: var(--bench-ink) !important;
font-weight: 750 !important;
}
.dataframe td {
color: #263244 !important;
}
.domain-heading {
margin-top: 1.75rem;
margin-bottom: 0.5rem;
font-size: 1.15rem;
font-weight: 600;
}
.dataset-heading {
margin-top: 2rem;
margin-bottom: 0.75rem;
font-size: 1.25rem !important;
font-weight: 700 !important;
line-height: 1.35;
color: var(--bench-ink);
}
.dataset-heading p {
font-size: 1.25rem !important;
font-weight: 700 !important;
margin: 0;
}
@media (max-width: 820px) {
.summary-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
"""