563 lines
10 KiB
CSS
563 lines
10 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;
|
|
}
|
|
|
|
/* Playlist Header */
|
|
#playlist-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;
|
|
}
|
|
|
|
#playlist-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;
|
|
}
|
|
#playlist-image:hover {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
#playlist-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
#playlist-name {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 0.5rem;
|
|
background: linear-gradient(90deg, #1db954, #17a44b);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
#playlist-owner,
|
|
#playlist-stats,
|
|
#playlist-description {
|
|
font-size: 1.1rem;
|
|
color: #b3b3b3;
|
|
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: flex;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
background: #181818;
|
|
border-radius: 8px;
|
|
transition: background 0.3s ease;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.track:hover {
|
|
background: #2a2a2a;
|
|
}
|
|
|
|
.track-number {
|
|
width: 30px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
margin-right: 1rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.track-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.track-name {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.track-artist {
|
|
font-size: 0.9rem;
|
|
color: #b3b3b3;
|
|
}
|
|
|
|
/* When displaying track album info on the side */
|
|
.track-album {
|
|
max-width: 200px;
|
|
font-size: 0.9rem;
|
|
color: #b3b3b3;
|
|
margin-left: 1rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
text-align: right;
|
|
}
|
|
|
|
.track-duration {
|
|
width: 60px;
|
|
text-align: right;
|
|
font-size: 0.9rem;
|
|
color: #b3b3b3;
|
|
margin-left: 1rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* Style for icons within download buttons */
|
|
.download-btn img {
|
|
margin-right: 0.5rem; /* Space between icon and text */
|
|
width: 20px; /* Icon width */
|
|
height: 20px; /* Icon height */
|
|
vertical-align: middle; /* Align icon with text */
|
|
}
|
|
|
|
.download-btn:hover {
|
|
background-color: #17a44b;
|
|
}
|
|
|
|
.download-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Circular Variant for Compact Areas (e.g., in a queue list) */
|
|
.download-btn--circle {
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
font-size: 0;
|
|
}
|
|
|
|
.download-btn--circle::before {
|
|
content: "↓";
|
|
font-size: 16px;
|
|
color: #fff;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Icon next to text */
|
|
.download-btn .btn-icon {
|
|
margin-right: 0.5rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* 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); /* Makes the SVG icon appear white */
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.home-btn:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.home-btn:active img {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Home Icon (SVG) */
|
|
.home-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
/* Download Queue Toggle Button */
|
|
.queue-toggle {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
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;
|
|
}
|
|
|
|
.queue-toggle:hover {
|
|
background: #1ed760;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.queue-toggle:active {
|
|
transform: scale(1);
|
|
}
|
|
|
|
/* Responsive Styles */
|
|
|
|
/* Medium Devices (Tablets) */
|
|
@media (max-width: 768px) {
|
|
#playlist-header {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
#playlist-image {
|
|
width: 180px;
|
|
height: 180px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.track {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.track-album,
|
|
.track-duration {
|
|
margin-left: 0;
|
|
margin-top: 0.5rem;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
/* Small Devices (Mobile Phones) */
|
|
@media (max-width: 480px) {
|
|
#app {
|
|
padding: 10px;
|
|
}
|
|
|
|
#playlist-name {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
/* Adjust track layout to vertical & centered */
|
|
.track {
|
|
padding: 0.8rem;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.track-number {
|
|
font-size: 0.9rem;
|
|
margin-right: 0;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.track-info {
|
|
align-items: center;
|
|
}
|
|
|
|
.track-album,
|
|
.track-duration {
|
|
margin-left: 0;
|
|
margin-top: 0.5rem;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
/* Prevent anchor links from appearing all blue */
|
|
a {
|
|
color: inherit; /* Inherit color from the parent */
|
|
text-decoration: none; /* Remove default underline */
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus {
|
|
color: #1db954; /* Change to a themed green on hover/focus */
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Override for the circular download button variant */
|
|
.download-btn--circle {
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
font-size: 0; /* Hide any text */
|
|
background-color: #1db954; /* Use the same green as the base button */
|
|
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;
|
|
}
|
|
|
|
/* Remove the default pseudo-element that inserts an arrow */
|
|
.download-btn--circle::before {
|
|
content: none;
|
|
}
|
|
|
|
/* Style the image inside the circular download button */
|
|
.download-btn--circle img {
|
|
width: 20px; /* Control icon size */
|
|
height: 20px;
|
|
filter: brightness(0) invert(1); /* Ensure the icon appears white */
|
|
display: block;
|
|
margin: 0; /* Explicitly remove any margin */
|
|
}
|
|
|
|
/* Hover and active states for the circular download button */
|
|
.download-btn--circle:hover {
|
|
background-color: #17a44b;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.download-btn--circle:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Playlist page specific styles */
|
|
|
|
/* Playlist description */
|
|
.playlist-description {
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-secondary);
|
|
margin-top: 0.75rem;
|
|
max-width: 90%;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Additional column for album in playlist tracks */
|
|
.track-album {
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-secondary);
|
|
margin-right: 1rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 200px;
|
|
}
|
|
|
|
/* Overriding the track layout for playlists to include the album column */
|
|
.track {
|
|
grid-template-columns: 40px 1fr 1fr auto auto;
|
|
}
|
|
|
|
/* Style for the download albums button */
|
|
#downloadAlbumsBtn {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
#downloadAlbumsBtn:hover {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
/* Mobile responsiveness adjustments */
|
|
@media (max-width: 1024px) {
|
|
.track {
|
|
grid-template-columns: 40px 1fr auto auto;
|
|
}
|
|
|
|
.track-album {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.playlist-description {
|
|
max-width: 100%;
|
|
}
|
|
|
|
#downloadAlbumsBtn {
|
|
margin-top: 0.5rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.track {
|
|
grid-template-columns: 30px 1fr auto;
|
|
}
|
|
|
|
.playlist-description {
|
|
margin-bottom: 1rem;
|
|
}
|
|
}
|
|
|
|
/* Notification Styling */
|
|
.notification {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background-color: #333;
|
|
color: #fff;
|
|
padding: 10px 20px;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
|
|
z-index: 1005; /* Ensure it's above most other elements */
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease-in-out;
|
|
animation: fadeInOut 3s ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeInOut {
|
|
0% { opacity: 0; }
|
|
10% { opacity: 1; }
|
|
90% { opacity: 1; }
|
|
100% { opacity: 0; }
|
|
}
|
|
|
|
/* Watch and Sync Button Specific Styles */
|
|
.watch-btn {
|
|
background-color: #535353; /* A neutral dark gray */
|
|
}
|
|
|
|
.watch-btn:hover {
|
|
background-color: #6f6f6f;
|
|
}
|
|
|
|
.sync-btn {
|
|
background-color: #28a745; /* A distinct green for sync */
|
|
}
|
|
|
|
.sync-btn:hover {
|
|
background-color: #218838;
|
|
}
|
|
|
|
.sync-btn.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* Toggle Known Status Button for Tracks/Albums */
|
|
.toggle-known-status-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
border: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, transform 0.2s ease;
|
|
margin-left: 0.5rem; /* Spacing from other buttons if any */
|
|
}
|
|
|
|
.toggle-known-status-btn img {
|
|
width: 18px; /* Adjust icon size as needed */
|
|
height: 18px;
|
|
filter: brightness(0) invert(1); /* White icon */
|
|
}
|
|
|
|
.toggle-known-status-btn[data-status="known"] {
|
|
background-color: #28a745; /* Green for known/available */
|
|
}
|
|
|
|
.toggle-known-status-btn[data-status="known"]:hover {
|
|
background-color: #218838; /* Darker green on hover */
|
|
}
|
|
|
|
.toggle-known-status-btn[data-status="missing"] {
|
|
background-color: #dc3545; /* Red for missing */
|
|
}
|
|
|
|
.toggle-known-status-btn[data-status="missing"]:hover {
|
|
background-color: #c82333; /* Darker red on hover */
|
|
}
|
|
|
|
.toggle-known-status-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.track-actions-container {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: auto; /* Pushes action buttons to the right */
|
|
}
|