feat: enhance mobile experience with responsive audio player and navigation improvements

This commit is contained in:
2025-07-11 20:47:56 +00:00
committed by GitHub
parent d8a853401f
commit 14d5036e8b
5 changed files with 508 additions and 219 deletions

View File

@@ -816,33 +816,95 @@
---break---
*/
/*
will delete after the new theme replaces the old one
since the new theme already has the sidebar colors defined
:root {
--sidebar: hsl(0 0% 98%);
--sidebar-foreground: hsl(240 5.3% 26.1%);
--sidebar-primary: hsl(240 5.9% 10%);
--sidebar-primary-foreground: hsl(0 0% 98%);
--sidebar-accent: hsl(240 4.8% 95.9%);
--sidebar-accent-foreground: hsl(240 5.9% 10%);
--sidebar-border: hsl(220 13% 91%);
--sidebar-ring: hsl(217.2 91.2% 59.8%);
/* Mobile-specific optimizations */
@media (max-width: 767px) {
/* Improve touch targets for mobile */
button {
min-height: 44px;
min-width: 44px;
}
/* Better touch feedback */
button:active {
transform: scale(0.95);
transition: transform 0.1s ease;
}
/* Ensure proper viewport behavior */
html {
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
}
/* Smooth scrolling for mobile */
.overflow-y-auto {
-webkit-overflow-scrolling: touch;
}
/* Mobile audio player specific */
.mobile-audio-player {
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
/* Prevent horizontal scroll */
body {
overflow-x: hidden;
}
}
/* Better focus states for accessibility */
button:focus-visible {
outline: 2px solid hsl(var(--primary));
outline-offset: 2px;
}
.dark {
--sidebar: hsl(240 5.9% 10%);
--sidebar-foreground: hsl(240 4.8% 95.9%);
--sidebar-primary: hsl(224.3 76.3% 48%);
--sidebar-primary-foreground: hsl(0 0% 100%);
--sidebar-accent: hsl(240 3.7% 15.9%);
--sidebar-accent-foreground: hsl(240 4.8% 95.9%);
--sidebar-border: hsl(240 3.7% 15.9%);
--sidebar-ring: hsl(217.2 91.2% 59.8%);
} */
/* Improved animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in-up {
animation: fadeInUp 0.3s ease-out;
}
/* Safe area insets for mobile devices */
@supports (padding: max(0px)) {
.mobile-safe-bottom {
padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.mobile-safe-top {
padding-top: max(0.5rem, env(safe-area-inset-top));
}
}
/* Progress bar improvements for mobile */
@media (max-width: 767px) {
.progress-mobile {
height: 3px;
cursor: pointer;
-webkit-appearance: none;
touch-action: manipulation;
}
.progress-mobile::-webkit-slider-thumb {
-webkit-appearance: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: hsl(var(--primary));
cursor: pointer;
margin-top: -6px;
}
}
/*
---break---