Files
spotizerr-dev/static/css/album/album.css
2025-06-07 18:47:18 +02:00

407 lines
6.8 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;
}
/* Main App Container */
#app {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
position: relative;
z-index: 1;
}
/* Album Header */
#album-header {
display: flex;
gap: 20px;
margin-bottom: 2rem;
align-items: center;
padding-bottom: 1.5rem;
border-bottom: 1px solid #2a2a2a;
flex-wrap: wrap;
transition: all 0.3s ease;
}
#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;
}
#album-image:hover {
transform: scale(1.02);
}
#album-info {
flex: 1;
min-width: 0;
}
#album-name {
font-size: 2.5rem;
margin-bottom: 0.5rem;
background: linear-gradient(90deg, #1db954, #17a44b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
#album-artist,
#album-stats {
font-size: 1.1rem;
color: #b3b3b3;
margin-bottom: 0.5rem;
}
#album-copyright {
font-size: 0.9rem;
color: #b3b3b3;
opacity: 0.8;
margin-bottom: 0.5rem;
}
/* Tracks Container */
#tracks-container {
margin-top: 2rem;
}
#tracks-container h2 {
font-size: 1.75rem;
margin-bottom: 1rem;
border-bottom: 1px solid #2a2a2a;
padding-bottom: 0.5rem;
}
/* Tracks List */
#tracks-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
/* Individual Track Styling */
.track {
display: grid;
grid-template-columns: 40px 1fr auto auto;
align-items: center;
padding: 0.75rem 1rem;
border-radius: var(--radius-sm);
background-color: var(--color-surface);
margin-bottom: 0.5rem;
transition: background-color 0.2s ease;
}
.track:hover {
background-color: var(--color-surface-hover);
}
.track-number {
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
color: var(--color-text-secondary);
width: 24px;
}
.track-info {
padding: 0 1rem;
flex: 1;
min-width: 0;
}
.track-name {
font-weight: 500;
margin-bottom: 0.25rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.track-artist {
font-size: 0.9rem;
color: var(--color-text-secondary);
}
.track-duration {
color: var(--color-text-tertiary);
font-size: 0.9rem;
margin-right: 1rem;
}
/* Loading and Error States */
.loading,
.error {
width: 100%;
text-align: center;
font-size: 1rem;
padding: 1rem;
}
.error {
color: #c0392b;
}
/* Utility Classes */
.hidden {
display: none !important;
}
/* Unified Download Button Base Style */
.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: inline-flex;
align-items: center;
justify-content: center;
margin: 0.5rem;
}
.download-btn:hover {
background-color: #17a44b;
}
.download-btn:active {
transform: scale(0.98);
}
/* Circular Variant for Compact Areas */
.download-btn--circle {
width: 32px;
height: 32px;
padding: 0;
border-radius: 50%;
font-size: 0; /* Hide any text */
background-color: #1db954;
border: none;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease;
margin: 0.5rem;
}
.download-btn--circle img {
width: 20px;
height: 20px;
filter: brightness(0) invert(1);
display: block;
}
.download-btn--circle:hover {
background-color: #17a44b;
transform: scale(1.05);
}
.download-btn--circle:active {
transform: scale(0.98);
}
/* Home Button Styling */
.home-btn {
background-color: transparent;
border: none;
cursor: pointer;
margin-right: 1rem;
padding: 0;
}
.home-btn img {
width: 32px;
height: 32px;
filter: invert(1);
transition: transform 0.2s ease;
}
.home-btn:hover img {
transform: scale(1.05);
}
.home-btn:active img {
transform: scale(0.98);
}
/* Queue Toggle Button */
.queue-toggle {
background: #1db954;
color: #fff;
border: none;
border-radius: 50%;
width: 56px;
height: 56px;
cursor: pointer;
font-size: 1rem;
font-weight: bold;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
transition: background-color 0.3s ease, transform 0.2s ease;
z-index: 1002;
/* Remove any fixed positioning by default for mobile; fixed positioning remains for larger screens */
}
/* Actions Container for Small Screens */
#album-actions {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
margin-top: 1rem;
}
/* Responsive Styles */
/* Medium Devices (Tablets) */
@media (max-width: 768px) {
#album-header {
flex-direction: column;
align-items: center;
text-align: center;
}
#album-image {
width: 180px;
height: 180px;
margin-bottom: 1rem;
}
#album-name {
font-size: 2rem;
}
#album-artist,
#album-stats {
font-size: 1rem;
}
.track {
grid-template-columns: 30px 1fr auto auto;
padding: 0.6rem 0.8rem;
}
.track-duration {
margin-right: 0.5rem;
}
}
/* Small Devices (Mobile Phones) */
@media (max-width: 480px) {
#app {
padding: 10px;
}
#album-header {
flex-direction: column;
align-items: center;
text-align: center;
}
/* Center the album cover */
#album-image {
margin: 0 auto;
}
#album-name {
font-size: 1.75rem;
}
#album-artist,
#album-stats,
#album-copyright {
font-size: 0.9rem;
}
.track {
grid-template-columns: 30px 1fr auto;
}
.track-info {
padding: 0 0.5rem;
}
.track-name, .track-artist {
max-width: 200px;
}
.section-title {
font-size: 1.25rem;
}
/* Ensure the actions container lays out buttons properly */
#album-actions {
flex-direction: row;
justify-content: space-between;
}
/* Remove extra margins from the queue toggle */
.queue-toggle {
position: static;
margin: 0;
}
}
/* Prevent anchor links from appearing all blue */
a {
color: inherit;
text-decoration: none;
transition: color 0.2s ease;
}
a:hover,
a:focus {
color: #1db954;
text-decoration: underline;
}
/* (Optional) Override for circular download button pseudo-element */
.download-btn--circle::before {
content: none;
}
/* Album page specific styles */
/* Add some context styles for the album copyright */
.album-copyright {
font-size: 0.85rem;
color: var(--color-text-tertiary);
margin-top: 0.5rem;
font-style: italic;
}
/* Section title styling */
.section-title {
font-size: 1.5rem;
margin-bottom: 1rem;
position: relative;
padding-bottom: 0.5rem;
}
.section-title:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 2px;
background-color: var(--color-primary);
}