Polish live timing UI

This commit is contained in:
2026-05-25 10:45:35 -04:00
parent e539abcc5f
commit 9532206522
9 changed files with 269 additions and 42 deletions

View File

@@ -481,13 +481,16 @@ a { color: inherit; text-decoration: none; }
.live-page { max-width: 1120px; }
.live-banner {
padding-bottom: var(--s4);
border-bottom: 1px solid var(--border);
margin-bottom: var(--s5);
}
.live-banner-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--s5);
padding-bottom: var(--s4);
border-bottom: 1px solid var(--border);
margin-bottom: var(--s5);
}
.live-banner-main {
@@ -515,6 +518,63 @@ a { color: inherit; text-decoration: none; }
flex-wrap: wrap;
}
.live-weather-strip {
display: flex;
gap: var(--s4);
align-items: center;
flex-wrap: wrap;
margin-top: var(--s3);
padding-top: var(--s3);
border-top: 1px solid var(--border);
font-size: 11px;
color: var(--text-3);
font-family: var(--f-mono);
}
.badge-wet {
background: rgba(0,128,255,.14);
color: #66aaff;
border: 1px solid rgba(0,128,255,.26);
}
/* ── Live columns layout ── */
.live-columns {
display: flex;
flex-direction: column;
gap: var(--s5);
}
@media (min-width: 900px) {
.live-columns {
display: grid;
grid-template-columns: minmax(0, 1fr) 340px;
gap: var(--s5);
align-items: start;
}
}
/* ── Live status strip ── */
.live-status-strip {
padding: var(--s2) var(--s5);
font-size: 11px;
font-family: var(--f-mono);
margin-bottom: var(--s4);
border-radius: 2px;
}
.live-status-warn {
background: rgba(255,214,0,.06);
border: 1px solid rgba(255,214,0,.2);
color: var(--yellow);
}
/* ── Live empty state ── */
.live-empty-status {
display: flex;
justify-content: center;
margin-bottom: var(--s4);
}
.mono { font-family: var(--f-mono); }
.live-conn,
@@ -549,11 +609,16 @@ a { color: inherit; text-decoration: none; }
.live-tower .in-pit td { background: rgba(0, 80, 160, 0.14); }
.live-tower .pit-out td { background: rgba(57, 199, 58, 0.10); }
.live-tower .retired td { opacity: 0.62; }
.pos-delta { color: var(--text-3); font-family: var(--f-mono); }
.pos-delta { font-family: var(--f-mono); color: var(--text-3); }
.pos-delta.pos-gain { color: var(--green); }
.pos-delta.pos-loss { color: var(--red); }
.lap-pb { color: var(--green); }
.lap-ob { color: var(--purple); }
.badge-pit { background: rgba(0,128,255,.14); color: #66aaff; border: 1px solid rgba(0,128,255,.26); }
.badge-out { background: rgba(225,6,0,.12); color: #ff6b6b; border: 1px solid rgba(225,6,0,.24); }
.badge-pit { background: rgba(0,128,255,.14); color: #66aaff; border: 1px solid rgba(0,128,255,.26); }
.badge-out { background: rgba(225,6,0,.12); color: #ff6b6b; border: 1px solid rgba(225,6,0,.24); }
.badge-flying { background: rgba(194,120,255,.14); color: var(--purple); border: 1px solid rgba(194,120,255,.26); }
.badge-knocked { background: rgba(225,6,0,.12); color: #ff6b6b; border: 1px solid rgba(225,6,0,.24); }
.badge-cutoff { background: rgba(255,214,0,.12); color: var(--yellow); border: 1px solid rgba(255,214,0,.25); }
.tyre-soft { background: var(--tyre-soft); color: #fff; }
.tyre-medium { background: var(--tyre-medium); color: #111; }
@@ -568,6 +633,11 @@ a { color: inherit; text-decoration: none; }
border-top: 1px solid var(--border);
}
.live-rc-scroll {
max-height: 320px;
overflow-y: auto;
}
.live-rc-row {
display: flex;
align-items: baseline;
@@ -575,6 +645,7 @@ a { color: inherit; text-decoration: none; }
padding: var(--s3) 0;
border-bottom: 1px solid var(--border);
font-size: 12px;
flex-wrap: wrap;
}
.rc-time,
@@ -585,6 +656,8 @@ a { color: inherit; text-decoration: none; }
font-size: 11px;
}
.rc-message { flex: 1; min-width: 0; }
.rc-flag {
flex-shrink: 0;
padding: 1px 5px;
@@ -596,6 +669,23 @@ a { color: inherit; text-decoration: none; }
letter-spacing: 0.06em;
}
.rc-flag-green { background: rgba(57,199,58,.15); color: var(--green); border-color: rgba(57,199,58,.3); }
.rc-flag-yellow { background: rgba(255,214,0,.15); color: var(--yellow); border-color: rgba(255,214,0,.3); }
.rc-flag-red { background: rgba(225,6,0,.15); color: #ff6b6b; border-color: rgba(225,6,0,.3); }
.rc-flag-sc { background: rgba(255,214,0,.15); color: var(--yellow); border-color: rgba(255,214,0,.3); }
.rc-flag-vsc { background: rgba(194,120,255,.15); color: var(--purple); border-color: rgba(194,120,255,.3); }
.rc-flag-chequered { background: rgba(200,200,200,.10); color: var(--text-2); border-color: var(--border-2); }
.rc-category {
flex-shrink: 0;
font-size: 9px;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--text-3);
font-family: var(--f-mono);
}
.missing-notice {
padding: var(--s4) var(--s5);
background: var(--surface);
@@ -1240,7 +1330,7 @@ a { color: inherit; text-decoration: none; }
.session-bar input { flex: 1; max-width: 140px; }
.live-banner {
.live-banner-row {
flex-direction: column;
align-items: flex-start;
gap: var(--s3);
@@ -1250,6 +1340,8 @@ a { color: inherit; text-decoration: none; }
width: 100%;
}
.live-banner h1 { font-size: 16px; }
.live-weather-strip { gap: var(--s3); }
.live-rc-scroll { max-height: 220px; }
.dataset-strip {
flex-wrap: nowrap;