Changeset 557a76f in Klonkt for src/assets/css/embed.css


Ignore:
Timestamp:
06/20/2026 03:04:22 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
7990e00
Parents:
2873b30
Message:

feat(embed): volume slider + mute for YouTube & SoundCloud

YT/SC use our own controls → volume is now adjustable: mute button + slider
in the control bar. Adapters got setVolume (YT mute/unMute+setVolume, SC
setVolume); the value is remembered and reapplied after (re)mount. Spotify
is excluded (cross-origin iframe, no API volume — as discussed). busters
embed-player.js?v=7, embed.css?v=4.

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

File:
1 edited

Legend:

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

    r2873b30 r557a76f  
    195195  text-align: center;
    196196}
     197/* Volume: mute-knop + compacte schuif (alleen YT/SC — eigen controls). */
     198.pcms-embed-mute {
     199  flex: 0 0 auto;
     200  width: 28px; height: 28px;
     201  border: 0; background: none; padding: 0;
     202  color: var(--ink-muted, #6b6560);
     203  cursor: pointer;
     204  display: grid; place-items: center;
     205}
     206.pcms-embed-mute svg { width: 18px; height: 18px; }
     207.pcms-embed-vol {
     208  flex: 0 0 auto;
     209  width: 64px;
     210  cursor: pointer;
     211  accent-color: var(--accent, #c2410c);
     212}
     213@media (max-width: 480px) {
     214  /* Smal scherm: schuif weg, alleen de mute-knop houden (ruimte). */
     215  .pcms-embed-vol { display: none; }
     216}
    197217.pcms-embed-seek {
    198218  position: relative;
Note: See TracChangeset for help on using the changeset viewer.