279 lines
6.5 KiB
CSS
279 lines
6.5 KiB
CSS
/* ==========================================================================
|
|
OpenBench - design refresh
|
|
|
|
Loaded last (after style.css, ux.css, board.css). Only overrides tokens and
|
|
a handful of rules, so the older theme stays intact. Drop the <link> in
|
|
base.html to revert everything in one step.
|
|
|
|
Direction: warm graphite surfaces, bone-coloured text, a single board-green
|
|
accent. Colour is reserved for results (green / amber / red). The LLR gauge
|
|
on running SPRT tests is the one distinctive element; the rest stays quiet.
|
|
========================================================================== */
|
|
|
|
:root {
|
|
/* Surfaces */
|
|
--color1: #14161A;
|
|
--color2: #1A1D22;
|
|
--color3: #23272D;
|
|
--surface-head: #1F2227;
|
|
--surface-hover: #252A30;
|
|
|
|
/* Lines */
|
|
--line: #2A2E35;
|
|
--line-strong: #3A3F48;
|
|
|
|
/* Text */
|
|
--color-font1: #EDEAE3;
|
|
--color-font2: #C9C6BE;
|
|
--color-font3: #A9CDB3;
|
|
--muted: #8C8F96;
|
|
|
|
/* Accent: board green. Buttons use the darker value so white text passes AA. */
|
|
--accent: #4F8160;
|
|
--accent-hover: #6BA17D;
|
|
--accent-soft: rgba(94, 139, 106, 0.16);
|
|
--link: #8FC3A0;
|
|
--link-hover: #B9E0C6;
|
|
|
|
/* Results */
|
|
--ok: #6EDB9A;
|
|
--warn: #E8B84A;
|
|
--bad: #EF7B72;
|
|
--orange: #E8955A;
|
|
--purple: #B79FE0;
|
|
--purple-soft: rgba(183, 159, 224, 0.14);
|
|
|
|
--font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
|
|
--radius: 3px;
|
|
--shadow-card: none;
|
|
}
|
|
|
|
::selection {
|
|
background: rgba(94, 139, 106, 0.4);
|
|
}
|
|
|
|
/* ---------- Chrome ---------- */
|
|
|
|
#topbar {
|
|
background: rgba(20, 22, 26, 0.92);
|
|
}
|
|
|
|
#topbar .brand-name {
|
|
font-weight: 650;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 26px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.015em;
|
|
}
|
|
|
|
/* ---------- Labels: sentence case instead of tracked capitals ---------- */
|
|
|
|
#sidebar .nav-title,
|
|
.card-title,
|
|
.badge,
|
|
.flag,
|
|
#content .table-header th,
|
|
#content .table-small-header th,
|
|
.stat-label,
|
|
.ev-meta dt,
|
|
.ev-facts dt,
|
|
.ev-player small,
|
|
.ev-sel-stats span {
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
#sidebar .nav-title {
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-title {
|
|
color: var(--color-font2);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#content .table-header th,
|
|
#content .table-small-header th {
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* The header's accent stripe carried no information */
|
|
#content .table-header th:first-child {
|
|
border-left: 0;
|
|
}
|
|
|
|
.stat-label,
|
|
.ev-meta dt,
|
|
.ev-facts dt,
|
|
.ev-player small {
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.flag {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ---------- Surfaces: borders instead of shadows ---------- */
|
|
|
|
.card,
|
|
.stat-card {
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Fleet and queue counters: number first, icon as a quiet marker */
|
|
.stat-card {
|
|
flex-direction: row-reverse;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.stat-icon {
|
|
width: auto;
|
|
height: auto;
|
|
background: none !important;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 26px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ---------- Colour tokens that were hardcoded in older files ---------- */
|
|
|
|
.badge-info {
|
|
border-color: rgba(94, 139, 106, 0.45);
|
|
color: #A9D4B7;
|
|
}
|
|
|
|
#content a.seg-btn.active {
|
|
box-shadow: inset 0 0 0 1px rgba(94, 139, 106, 0.5);
|
|
}
|
|
|
|
.ev-move.is-active {
|
|
border-color: rgba(94, 139, 106, 0.5);
|
|
}
|
|
|
|
.ev-white .ev-piece { background-color: #EDEAE3; }
|
|
.ev-black .ev-piece { background-color: #14161A; }
|
|
|
|
/* ==========================================================================
|
|
LLR gauge (running SPRT tests)
|
|
|
|
The track runs from the lower bound (left) to the upper bound (right).
|
|
The tall tick marks LLR = 0; the fill grows from it towards the current
|
|
LLR, so direction and distance to a decision read at a glance.
|
|
========================================================================== */
|
|
|
|
.llr {
|
|
position: relative;
|
|
min-width: 150px;
|
|
height: 6px;
|
|
margin-top: 10px;
|
|
background-color: var(--line);
|
|
border-radius: 1px;
|
|
}
|
|
|
|
/* Bound markers at both ends */
|
|
.llr::before,
|
|
.llr::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -3px;
|
|
bottom: -3px;
|
|
width: 2px;
|
|
background-color: var(--line-strong);
|
|
}
|
|
|
|
.llr::before { left: 0; }
|
|
.llr::after { right: 0; }
|
|
|
|
.llr-fill {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
background-color: var(--muted);
|
|
}
|
|
|
|
.llr-pos .llr-fill { background-color: var(--ok); }
|
|
.llr-neg .llr-fill { background-color: var(--bad); }
|
|
|
|
.llr-zero {
|
|
position: absolute;
|
|
top: -4px;
|
|
bottom: -4px;
|
|
width: 1px;
|
|
background-color: var(--color-font2);
|
|
}
|
|
|
|
.llr-scale {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 5px;
|
|
color: var(--muted);
|
|
font-family: var(--font-mono);
|
|
font-size: 10.5px;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1;
|
|
}
|
|
|
|
.llr-scale b {
|
|
color: var(--color-font1);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Result cells
|
|
|
|
A filled cell is a verdict: green passed, blue passed as a non-regression
|
|
test, amber and red failed. A cell without a fill has no verdict yet, so it
|
|
is only outlined, in warm grey that cannot be mistaken for the blue.
|
|
A stopped test keeps the outline and gains diagonal hatching, like an entry
|
|
that has been struck out.
|
|
========================================================================== */
|
|
|
|
:root {
|
|
--hatch: rgba(237, 234, 227, 0.14);
|
|
}
|
|
|
|
/* Blue: a stronger fill, so it holds its own beside the green */
|
|
#content .statblock-blue {
|
|
background-color: rgba(76, 141, 255, 0.2);
|
|
color: #A9CBFF;
|
|
}
|
|
|
|
/* No verdict yet: running, pending, awaiting artifacts, stopped.
|
|
.statblock- is the empty colour name the template renders for them, which
|
|
also covers result cells that carry no state class. */
|
|
#content .statblock.statblock-,
|
|
#content .statblock.state-running,
|
|
#content .statblock.state-pending,
|
|
#content .statblock.state-awaiting,
|
|
#content .statblock.state-stopped {
|
|
background-color: transparent;
|
|
box-shadow: inset 0 0 0 1px var(--line-strong);
|
|
color: var(--color-font2);
|
|
}
|
|
|
|
/* Nothing has been played yet */
|
|
#content .statblock.state-pending,
|
|
#content .statblock.state-awaiting {
|
|
color: var(--muted);
|
|
}
|
|
|
|
#content .statblock.state-stopped {
|
|
background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, var(--hatch) 6px, var(--hatch) 7.5px, transparent 7.5px, transparent 9px);
|
|
}
|