aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 18:28:20 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 18:28:20 +0100
commitce70addd5b17da95a6e05c1fb1e94cb03944d99d (patch)
treee955b56adecab087bd91fc937283a4f62a38d400 /static/deck.css
parent5b85512ccd0d87cb61c30f73cea262c7a0545d37 (diff)
downloaddeck-it-ce70addd5b17da95a6e05c1fb1e94cb03944d99d.tar.gz
deck-it-ce70addd5b17da95a6e05c1fb1e94cb03944d99d.zip
feat(music): a volume slider with a mute toggle, icon buttons
The Vol-, Mute and Vol+ buttons give way to a mute toggle (its icon shows the state) and a 0-100 slider that sets the default sink with wpctl as it moves. Previous, play/pause and next are Nerd Font glyphs instead of the tablet's Unicode symbols. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css8
1 files changed, 6 insertions, 2 deletions
diff --git a/static/deck.css b/static/deck.css
index b16ac7f..1aedc6f 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -214,13 +214,17 @@ body {
text-overflow: ellipsis;
white-space: nowrap;
}
-.music .controls button { min-height: 40px; min-width: 44px; }
+.music .controls button { min-height: 44px; min-width: 48px; font-size: 1.2rem; }
+.music .vol { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 10px; }
+.music .vol input { flex: 1; accent-color: var(--udt-accent); }
+.music .vol input.muted { opacity: .4; }
+.music .level { font-size: 0.857rem; color: var(--udt-subtext0); min-width: 3.5ch; text-align: right; }
.music .artist, .music .album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music .album { font-size: 0.857rem; color: var(--udt-overlay0); }
.music .seek { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.music .seek input { flex: 1; accent-color: var(--udt-accent); }
.music .time { font-size: 0.857rem; color: var(--udt-subtext0); white-space: nowrap; }
-.music .controls { display: flex; flex-wrap: wrap; gap: 8px; }
+.music .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sbb .sbb-now { margin-bottom: 8px; font-size: 0.857rem; font-weight: 600; }