feat(decoder): alarm banner and warning sound when the decoder drops or goes silent during a heat (1.89.25)
This commit is contained in:
1 parent
259945799d
commit
239cac8033
18 files changed
+225
-5
No files matched your search
@@ -4953,6 +4953,13 @@ tr:has(> td > .medal-3) { background: linear-gradient(90deg, rgba(205, 127, 60,
|
||||
/* Race Controller Master: banner for the browsers that follow, badge for the master. */
|
||||
.controller-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--text); font-size: 0.85rem; }
|
||||
.controller-banner[hidden] { display: none; }
|
||||
/* Decoder alarm (decoder_watch.js): red and pulsing while timing is down, green when it is back. */
|
||||
.decoder-alarm { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; padding: 10px 14px; border: 2px solid #ff4d4f; border-radius: 8px; background: color-mix(in srgb, #ff4d4f 22%, var(--panel)); color: var(--text); font-size: 1rem; box-shadow: 0 4px 18px rgb(0 0 0 / 35%); animation: decoder-alarm-pulse 1.2s ease-in-out infinite; }
|
||||
.decoder-alarm[hidden] { display: none; }
|
||||
.decoder-alarm strong { flex: 1 1 260px; }
|
||||
.decoder-alarm.is-back { border-color: #2fa84f; background: color-mix(in srgb, #2fa84f 18%, var(--panel)); animation: none; }
|
||||
@keyframes decoder-alarm-pulse { 50% { background: color-mix(in srgb, #ff4d4f 40%, var(--panel)); } }
|
||||
@media (prefers-reduced-motion: reduce) { .decoder-alarm { animation: none; } }
|
||||
.controller-banner.is-flash { animation: controller-flash 0.9s ease 2; }
|
||||
@keyframes controller-flash { 50% { background: color-mix(in srgb, var(--accent) 45%, var(--panel)); } }
|
||||
.controller-badge { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); color: var(--text); }
|
||||
|
||||
Reference in new issue
Block a user