Changeset 230e446 in Klonkt for src/assets/css/style.css


Ignore:
Timestamp:
06/20/2026 01:38:16 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
fa08981
Parents:
d188736
Message:

feat(player): mini-player jumps to post AND scrolls to the track (desktop)

Track embed gets id="track-<id>" (anchor) + id in the track JSON. goToPost
now carries the track id: after the htmx swap to the post it scrolls to the
track embed (block:center, smooth) with a brief highlight, instead of
scrolling to the top. Busters: audio-player.js?v=17, style.css?v=16.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/assets/css/style.css

    rd188736 r230e446  
    28192819    border-color: var(--accent, #c2410c);
    28202820    background: color-mix(in srgb, var(--accent, #c2410c) 5%, var(--paper-2, transparent));
     2821}
     2822/* Korte highlight wanneer je via de mini-speler naar deze track springt. */
     2823.post-audio-track.pat-flash {
     2824    animation: patFlash 1.6s ease-out;
     2825}
     2826@keyframes patFlash {
     2827    0%, 30% { border-color: var(--accent, #c2410c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #c2410c) 35%, transparent); }
     2828    100% { box-shadow: 0 0 0 0 transparent; }
    28212829}
    28222830.post-audio-track .pat-play {
Note: See TracChangeset for help on using the changeset viewer.