Files
OpenBench/OpenBench/static/workload.css
T
claude 56e22e6936 LLR history: back to a simple graph, back in the Actions card, fixed snapping
- Simple graph again: plot with grid, 3 y labels, games axis, bounds/zero
  when in range, green/red line, hover marker + one-line tooltip. Removed the
  header, progress bar, legend, area fill, zones, pulse and animations.
  Colours are unchanged.
- The LLR panel is back at the end of the Actions card (below Adjust) where it
  was originally; the separate LLR card and its grid placement are gone.
- Snapping: the marker now locks onto every visible peak and valley. Peaks
  are found with a swing filter (a turning point counts once the line has
  moved >= 3px away from it), so plateaus and tiny wiggles no longer steal
  the snap from the real peaks. The first and latest points snap as well.
2026-10-09 22:15:23 +02:00

125 lines
2.4 KiB
CSS

/* ==========================================================================
OpenBench - workload page: LLR history graph
(the panel itself, its label and the placeholder are styled in style.css)
========================================================================== */
#content .llr-history-loader {
width: 100%;
}
#content .llr-history-placeholder {
width: 100%;
height: 124px;
}
#content .llrg-plot {
position: relative;
cursor: crosshair;
touch-action: pan-y;
user-select: none;
-webkit-user-select: none;
}
#content .llrg-plot:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 4px;
}
#content .llrg-svg {
display: block;
width: 100%;
height: auto;
overflow: visible;
}
.llrg-bg {
fill: var(--color1);
stroke: var(--line-strong);
stroke-width: 1;
}
.llrg-grid {
stroke: rgba(197, 204, 217, 0.09);
stroke-width: 1;
shape-rendering: crispEdges;
}
.llrg-zero {
stroke: #6E7FA6;
stroke-width: 1;
opacity: 0.7;
}
.llrg-bound {
stroke: var(--bad);
stroke-width: 1;
stroke-dasharray: 4 3;
opacity: 0.8;
}
.llrg-tick {
fill: var(--muted);
font: 500 10px var(--font-mono);
}
.llrg-line {
fill: none;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.llrg-line-pos { stroke: var(--ok); }
.llrg-line-neg { stroke: var(--bad); }
.llrg-hover-line {
stroke: var(--color-font1);
stroke-width: 1;
stroke-dasharray: 2 2;
opacity: 0;
}
.llrg-hover-dot {
fill: var(--color-font1);
stroke-width: 1.5;
opacity: 0;
}
.llrg-hover-line.active,
.llrg-hover-dot.active {
opacity: 0.85;
}
.llrg-hover-dot.llrg-pos { stroke: var(--ok); }
.llrg-hover-dot.llrg-neg { stroke: var(--bad); }
#content .llrg-tip {
position: absolute;
left: 0;
top: 0;
z-index: 1;
padding: 0.2rem 0.5rem 0.18rem;
background-color: rgba(11, 14, 20, 0.96);
border: 1px solid var(--line-strong);
border-radius: var(--radius);
color: var(--color-font1);
font-family: var(--font-mono);
font-size: 0.72rem;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transform: translateY(2px);
transition: opacity 0.12s ease, transform 0.12s ease;
}
#content .llrg-tip.active {
opacity: 1;
transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
#content .llrg-tip {
transition: none;
}
}