feat(overlay): flash the row on a new time, ticking pit clock and split badges (1.88.0)
This commit is contained in:
1 parent
ee290a4ab8
commit
f5b77d5589
11 files changed
+304
-6
No files matched your search
@@ -4992,3 +4992,40 @@ tr:has(> td > .medal-3) { background: linear-gradient(90deg, rgba(205, 127, 60,
|
||||
.stint-lap.is-excluded { opacity: 0.55; }
|
||||
.stint-laps-empty { color: var(--muted); }
|
||||
.stint-laps-title { margin: 12px 0 2px; }
|
||||
|
||||
/* Overlay live marks (src/overlay_live_marks.js): flash on a new time, pit clock, split. */
|
||||
.overlay-race-row.is-passing, .obs-tv-row.is-passing { animation: overlay-pass 700ms ease-out var(--pass-delay, 0ms) both; }
|
||||
@keyframes overlay-pass {
|
||||
0% { box-shadow: inset 4px 0 0 #ffe066, inset 0 0 0 999px rgb(255 224 102 / 34%); }
|
||||
100% { box-shadow: inset 4px 0 0 transparent, inset 0 0 0 999px transparent; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.overlay-race-row.is-passing, .obs-tv-row.is-passing { animation: none; box-shadow: inset 4px 0 0 #ffe066; }
|
||||
}
|
||||
.overlay-live-marks { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
|
||||
.overlay-race-driver .overlay-live-marks { margin-left: 8px; }
|
||||
/* The driver cell styles its spans as tiny grey labels; the marks keep their own look. */
|
||||
.overlay-race-driver .overlay-live-marks span { font-size: 0.72rem; letter-spacing: 0; text-transform: none; }
|
||||
.overlay-race-driver .overlay-pit-badge { color: #2a1a00; }
|
||||
.overlay-race-driver .overlay-pit-badge.is-done { color: #ffd28a; }
|
||||
.overlay-race-driver .overlay-split-chip { color: #bfe8ff; }
|
||||
body[data-theme="light"] .overlay-race-driver .overlay-split-chip { color: #075985; }
|
||||
body[data-theme="light"] .overlay-race-driver .overlay-pit-badge.is-done { color: #7a4a00; }
|
||||
.overlay-pit-badge, .overlay-split-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 999px; font-size: 0.78em; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.overlay-pit-badge { background: #f5a623; color: #2a1a00; }
|
||||
.overlay-pit-badge.is-active { animation: overlay-pit-pulse 1s ease-in-out infinite; }
|
||||
.overlay-pit-badge.is-done { background: color-mix(in srgb, #f5a623 30%, transparent); color: #ffd28a; }
|
||||
.overlay-fuel-icon { width: 1.05em; height: 1.05em; flex: none; }
|
||||
@keyframes overlay-pit-pulse { 50% { background: #ffc65c; } }
|
||||
.overlay-split-chip { background: rgb(14 165 233 / 22%); color: #bfe8ff; }
|
||||
.overlay-split-chip i { font-style: normal; }
|
||||
.overlay-split-chip .is-faster { color: #4ade80; }
|
||||
.overlay-split-chip .is-slower { color: #f87171; }
|
||||
/* Hung outside the tower's left edge, over the video: it covers no name and the tower
|
||||
(sized to its content) never changes width. */
|
||||
.obs-tv-row:has(.overlay-live-marks) { position: relative; overflow: visible; }
|
||||
.obs-tv-name:has(.overlay-live-marks) { overflow: visible; }
|
||||
.obs-tv-cell .overlay-live-marks { position: absolute; top: 50%; right: calc(100% + 0.35em); transform: translateY(-50%); flex-wrap: nowrap; margin: 0; font-size: 0.85em; text-transform: none; filter: drop-shadow(0 0.1em 0.3em rgb(0 0 0 / 60%)); }
|
||||
.obs-tv-cell .overlay-split-chip { background: #0b4a6b; }
|
||||
body[data-theme="light"] .overlay-split-chip { color: #075985; }
|
||||
body[data-theme="light"] .overlay-pit-badge.is-done { color: #7a4a00; }
|
||||
Reference in new issue
Block a user