Enlarge Ontime timer and message with red background blink
Config Central CI Config Central passed all CI integrity checks.
Beffroi/config-central/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-10-19 15:36:56 +02:00
parent 18ab1c0dff
commit 575f6e4b40
3 changed files with 69 additions and 18 deletions

View File

@ -138,3 +138,4 @@ open until it is run on disposable machines with the required account setups.
- [x] Install MPC-HC through clsid2.mpc-hc and link its config to the package result.
- [x] Standardize entrypoint error summaries, status colors, plain redirected output, and automation exit codes across setup, updates, capture, CLI, and SSH.
- [x] Record the cross-script output and error-handling convention in AGENTS.md and the advanced guide.
- [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.

View File

@ -1,29 +1,71 @@
div.timer-container {
justify-content: flex-end !important;
/* Ontime event timer. Keep changes scoped to this view. */
.stage-timer {
--cc-timer-size: min(12vw, 26vh);
--cc-blink-red: #b00020;
padding: min(2vh, 16px) clamp(14px, 2vw, 32px);
}
.stage-timer .timer-container {
display: flex;
flex-direction: column;
justify-content: flex-end !important;
}
div.timer {
font-size: 8vw!important;
/* Override both the countdown and FitText's inline message font size. */
.stage-timer .timer,
.stage-timer .secondary,
.stage-timer .secondary > div,
.stage-timer .end-message {
font-size: var(--cc-timer-size) !important;
line-height: 1.05;
}
.secondary--hidden{
display: none!important;
.stage-timer .secondary {
white-space: normal;
overflow-wrap: anywhere;
flex-shrink: 0;
margin-top: 0.15em;
padding-block: 0.1em;
border-top: 0;
}
.clock {
color: white!important;
.stage-timer .secondary--hidden,
.stage-timer .event,
.stage-timer .clock-container > .label,
.stage-timer .progress-container {
display: none !important;
}
.secondary {
color: white!important;
.stage-timer .clock,
.stage-timer .secondary {
color: white !important;
}
div.clock-container>.label{
display: none;
/* Ontime's blink normally animates text/container opacity. */
.stage-timer .timer-container.blink,
.stage-timer .message.blink {
animation: none !important;
opacity: 1 !important;
}
.progress-container {
display: none;
/* Flash the whole view, including the opaque fullscreen-message overlay.
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;
}
.stage-timer:has(.blink) .timer,
.stage-timer:has(.blink) .end-message,
.stage-timer:has(.blink) .message {
color: white !important;
}
@keyframes cc-ontime-background-blink {
0%, 100% {
background-color: var(--timer-bg, var(--background-color-override, #000));
}
50% {
background-color: var(--cc-blink-red);
}
}
.stage-timer{
padding: min(2vh,16px) clamp(16px,2vw,14px);
}

View File

@ -50,7 +50,15 @@ local export work, but its output should almost never be committed.
The profile manages Ontime's supported CSS override at
`%APPDATA%\Ontime\user\styles\override.css`. Edit
`configs/ontime/override.css` to define the shared presentation.
`configs/ontime/override.css` to define the shared presentation. The event timer
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 message blink uses the same background effect.
Keep bottom messages short to fit at countdown size. The background trigger uses
CSS `:has()`, so use a current browser for the timer display.
The shared size is `--cc-timer-size` and the flash color is `--cc-blink-red` at the
top of the stylesheet. After deploying, reload the timer browser view.
Ontime stores projects, uploads, logs, crash data, its database, and volatile
`app-state.json` beneath `%APPDATA%\Ontime`. Config Central leaves those files