summaryrefslogtreecommitdiff
path: root/web/css/player.css
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-30 23:16:11 +0300
committerPaul Buetow <paul@buetow.org>2026-04-30 23:16:11 +0300
commitc866dc4c539d72134ea690c7c44318a58ec27fd2 (patch)
tree25dbd7b1ba868ea3c8ee9f99beab48b37c16d2db /web/css/player.css
parentcfbffc5e8911f0f4bdd63c0fcf4953372a990ac0 (diff)
mobile: responsive layout, touch-friendly progress bar, collapsible filters
- Add mobile breakpoints (860px/520px) with compact header, full-width sidebar overlay, flexible search bar, and adaptive toolbar. - Player now spans full width on mobile and has reduced stage height. - Progress bar gains touch-drag support (touchstart/move/end) for mobile seeking. - Collapse advanced filters (tags/duration/filesize) behind a 'Filters' toggle to keep the default toolbar KISS. Only type and favorites remain always visible.
Diffstat (limited to 'web/css/player.css')
-rw-r--r--web/css/player.css20
1 files changed, 19 insertions, 1 deletions
diff --git a/web/css/player.css b/web/css/player.css
index 3221042..706667d 100644
--- a/web/css/player.css
+++ b/web/css/player.css
@@ -97,7 +97,25 @@
transform: translate(-50%, -50%) scale(1);
}
-/* Volume */
+/* Touch-friendly progress bar */
+.progress-track {
+ touch-action: none;
+}
+
+@media (max-width: 520px) {
+ .player .controls {
+ gap: 0.35rem;
+ padding: 0.4rem 0.5rem;
+ }
+ .volume-slider {
+ width: 3.5rem;
+ }
+ .big-play .play-icon {
+ width: 2.8rem;
+ height: 2.8rem;
+ font-size: 1rem;
+ }
+}
.volume-control {
display: flex;
align-items: center;