mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 02:56:10 +00:00
4c0583845a
Selecting a place no longer spiderfies a city-sized cluster: the reveal only fans open bubbles of up to 12 stops, or stacks whose stops all share one coordinate, so a zoomed-out trip with hundreds of places stays usable (#2990). The selected pin now carries a white border inside a pulsing blue ring on both renderers (static under reduced motion), and the map measures the place card instead of assuming a fixed 320px, so the selection pans the pin above even a tall card on portrait tablets and eases it back out when the card grows over it later (#2991). Closes #2990 Closes #2991
29 lines
783 B
CSS
29 lines
783 B
CSS
/* The selected place pin on either map (#2991). Its static ring is inline, so a browser
|
|
without the animation still shows it; the pulse only widens a fading second ring
|
|
around it, and the pin itself never moves. */
|
|
@keyframes trek-marker-selected-pulse {
|
|
0% {
|
|
box-shadow:
|
|
0 0 0 3px #0a84ff,
|
|
0 0 0 3px rgba(10, 132, 255, 0.55),
|
|
0 4px 14px rgba(0, 0, 0, 0.35);
|
|
}
|
|
100% {
|
|
box-shadow:
|
|
0 0 0 3px #0a84ff,
|
|
0 0 0 16px rgba(10, 132, 255, 0),
|
|
0 4px 14px rgba(0, 0, 0, 0.35);
|
|
}
|
|
}
|
|
|
|
.trek-marker-selected {
|
|
animation: trek-marker-selected-pulse 1.8s ease-out infinite;
|
|
}
|
|
|
|
/* Under reduced motion the ring stays, it just stops breathing. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.trek-marker-selected {
|
|
animation: none;
|
|
}
|
|
}
|