Simplify Ontime clock and slow background alerts

This commit is contained in:
Dandaedre 2026-10-19 15:50:32 +02:00
parent 6ee43de515
commit 8accc26b43
3 changed files with 17 additions and 2 deletions

View File

@ -141,3 +141,4 @@ open until it is run on disposable machines with the required account setups.
- [x] Simplify the Ontime event timer: hide event cards, enlarge countdown and bottom message equally, and blink the background red; checked in a local Firefox fixture.
- [x] Reduce Ontime countdown/message sizing by 30%, enlarge the clock, and bottom-align fullscreen messages; preview both layouts in Firefox.
- [x] Verify the shared MPC-HC x86/x64 registry target and block apply while either player is running to prevent settings being overwritten on exit.
- [x] Hide Ontime clock seconds and slow background blink to a three-second fade with a steady reduced-motion fallback.

View File

@ -3,6 +3,7 @@
--cc-timer-size: min(8.4vw, 18.2vh);
--cc-clock-size: min(5vw, 10vh);
--cc-blink-red: #b00020;
--cc-blink-period: 3s;
padding: min(2vh, 16px) clamp(14px, 2vw, 32px);
}
@ -45,6 +46,8 @@
font-size: var(--cc-clock-size) !important;
}
/* Hide only clock seconds (including their colon), keeping AM/PM. */
.stage-timer .clock .subscript,
.stage-timer .secondary--hidden,
.stage-timer .event,
.stage-timer .clock-container > .label,
@ -68,7 +71,7 @@
Blackout remains above both and retains its normal behavior. */
.stage-timer:has(.blink),
.stage-timer .message-overlay--active:has(.message.blink) {
animation: cc-ontime-background-blink 1s steps(1, end) infinite !important;
animation: cc-ontime-background-blink var(--cc-blink-period) ease-in-out infinite !important;
}
.stage-timer:has(.blink) .timer,
@ -85,3 +88,12 @@
background-color: var(--cc-blink-red);
}
}
/* Respect viewers who have requested reduced motion: a steady red alert. */
@media (prefers-reduced-motion: reduce) {
.stage-timer:has(.blink),
.stage-timer .message-overlay--active:has(.message.blink) {
animation: none !important;
background-color: var(--cc-blink-red) !important;
}
}

View File

@ -65,7 +65,9 @@ The profile manages Ontime's supported CSS override at
hides current/next event cards, uses the same enlarged font size for the countdown
and bottom message, and flashes the background red when Blink is active. Text
stays visible. Fullscreen messages are bottom-aligned, share the countdown font
size, and use the same background blink effect. The upper-right clock is enlarged.
size, and use the same background blink effect. The upper-right clock is enlarged and shows hours/minutes without seconds.
Blink uses a gradual three-second cycle; reduced-motion browsers show steady red
instead. Slower flashing is not a guarantee of photosensitive safety.
Keep bottom messages short to fit at countdown size. The background trigger uses
CSS `:has()`, so use a current browser for the timer display.