Add configs/ontime/ontime-alternative.css
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-11-09 07:34:47 +01:00
parent f59ce6bf8f
commit 01bc8ede37
1 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,116 @@
/* ============================================================
ONTIME — MAIN TIMER
Large countdown, native progress bar, no messages.
============================================================ */
.stage-timer {
--cc-timer-size: min(26vw, 50vh);
--cc-clock-size: min(4vw, 7vh);
--cc-blink-red: #b00020;
--cc-blink-period: 3s;
padding: min(2vh, 16px) clamp(14px, 2vw, 32px);
}
/* ------------------------------------------------------------
MAIN TIMER LAYOUT
------------------------------------------------------------ */
.stage-timer .timer-container {
display: flex;
flex-direction: column;
justify-content: center !important;
align-items: center;
flex: 1;
min-height: 0;
}
/* Large, prominent countdown. */
.stage-timer .timer {
font-size: var(--cc-timer-size) !important;
line-height: 1.05;
white-space: nowrap;
color: white !important;
}
/* Smaller clock, without seconds. */
.stage-timer .clock {
font-size: var(--cc-clock-size) !important;
color: white !important;
}
.stage-timer .clock .subscript {
display: none !important;
}
/* ------------------------------------------------------------
PROGRESS BAR
Keep Ontime's native progress bar and its state colours.
------------------------------------------------------------ */
.stage-timer .progress-container {
display: revert !important;
visibility: visible !important;
opacity: 1 !important;
}
/* ------------------------------------------------------------
HIDDEN ELEMENTS
------------------------------------------------------------ */
.stage-timer .secondary,
.stage-timer .secondary--hidden,
.stage-timer .event,
.stage-timer .end-message,
.stage-timer .message-overlay,
.stage-timer .message,
.stage-timer .clock-container > .label {
display: none !important;
}
/* ------------------------------------------------------------
BLINK BEHAVIOUR
Replace Ontime's opacity blink with background flashing.
------------------------------------------------------------ */
.stage-timer .timer-container.blink,
.stage-timer .message.blink {
animation: none !important;
opacity: 1 !important;
}
/* Flash the whole timer background on alert. */
.stage-timer:has(.blink) {
animation:
cc-ontime-background-blink
var(--cc-blink-period)
ease-in-out infinite !important;
}
/* Keep countdown readable while flashing. */
.stage-timer:has(.blink) .timer {
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);
}
}
/* ------------------------------------------------------------
ACCESSIBILITY
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
.stage-timer:has(.blink) {
animation: none !important;
background-color: var(--cc-blink-red) !important;
}
}