Changeset 183875b in Klonkt for src/assets


Ignore:
Timestamp:
06/20/2026 05:23:08 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
d727e92
Parents:
459acd9
Message:

feat(audio): per-track "open in" Spotify/YouTube/SoundCloud links

New per-track fields link_spotify/link_youtube/link_soundcloud (audio_tracks),
editable in the track editor (https + correct host validated). Shown as small
brand icons per track row in standalone track embeds, albums and playlists —
click opens the track on that service (new tab). buster audio.css?v=8.

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

File:
1 edited

Legend:

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

    r459acd9 r183875b  
    8282  text-overflow: ellipsis;
    8383}
     84
     85/* "Open in" Spotify/YouTube/SoundCloud — kleine brand-iconen per track. */
     86.pat-links {
     87  display: inline-flex; align-items: center; gap: 0.1rem;
     88  flex: 0 0 auto;
     89}
     90/* Single + album-rij (.post-audio-track is flex) → duw de links naar rechts. */
     91.post-audio-track .pat-links { margin-left: auto; padding-right: 0.5rem; }
     92/* Playlist-rij: de li flex maken zodat de links naast de afspeel-rij passen. */
     93.post-album-track-compact { display: flex; align-items: center; }
     94.post-album-track-compact .pat-row { flex: 1 1 auto; min-width: 0; }
     95.post-album-track-compact .pat-links { padding-right: 0.6rem; }
     96.pat-link {
     97  display: inline-flex; align-items: center; justify-content: center;
     98  width: 26px; height: 26px;
     99  opacity: 0.75;
     100  transition: opacity 120ms, transform 120ms;
     101}
     102.pat-link svg { width: 17px; height: 17px; }
     103.pat-link:hover { opacity: 1; transform: scale(1.12); }
     104.pat-link--spotify    { color: #1DB954; }
     105.pat-link--youtube    { color: #FF0000; }
     106.pat-link--soundcloud { color: #FF5500; }
    84107
    85108/* ============================================================
Note: See TracChangeset for help on using the changeset viewer.