mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
feat(roadtrip): give the day boundary its own band, and flag a late pause
Three things the rail was quietly getting wrong at a day boundary. A stop reached later than the time set on it showed a warning only when it carried a number. The schedule restarts its chain at any anchor, whatever kind of stop holds it, so the finding was computed for a fuel or charging halt too and then thrown away. Both branches now draw it, from one component, and it sits in the badge row beside the stay rather than on a line of its own. The midnight crossing was a small pill floating in the middle of the rail, which read as a badge belonging to the stop underneath. It is now a band across the full width that breaks the dashed line instead of letting it run through, with the mascot asleep in the gap. Both its animations stop under prefers-reduced-motion. And the stay dialog said 'leave 01:00' for a departure the chain places on the next day, because the clock wraps modulo 24 h. It now carries the same day marker the rail has always shown beside such a time.
This commit is contained in:
@@ -523,6 +523,20 @@ input[type="number"], input[type="time"], input[type="date"], input[type="dateti
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
|
||||
/* Roadtrip: die Zzz am Tageswechsel im Streckenstrang. Drei Buchstaben auf einer
|
||||
Grundlinie, jeder ein Drittel des Laufs nach dem vorigen, damit immer einer
|
||||
unterwegs ist. Rein dekorativ — das Wort daneben sagt schon, was das Band ist. */
|
||||
@keyframes trek-doze {
|
||||
0% { opacity: 0; transform: translate(0, 3px) scale(0.7); }
|
||||
22% { opacity: 0.9; }
|
||||
100% { opacity: 0; transform: translate(6px, -10px) scale(1.15); }
|
||||
}
|
||||
.trek-doze > * {
|
||||
animation: trek-doze 3s ease-out infinite;
|
||||
}
|
||||
.trek-doze > *:nth-child(2) { animation-delay: 1s; }
|
||||
.trek-doze > *:nth-child(3) { animation-delay: 2s; }
|
||||
|
||||
/* Stagger-Helpers für Listen — Enter-Animation mit Offset */
|
||||
@keyframes trek-fade-up {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
@@ -551,6 +565,12 @@ input[type="number"], input[type="time"], input[type="date"], input[type="dateti
|
||||
animation: none;
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
/* Die Zzz stehen still statt zu treiben — der Tageswechsel bleibt lesbar. */
|
||||
.trek-doze > * {
|
||||
animation: none;
|
||||
opacity: 0.6;
|
||||
transform: none;
|
||||
}
|
||||
button:not(:disabled):not([data-no-press]):active,
|
||||
[role="button"]:not([aria-disabled="true"]):not([data-no-press]):active,
|
||||
[data-press]:active {
|
||||
|
||||
Reference in New Issue
Block a user