Web: queue button to the right, expandable art, big drag-anywhere stem faders

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-19 21:10:39 -08:00
1 parent e23311bff6
commit 115eb28bdf
3 files changed
+117 -25

No files matched your search

+30 -11
View File
@@ -210,14 +210,19 @@ input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid var
.chip { background: var(--raised); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.chip.on { background: var(--accent); color: var(--accent-ink); }
.chip:disabled { opacity: .35; cursor: default; }
.stem { --c: #8e8e93; display: grid; grid-template-columns: 96px 1fr 40px auto auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.stem .name { text-transform: capitalize; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stem .name i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.stem input { width: 100%; accent-color: var(--c); }
.stem .pct { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.stem.silent .name, .stem.silent .pct { color: var(--muted); }
.stem.silent .name i, .stem.silent input { opacity: .35; }
.ms { width: 32px; height: 30px; border-radius: 8px; background: var(--raised); font-size: 12px; font-weight: 800; color: var(--muted);
.stem { --c: #8e8e93; display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: stretch; margin-bottom: 8px; }
.fader { position: relative; height: 54px; border-radius: 10px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
background: color-mix(in srgb, var(--c) 12%, var(--raised)); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; outline: none; }
.fader::before { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--v)); will-change: transform;
background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 75%, transparent)); pointer-events: none; }
.fader::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: clamp(2px, calc(var(--v) - 3px), calc(100% - 5px)); width: 3px; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); pointer-events: none; }
.fader:focus-visible { box-shadow: 0 0 0 2px var(--c); }
.fader.drag::after { width: 4px; }
.fader .name, .fader .pct { position: relative; z-index: 1; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.fader .name { text-transform: capitalize; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fader .pct { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stem.silent .fader { filter: saturate(.15); opacity: .55; }
.ms { width: 44px; height: auto; border-radius: 8px; background: var(--raised); font-size: 12px; font-weight: 800; color: var(--muted);
transition: transform .08s, background-color .12s, color .12s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ms:active { transform: scale(.88); }
.ms.mute.on { background: #ff453a; color: #fff; }
@@ -238,9 +243,24 @@ input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid var
#player { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); background: var(--bg);
border-top: 1px solid rgba(50, 50, 50, .7); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.6fr) minmax(180px, 1fr); align-items: center; gap: 20px; padding: 0 20px; }
#player.empty .center, #player.empty .right, #player.empty #b-queue { opacity: .35; pointer-events: none; }
#player.empty .center, #player.empty .right, #player.empty #b-art { opacity: .35; pointer-events: none; }
.left { display: flex; align-items: center; gap: 10px; min-width: 0; }
#b-queue { flex: none; }
#b-art { position: relative; flex: none; width: 60px; height: 60px; padding: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
#b-art[hidden] { display: none; }
#b-art .exp { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; }
#b-art .exp svg { width: 22px; height: 22px; fill: #fff; }
#b-art:hover .exp, #b-art:focus-visible .exp { opacity: 1; }
#bigart { position: fixed; inset: 0 0 var(--player-h) 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
padding: 32px 16px; background: #000; overflow: hidden; cursor: zoom-out; animation: bigin .18s ease-out; }
#bigart[hidden] { display: none; }
#bigart .bg { position: absolute; inset: -80px; background-size: cover; background-position: center; filter: blur(70px) brightness(.4) saturate(1.3); transform: translateZ(0); }
#bigart img { position: relative; width: min(68vh, 88vw, 760px); aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65); }
#bigart .cap { position: relative; text-align: center; max-width: 88vw; }
#bigart .t { font-size: clamp(20px, 3vw, 30px); font-weight: 800; }
#bigart .s { color: rgba(255, 255, 255, .7); margin-top: 4px; }
#bigart .x { position: absolute; top: 14px; right: 18px; font-size: 28px; color: #fff; opacity: .7; }
#bigart .x:hover { opacity: 1; }
@keyframes bigin { from { opacity: 0; } }
.np { display: flex; gap: 12px; align-items: center; min-width: 0; }
#np-art { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; background: var(--raised); flex: none; }
#np-art:not([src]) { display: none; }
@@ -295,7 +315,6 @@ input[type=range] { accent-color: var(--accent); }
#player { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 8px 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.center { grid-column: 1 / -1; grid-row: 2; }
.right #volume { display: none; }
.stem { grid-template-columns: 78px 1fr 36px auto auto; gap: 6px; }
.hero { margin: -20px -16px 0; padding: 32px 16px 20px; }
.hero-in { flex-direction: column; align-items: flex-start; gap: 18px; }
.hero .art, .hero .ph { width: 160px; height: 160px; }