feat(race-day): traffic-light colours on the run buttons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c4df90706a
commit
ba35f9e7d2
5 files changed
+46
-8
No files matched your search
@@ -1930,6 +1930,43 @@ body {
|
||||
);
|
||||
}
|
||||
|
||||
/* Traffic-light run controls: green starts or resumes, amber holds, red (.btn-danger) finishes. */
|
||||
.btn-go {
|
||||
color: #fff;
|
||||
border-color: color-mix(in srgb, var(--ok) 62%, black 38%);
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 82%, white 18%), color-mix(in srgb, var(--ok) 70%, black 30%));
|
||||
}
|
||||
|
||||
.btn-hold {
|
||||
color: #1a1200;
|
||||
border-color: color-mix(in srgb, var(--warn) 62%, black 38%);
|
||||
background: linear-gradient(180deg, color-mix(in srgb, var(--warn) 85%, white 15%), color-mix(in srgb, var(--warn) 80%, black 20%));
|
||||
}
|
||||
|
||||
.btn-go:disabled,
|
||||
.btn-hold:disabled {
|
||||
filter: grayscale(0.7);
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.live-dot {
|
||||
display: inline-block;
|
||||
width: 0.7em;
|
||||
height: 0.7em;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
vertical-align: middle;
|
||||
animation: live-dot-pulse 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes live-dot-pulse {
|
||||
50% { opacity: 0.25; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.live-dot { animation: none; }
|
||||
}
|
||||
|
||||
.btn-mini {
|
||||
padding: 3px 8px;
|
||||
font-size: 0.76rem;
|
||||
|
||||
Reference in new issue
Block a user