Files
spotizerr/static/css/track/track.css
2025-02-04 22:18:04 -06:00

199 lines
3.7 KiB
CSS

/* Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body {
background: linear-gradient(135deg, #121212, #1e1e1e);
color: #ffffff;
min-height: 100vh;
line-height: 1.4;
}
/* App Container */
#app {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
position: relative;
z-index: 1;
}
/* Track Header */
#track-header {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid #2a2a2a;
flex-wrap: wrap;
transition: all 0.3s ease;
}
/* Album Image with a subtle shadow and rounded corners */
#track-album-image {
width: 200px;
height: 200px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease;
}
#track-album-image:hover {
transform: scale(1.02);
}
/* Track Info Styles */
#track-info {
flex: 1;
min-width: 0;
}
#track-name {
font-size: 2.5rem;
margin-bottom: 0.5rem;
background: linear-gradient(90deg, #1db954, #17a44b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
#track-artist,
#track-album,
#track-duration,
#track-explicit {
font-size: 1.1rem;
color: #b3b3b3;
margin-bottom: 0.5rem;
}
/* Loading and Error States */
#loading,
#error {
width: 100%;
text-align: center;
font-size: 1rem;
padding: 1rem;
}
#error {
color: #c0392b;
}
/* Back Button Styling */
.back-btn {
background-color: #333;
color: #fff;
border: none;
border-radius: 4px;
padding: 0.6rem 1.2rem;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease;
margin-right: 1rem;
}
.back-btn:hover {
background-color: #444;
}
.back-btn:active {
transform: scale(0.98);
}
/* Download Button */
.download-btn {
background-color: #1db954;
color: #fff;
border: none;
border-radius: 4px;
padding: 0.6rem 1.2rem;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease;
display: block; /* Changed from inline-flex to block */
margin: 0.5rem auto; /* Centers the button horizontally */
text-align: center;
}
.download-btn:hover {
background-color: #17a44b;
}
.download-btn:active {
transform: scale(0.98);
}
/* Queue Toggle Button (if used elsewhere) */
.queue-icon {
background: none;
border: none;
cursor: pointer;
}
/* Utility Classes */
.hidden {
display: none !important;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
#app {
padding: 15px;
}
#track-header {
flex-direction: column;
align-items: center;
text-align: center;
}
#track-album-image {
width: 180px;
height: 180px;
}
#track-name {
font-size: 2rem;
}
#track-artist,
#track-album,
#track-duration,
#track-explicit {
font-size: 1rem;
}
.back-btn,
.download-btn {
padding: 0.5rem 1rem;
font-size: 0.9rem;
margin: 0.5rem 0;
display: block; /* Changed from inline-flex to block */
margin: 0.5rem auto; /* Centers the button horizontally */
}
}
@media (max-width: 480px) {
#track-album-image {
width: 150px;
height: 150px;
}
#track-name {
font-size: 1.75rem;
}
#track-artist,
#track-album,
#track-duration,
#track-explicit {
font-size: 0.9rem;
}
}