Build image / build (push) Successful in 3m18s
- Dockerfile bakes the app and every CSV in data/ into an nginx image - UI discovers data/*.csv via nginx JSON autoindex and offers a dropdown when there is more than one dataset - docker-entrypoint.d/40-basic-auth.sh creates .htpasswd from BASIC_AUTH_USER / BASIC_AUTH_PASSWORD(_FILE) and refuses to start without credentials; replaces set-password.sh - Gitea Actions workflow builds and pushes registry.traberph.de/public/interval_viz (latest, sha-*, semver) - Escape resets the chart zoom Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
65 lines
3.1 KiB
CSS
65 lines
3.1 KiB
CSS
:root {
|
|
--bg: #f7f7f5; --surface: #ffffff; --ink: #1b1b1f; --ink-2: #55565e; --muted: #8a8b93;
|
|
--line: #e4e4e0; --accent: #2a6fdb; --accent-fill: rgba(42, 111, 219, .18); --error: #c0392b;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #141417; --surface: #1d1e22; --ink: #ececf0; --ink-2: #b1b2ba; --muted: #7d7e87;
|
|
--line: #2e2f35; --accent: #6b9ff0; --accent-fill: rgba(107, 159, 240, .22); --error: #ff7b6b;
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0; background: var(--bg); color: var(--ink);
|
|
font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
}
|
|
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
|
|
|
|
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
|
|
h1 { font-size: 20px; margin: 0; font-weight: 600; }
|
|
h2 {
|
|
font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
|
|
color: var(--muted); margin: 18px 0 -6px;
|
|
}
|
|
.header-right { display: flex; gap: 14px; align-items: center; }
|
|
.sub { color: var(--ink-2); font-size: 13px; }
|
|
.error { color: var(--error); }
|
|
|
|
button, label.file, select {
|
|
font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 6px; cursor: pointer;
|
|
border: 1px solid var(--line); background: var(--surface); color: var(--ink);
|
|
}
|
|
button:hover, label.file:hover, select:hover { border-color: var(--accent); }
|
|
label.file:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
label.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
|
|
|
|
.lang { display: flex; }
|
|
.lang button { border-radius: 0; padding: 4px 9px; }
|
|
.lang button:first-child { border-radius: 6px 0 0 6px; }
|
|
.lang button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
|
|
.lang button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
|
|
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
|
|
.range { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
|
|
|
|
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
|
|
#chart { width: 100%; height: 340px; }
|
|
/* the tooltip already contains the time; hide Plotly's extra x-axis hover label */
|
|
#chart .hoverlayer .axistext { display: none; }
|
|
|
|
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
|
|
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
|
|
.tile .k { color: var(--ink-2); font-size: 12px; }
|
|
.tile .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
|
|
.tile .v.sm { font-size: 17px; }
|
|
|
|
details { margin-top: 14px; }
|
|
summary { cursor: pointer; color: var(--ink-2); }
|
|
table { border-collapse: collapse; width: 100%; margin-top: 8px; font-variant-numeric: tabular-nums; font-size: 13px; }
|
|
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
|
|
th { color: var(--ink-2); font-weight: 500; }
|
|
th.num, td.num { text-align: right; }
|
|
|
|
.note { color: var(--muted); font-size: 12px; margin-top: 8px; }
|