evalstone/webui/static/styles.css
sora 7c449d3126 Add local EvalStone web UI for launch and results comparison.
Add a FastAPI panel under webui/ to select suites or benchmarks, configure model endpoint and thinking mode, stream evaluation logs, and visualize multi-model scores from output/.
2026-07-29 06:49:39 +00:00

609 lines
14 KiB
CSS

:root {
--bg0: #121714;
--bg1: #1a211c;
--bg2: #232c26;
--line: #334038;
--text: #e7eee8;
--muted: #92a197;
--accent: #d6a24a;
--accent-2: #6fbf8a;
--danger: #d86a5b;
--shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
--radius: 14px;
--font: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", sans-serif;
--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
font-family: var(--font);
color: var(--text);
background:
radial-gradient(1200px 600px at 10% -10%, rgba(214, 162, 74, 0.16), transparent 55%),
radial-gradient(900px 500px at 100% 0%, rgba(111, 191, 138, 0.12), transparent 50%),
linear-gradient(180deg, #0f1411 0%, var(--bg0) 40%, #101612 100%);
}
code, pre, .mono { font-family: var(--mono); }
.page {
max-width: 1440px;
margin: 0 auto;
padding: 28px 24px 40px;
}
.top {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 16px;
margin-bottom: 22px;
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark {
width: 14px; height: 42px; border-radius: 999px;
background: linear-gradient(180deg, var(--accent), var(--accent-2));
box-shadow: 0 0 24px rgba(214, 162, 74, 0.35);
}
.brand h1 {
margin: 0;
font-size: 28px;
letter-spacing: 0.02em;
font-weight: 700;
}
.brand p {
margin: 4px 0 0;
color: var(--muted);
font-size: 13px;
}
.brand code {
color: var(--accent);
background: rgba(214, 162, 74, 0.1);
padding: 1px 6px;
border-radius: 6px;
}
.top-meta {
display: flex; align-items: center; gap: 8px;
color: var(--muted); font-size: 13px;
}
.dot {
width: 9px; height: 9px; border-radius: 50%;
background: #667;
box-shadow: 0 0 0 3px rgba(102, 102, 119, 0.2);
}
.dot.ok { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(111, 191, 138, 0.2); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px rgba(216, 106, 91, 0.2); }
.layout {
display: grid;
grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
gap: 18px;
align-items: start;
}
.panel {
background: linear-gradient(180deg, rgba(26, 33, 28, 0.96), rgba(18, 23, 20, 0.96));
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 20px;
}
.block + .block { margin-top: 22px; }
.block h2, .side-head h2, .log-head h3, .jobs-head h3 {
margin: 0 0 12px;
font-size: 15px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: #c7d2c9;
}
label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 12px;
color: var(--muted);
}
label span { letter-spacing: 0.03em; }
input, select, button, summary {
font: inherit;
}
input, select {
width: 100%;
background: var(--bg0);
color: var(--text);
border: 1px solid var(--line);
border-radius: 10px;
padding: 10px 12px;
outline: none;
transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
border-color: rgba(214, 162, 74, 0.7);
box-shadow: 0 0 0 3px rgba(214, 162, 74, 0.15);
}
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.thinking-row {
display: flex;
flex-wrap: wrap;
gap: 14px 18px;
align-items: end;
}
.thinking-row .inline { min-width: 140px; }
.switch {
flex-direction: row;
align-items: center;
gap: 10px;
cursor: pointer;
user-select: none;
}
.switch input { display: none; }
.slider {
width: 42px; height: 24px; border-radius: 999px;
background: #2c3630; position: relative; transition: .2s;
border: 1px solid var(--line);
}
.slider::after {
content: "";
position: absolute; top: 2px; left: 2px;
width: 18px; height: 18px; border-radius: 50%;
background: #c5d0c7; transition: .2s;
}
.switch input:checked + .slider {
background: rgba(214, 162, 74, 0.35);
border-color: rgba(214, 162, 74, 0.7);
}
.switch input:checked + .slider::after {
transform: translateX(18px);
background: var(--accent);
}
.switch-text { color: var(--text); font-size: 14px; }
.mode-tabs {
display: inline-flex;
background: var(--bg0);
border: 1px solid var(--line);
border-radius: 999px;
padding: 4px;
margin-bottom: 14px;
}
.tab {
border: 0;
background: transparent;
color: var(--muted);
padding: 8px 14px;
border-radius: 999px;
cursor: pointer;
}
.tab.active {
background: rgba(214, 162, 74, 0.18);
color: var(--text);
}
.suite-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.suite-card {
text-align: left;
border: 1px solid var(--line);
background: var(--bg0);
color: var(--text);
border-radius: 12px;
padding: 12px;
cursor: pointer;
transition: border-color .15s, transform .15s;
}
.suite-card:hover { transform: translateY(-1px); }
.suite-card.active {
border-color: rgba(214, 162, 74, 0.75);
background: rgba(214, 162, 74, 0.08);
}
.suite-card strong { display: block; margin-bottom: 4px; }
.suite-card small { color: var(--muted); line-height: 1.4; }
.benchmark-list {
display: flex;
flex-direction: column;
gap: 12px;
max-height: 420px;
overflow: auto;
padding-right: 4px;
}
.bench-category {
border: 1px solid var(--line);
border-radius: 12px;
background: rgba(12, 16, 14, 0.55);
padding: 10px;
}
.bench-category.cat-math { border-left: 3px solid #6fbf8a; }
.bench-category.cat-code { border-left: 3px solid #6aa8d6; }
.bench-category.cat-science { border-left: 3px solid #c79a5a; }
.bench-category.cat-knowledge { border-left: 3px solid #9aa4b2; }
.bench-category.cat-long_context { border-left: 3px solid #8b7ec8; }
.bench-category.cat-tool_agent { border-left: 3px solid #d6a24a; }
.bench-category.cat-other { border-left: 3px solid #667; }
.bench-cat-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.bench-cat-title {
display: flex;
align-items: baseline;
gap: 8px;
}
.bench-cat-title strong {
font-size: 13px;
letter-spacing: 0.03em;
}
.bench-cat-actions { display: flex; gap: 4px; }
.bench-cat-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.bench-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-radius: 10px;
border: 1px solid var(--line);
background: var(--bg0);
cursor: pointer;
font-size: 13px;
}
.bench-item input { width: auto; }
.bench-item.multi { border-color: rgba(111, 191, 138, 0.35); }
.bench-item .run-tag {
margin-left: auto;
font-style: normal;
font-size: 11px;
color: #9ee0b2;
opacity: 0.85;
}
.bench-actions {
display: flex; gap: 8px; align-items: center; margin-bottom: 10px;
}
.muted { color: var(--muted); font-size: 12px; }
.mt { margin-top: 12px; }
.hidden { display: none !important; }
.advanced {
border: 1px dashed var(--line);
border-radius: 12px;
padding: 10px 14px;
}
.advanced summary {
cursor: pointer;
color: var(--muted);
font-size: 13px;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
margin-top: 22px;
}
button {
border-radius: 10px;
border: 1px solid var(--line);
padding: 10px 16px;
cursor: pointer;
background: var(--bg2);
color: var(--text);
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary {
background: linear-gradient(180deg, #e0b05a, #c48c2f);
border-color: #b9852d;
color: #1a1408;
font-weight: 600;
}
button.danger {
background: rgba(216, 106, 91, 0.15);
border-color: rgba(216, 106, 91, 0.45);
color: #ffc2ba;
}
button.ghost {
background: transparent;
padding: 6px 10px;
font-size: 12px;
}
.msg { color: var(--muted); font-size: 13px; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--accent-2); }
.side-head, .log-head, .jobs-head {
display: flex;
justify-content: space-between;
align-items: center;
}
.active-card {
border: 1px solid var(--line);
border-radius: 12px;
padding: 12px;
background: var(--bg0);
margin-bottom: 14px;
}
.active-card.running { border-color: rgba(111, 191, 138, 0.55); }
.active-card.failed, .active-card.stopped { border-color: rgba(216, 106, 91, 0.45); }
.active-card.completed { border-color: rgba(214, 162, 74, 0.45); }
.active-title {
display: flex; gap: 10px; align-items: center; margin-bottom: 8px;
}
.badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
background: #2a332d;
color: var(--muted);
}
.badge.running { background: rgba(111, 191, 138, 0.18); color: #9ee0b2; }
.badge.completed { background: rgba(214, 162, 74, 0.18); color: #f0d08a; }
.badge.failed, .badge.stopped { background: rgba(216, 106, 91, 0.18); color: #ffb3a8; }
.cmd, .log-view {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
font-size: 12px;
line-height: 1.5;
color: #c9d4cb;
}
.cmd { color: var(--muted); max-height: 72px; overflow: auto; }
.log-view {
height: 360px;
overflow: auto;
background: #0c100e;
border: 1px solid var(--line);
border-radius: 12px;
padding: 12px;
margin: 8px 0 16px;
}
.check-inline {
flex-direction: row;
align-items: center;
gap: 6px;
font-size: 12px;
}
.check-inline input { width: auto; }
.job-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 220px;
overflow: auto;
}
.job-item {
text-align: left;
width: 100%;
border: 1px solid var(--line);
background: var(--bg0);
border-radius: 10px;
padding: 10px 12px;
cursor: pointer;
}
.job-item:hover { border-color: rgba(214, 162, 74, 0.45); }
.job-item .row {
display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px;
}
.job-item small { color: var(--muted); }
.top-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
}
.nav-tabs {
display: inline-flex;
gap: 4px;
padding: 4px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(18, 23, 20, 0.7);
}
.nav-tabs a {
color: var(--muted);
text-decoration: none;
padding: 7px 14px;
border-radius: 999px;
font-size: 13px;
}
.nav-tabs a.active,
.nav-tabs a:hover {
color: var(--text);
background: rgba(214, 162, 74, 0.18);
}
.results-layout {
display: grid;
grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
gap: 18px;
align-items: start;
}
.filters-panel { position: sticky; top: 16px; }
.pick-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 240px;
overflow: auto;
}
.pick-list.bench-pick { max-height: 320px; }
.pick-item {
flex-direction: row;
align-items: center;
gap: 10px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--bg0);
cursor: pointer;
}
.pick-item input { width: auto; }
.pick-main { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pick-main strong { color: var(--text); font-size: 13px; }
.pick-main small { color: var(--muted); font-size: 11px; }
.swatch {
width: 10px; height: 28px; border-radius: 999px; display: inline-block;
}
.pick-cat {
border: 1px solid var(--line);
border-radius: 10px;
padding: 8px;
background: rgba(12, 16, 14, 0.45);
}
.pick-cat + .pick-cat { margin-top: 8px; }
.pick-cat-head {
display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.pick-cat-head strong { color: var(--text); font-size: 12px; }
.pick-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.pick-chip {
flex-direction: row;
align-items: center;
gap: 6px;
padding: 6px 8px;
border-radius: 8px;
border: 1px solid var(--line);
background: var(--bg0);
cursor: pointer;
font-size: 12px;
color: var(--text);
}
.pick-chip input { width: auto; }
.chart-block + .chart-block { margin-top: 22px; }
.chart-wrap {
height: 340px;
background: #0c100e;
border: 1px solid var(--line);
border-radius: 12px;
padding: 12px;
position: relative;
}
.chart-wrap.radar-wrap { height: 380px; }
.chart-wrap.empty::after {
content: attr(data-empty);
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
font-size: 13px;
background: rgba(12, 16, 14, 0.85);
border-radius: 12px;
}
.table-wrap {
overflow: auto;
border: 1px solid var(--line);
border-radius: 12px;
background: #0c100e;
}
#scoreTable {
width: 100%;
border-collapse: collapse;
font-size: 13px;
font-family: var(--mono);
}
#scoreTable th, #scoreTable td {
padding: 10px 12px;
border-bottom: 1px solid rgba(51, 64, 56, 0.8);
text-align: right;
white-space: nowrap;
}
#scoreTable th:first-child,
#scoreTable td:first-child,
#scoreTable .bench-col {
text-align: left;
position: sticky;
left: 0;
background: #0c100e;
}
#scoreTable th {
color: var(--muted);
font-weight: 500;
background: #121714;
}
#scoreTable td.best { color: #f0d08a; font-weight: 600; }
#scoreTable td.na { color: #5a665e; }
#scoreTable .best-name { color: var(--accent-2); }
.rank-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 10px;
}
.rank-card {
border: 1px solid var(--line);
border-radius: 12px;
background: var(--bg0);
padding: 12px;
}
.rank-card strong {
display: block;
margin-bottom: 8px;
font-size: 13px;
}
.rank-row {
display: grid;
grid-template-columns: 28px 1fr auto;
gap: 8px;
font-size: 12px;
padding: 4px 0;
color: var(--muted);
}
.rank-idx { color: var(--accent); font-family: var(--mono); }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.rank-score { font-family: var(--mono); color: #c9d4cb; }
@media (max-width: 1100px) {
.layout { grid-template-columns: 1fr; }
.results-layout { grid-template-columns: 1fr; }
.filters-panel { position: static; }
.bench-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
.grid-2, .suite-list, .bench-cat-grid, .pick-grid { grid-template-columns: 1fr; }
.page { padding: 18px 14px 28px; }
.brand h1 { font-size: 22px; }
.bench-cat-head { flex-wrap: wrap; }
.top { flex-direction: column; align-items: flex-start; }
.top-right { align-items: flex-start; }
}