diff --git a/TASKS.md b/TASKS.md index 419468d..f1cc49a 100644 --- a/TASKS.md +++ b/TASKS.md @@ -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. diff --git a/configs/ontime/override.css b/configs/ontime/override.css index 0d1defe..84e5492 100644 --- a/configs/ontime/override.css +++ b/configs/ontime/override.css @@ -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; + } +} diff --git a/docs/desktop-app-configs.md b/docs/desktop-app-configs.md index 465b667..ddcbfb3 100644 --- a/docs/desktop-app-configs.md +++ b/docs/desktop-app-configs.md @@ -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.