Files
spotizerr-dev/static/css/style.css
cool.gitter.choco 2eaf4d3105 corrected styling
2025-02-02 12:06:52 -06:00

1094 lines
19 KiB
CSS
Executable File

/* GENERAL STYLING */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body {
background-color: #121212;
color: #ffffff;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* SEARCH AREA */
.search-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 30px;
position: sticky;
top: 0;
background-color: #121212;
padding: 20px 0;
z-index: 100;
}
.search-input {
flex: 1;
padding: 12px 20px;
border: none;
border-radius: 25px;
background: #2a2a2a;
color: white;
font-size: 16px;
}
.search-type {
padding: 12px 15px;
background: #2a2a2a;
border: none;
border-radius: 25px;
color: white;
cursor: pointer;
}
.search-button {
padding: 12px 30px;
background-color: #1DB954;
border: none;
border-radius: 25px;
color: white;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s;
}
.search-button:hover {
background-color: #1ed760;
}
/* RESULTS GRID */
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
}
.result-card {
background: #181818;
padding: 15px;
border-radius: 8px;
transition: background-color 0.3s;
cursor: pointer;
}
.result-card:hover {
background-color: #282828;
}
.album-art {
width: 100%;
border-radius: 4px;
margin-bottom: 15px;
}
.track-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.track-artist {
color: #b3b3b3;
font-size: 14px;
margin-bottom: 4px;
}
.track-details {
color: #b3b3b3;
font-size: 12px;
display: flex;
justify-content: space-between;
align-items: center;
}
.duration {
background: #2a2a2a;
padding: 4px 8px;
border-radius: 4px;
}
.loading {
text-align: center;
padding: 50px;
font-size: 18px;
color: #1DB954;
}
.error {
color: #ff5555;
text-align: center;
padding: 20px;
}
/* SETTINGS ICON */
.settings-icon {
position: static;
order: -1;
margin-right: 15px;
font-size: 22px;
background: none;
border: none;
color: #ffffff;
cursor: pointer;
z-index: 1000;
transition: transform 0.3s;
}
.settings-icon img,
.queue-icon img {
width: 24px;
height: 24px;
vertical-align: middle;
filter: invert(1);
}
.settings-icon:hover img,
.queue-icon:hover img {
opacity: 0.8;
}
/* SIDEBAR */
.sidebar {
position: fixed;
top: 0;
width: 350px;
height: 100vh;
background: #181818;
padding: 20px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1001;
overflow-y: auto;
box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
#settingsSidebar {
left: -350px;
}
#settingsSidebar.active {
left: 0;
box-shadow: 20px 0 30px rgba(0,0,0,0.4);
}
#downloadQueue {
right: -350px;
left: auto;
}
#downloadQueue.active {
right: 0;
box-shadow: -20px 0 30px rgba(0,0,0,0.4);
}
.sidebar.active {
left: 0;
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.close-btn {
background: none;
border: none;
color: #ffffff;
font-size: 24px;
cursor: pointer;
}
/* SERVICE TABS */
.service-tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.tab-button {
padding: 10px 20px;
border: none;
border-radius: 20px;
background: #2a2a2a;
color: #ffffff;
cursor: pointer;
}
.tab-button.active {
background: #1DB954;
}
/* CREDENTIALS LIST */
.credentials-list {
margin-bottom: 20px;
}
.credential-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background: #2a2a2a;
border-radius: 8px;
margin-bottom: 10px;
}
.credential-actions button {
margin-left: 10px;
padding: 5px 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.edit-btn {
background: #1DB954;
color: white;
}
.delete-btn {
background: #ff5555;
color: white;
}
/* FORM STYLES */
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 8px;
border-radius: 4px;
border: none;
background: #2a2a2a;
color: white;
}
.form-group select {
padding-right: 25px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z' fill='%23fff'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 10px 6px;
}
.save-btn {
background: #1DB954;
color: white;
padding: 10px 20px;
border: none;
border-radius: 20px;
cursor: pointer;
width: 100%;
}
/* CONFIG BAR */
.config-bar {
position: fixed;
top: 20px;
right: 20px;
background: #181818;
padding: 15px;
border-radius: 8px;
z-index: 1000;
}
.config-item {
margin-bottom: 10px;
}
.config-item label {
display: block;
margin-bottom: 5px;
}
/* TOGGLE SWITCH */
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 20px;
}
.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 2px;
bottom: 2px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #1DB954;
}
input:checked + .slider:before {
transform: translateX(20px);
}
/* DOWNLOAD QUEUE */
.queue-icon {
position: static;
order: 2;
margin-left: 15px;
font-size: 22px;
background: none;
border: none;
color: white;
cursor: pointer;
z-index: 1000;
}
.queue-icon:hover {
color: #1DB954;
}
.queue-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 15px;
border-bottom: 1px solid #2a2a2a;
margin-bottom: 20px;
}
.queue-title {
font-size: 1.25rem;
font-weight: 600;
color: #fff;
}
.queue-close {
background: #2a2a2a;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease;
}
.queue-close:hover {
background-color: #333;
}
#queueItems {
max-height: 60vh;
overflow-y: auto;
}
.queue-item {
background: #2a2a2a;
padding: 15px;
border-radius: 8px;
margin-bottom: 15px;
transition: background-color 0.3s ease;
}
.queue-item:hover {
background-color: #333;
}
.queue-item .title {
font-weight: 500;
margin-bottom: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.queue-item .type {
font-size: 12px;
color: #1DB954;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 6px;
}
.queue-item .log {
font-size: 13px;
color: #b3b3b3;
line-height: 1.4;
font-family: 'SF Mono', Menlo, monospace;
}
/* STATUS MESSAGE COLORS */
.log--success { color: #1DB954 !important; }
.log--error { color: #ff5555 !important; }
.log--warning { color: #ffaa00 !important; }
.log--info { color: #4a90e2 !important; }
/* PROGRESS ANIMATION */
@keyframes progress-pulse {
0% { opacity: 0.5; }
50% { opacity: 1; }
100% { opacity: 0.5; }
}
.progress-indicator {
display: inline-block;
margin-left: 8px;
animation: progress-pulse 1.5s infinite;
}
/* LOADING SPINNER */
.loading-spinner {
display: inline-block;
width: 16px;
height: 16px;
border: 3px solid rgba(255,255,255,0.3);
border-radius: 50%;
border-top-color: #1DB954;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* TIMEOUT WARNING */
.timeout-warning {
position: relative;
padding-left: 24px;
}
.timeout-warning::before {
content: "⚠️";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
/* STATUS BAR ANIMATIONS */
.status-bar {
height: 3px;
background: #1DB954;
width: 0;
transition: width 0.3s ease;
margin-top: 8px;
}
/* ERROR TRACEBACK STYLING */
.traceback {
background: #2a2a2a;
padding: 10px;
border-radius: 4px;
font-family: monospace;
font-size: 12px;
color: #ff5555;
margin-top: 10px;
max-height: 200px;
overflow-y: auto;
}
/* QUEUE ITEM STATES */
.queue-item--complete {
border-left: 4px solid #1DB954;
}
.queue-item--error {
border-left: 4px solid #ff5555;
}
.queue-item--processing {
border-left: 4px solid #4a90e2;
}
/* PROGRESS PERCENTAGE STYLING */
.progress-percent {
float: right;
font-weight: bold;
color: #1DB954;
}
/* DOWNLOAD BUTTON */
.download-btn {
background-color: #1DB954;
color: white;
border: none;
padding: 8px 15px;
border-radius: 20px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
width: 100%;
justify-content: center;
}
.download-btn:hover {
background-color: #1ed760;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}
.download-btn:active {
transform: translateY(0);
box-shadow: none;
}
.download-btn::before {
content: "↓";
font-weight: bold;
font-size: 16px;
}
/* ACCOUNT SELECTORS */
#spotifyAccountSelect,
#deezerAccountSelect {
background: #2a2a2a;
color: white;
border: 1px solid #404040;
border-radius: 8px;
padding: 10px 15px;
font-size: 14px;
width: 100%;
margin: 5px 0 15px;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 12px;
transition: border-color 0.3s ease;
}
#spotifyAccountSelect:focus,
#deezerAccountSelect:focus {
outline: none;
border-color: #1DB954;
box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}
#spotifyAccountSelect option,
#deezerAccountSelect option {
background: #181818;
color: white;
padding: 10px;
}
#spotifyAccountSelect option:hover,
#deezerAccountSelect option:hover {
background: #1DB954;
}
#spotifyAccountSelect:disabled,
#deezerAccountSelect:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* RETRY AND CLOSE BUTTONS */
.retry-btn {
padding: 4px 12px;
margin: 0 8px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
transition: background-color 0.3s ease;
}
.retry-btn:hover {
background-color: #45a049;
}
.retry-btn:active {
background-color: #3d8b40;
transform: translateY(1px);
}
.close-btn {
padding: 4px 12px;
margin: 0 8px;
background-color: #ff4444;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
transition: background-color 0.3s ease;
line-height: 1;
}
.close-btn:hover {
background-color: #cc0000;
}
.close-btn:active {
background-color: #b30000;
transform: translateY(1px);
}
/* SCROLLBAR STYLING */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: #181818;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #2a2a2a;
border-radius: 4px;
border: 2px solid #181818;
}
::-webkit-scrollbar-thumb:hover {
background: #3a3a3a;
}
* {
scrollbar-width: thin;
scrollbar-color: #2a2a2a #181818;
}
.sidebar::-webkit-scrollbar {
width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
border-width: 1px;
}
#queueItems::-webkit-scrollbar {
width: 6px;
}
#queueItems::-webkit-scrollbar-thumb {
background: #3a3a3a;
}
.results-container::-webkit-scrollbar {
width: 8px;
}
html {
scroll-behavior: smooth;
}
::-webkit-scrollbar-corner {
background: #121212;
}
/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
.search-header {
flex-wrap: wrap;
/* Optional: ensure items are aligned properly */
align-items: center;
}
/* First row: search input (full width) */
.search-input {
order: 1;
width: 100%;
}
/* Second row: search type selector (full width) */
.search-type {
order: 2;
width: 100%;
}
/* Third row: search button (full width) */
.search-button {
order: 3;
width: 100%;
}
/* Fourth row: settings and queue icons */
.settings-icon {
order: 4;
/* Optional: remove any extra margins to ensure neat alignment */
margin: 0;
}
.queue-icon {
order: 4;
margin-left: auto; /* pushes the queue icon to the right */
}
}
@media screen and (max-width: 480px) {
.results-grid {
grid-template-columns: 1fr 1fr;
}
body {
font-size: 16px;
}
button,
.result-card {
min-height: 48px;
}
.track-title,
.track-artist {
white-space: normal;
overflow: visible;
text-overflow: clip;
}
}
input,
select,
textarea {
font-size: 16px !important;
}
button {
touch-action: manipulation;
}
.result-card {
-webkit-tap-highlight-color: transparent;
}
html {
overflow-y: scroll;
}
/* Add to existing form styles */
.config-item {
margin-bottom: 1.5rem;
}
.config-item label {
display: block;
margin-bottom: 0.5rem;
color: #b3b3b3;
font-size: 0.9rem;
}
/* Quality selectors - match account select style */
#spotifyQualitySelect,
#deezerQualitySelect {
background: #2a2a2a;
color: white;
border: 1px solid #404040;
border-radius: 8px;
padding: 10px 15px;
font-size: 14px;
width: 100%;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 12px;
transition: all 0.3s ease;
}
#spotifyQualitySelect:focus,
#deezerQualitySelect:focus {
outline: none;
border-color: #1DB954;
box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}
/* Quality options styling */
#spotifyQualitySelect option,
#deezerQualitySelect option {
background: #181818;
color: white;
padding: 10px;
}
/* Config group spacing */
.account-config {
display: grid;
gap: 1.2rem;
margin-bottom: 2rem;
}
/* Mobile adjustments */
@media (max-width: 768px) {
.config-item {
margin-bottom: 1rem;
}
#spotifyQualitySelect,
#deezerQualitySelect {
padding: 12px;
font-size: 15px;
}
}
.cancel-btn {
background: none;
border: none;
cursor: pointer;
padding: 5px;
outline: none;
margin-top: 10px;
}
.cancel-btn img {
width: 24px;
height: 24px;
filter: invert(1);
transition: transform 0.3s ease;
}
.cancel-btn:hover img {
transform: scale(1.1);
}
.cancel-btn:active img {
transform: scale(0.9);
}
/* --- ICON SIZING FOR ARTIST DOWNLOAD OPTION BUTTONS --- */
/* This ensures that any <img> inside an option-download button is small */
.option-download img {
width: 16px;
height: 16px;
}
/* --- ARTIST DOWNLOAD OPTIONS SEPARATION --- */
.artist-download-buttons {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.artist-download-buttons .option-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
/* Optional: ensure that each option button takes up a reasonable amount of space */
.artist-download-buttons .option-download {
flex: 1 1 auto;
max-width: 32%;
}
/* Artist Download Buttons */
.artist-download-buttons {
width: 100%;
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 12px;
}
/* Main Download Button */
.main-download {
background: #1DB954;
color: #fff;
border-radius: 8px;
padding: 10px 16px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background 0.2s ease;
}
.main-download:hover {
background: #1ed760;
}
.download-icon {
width: 18px;
height: 18px;
fill: currentColor;
}
/* Options Container */
.download-options-container {
width: 100%;
background: #282828;
border-radius: 8px;
overflow: hidden;
}
/* Options Toggle */
.options-toggle {
width: 100%;
background: none;
border: none;
color: #b3b3b3;
padding: 8px 16px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
transition: color 0.2s ease;
}
.options-toggle:hover {
color: #fff;
background: rgba(255,255,255,0.05);
}
.toggle-chevron {
width: 16px;
height: 16px;
fill: currentColor;
transition: transform 0.3s ease;
}
.options-toggle[aria-expanded="true"] .toggle-chevron {
transform: rotate(180deg);
}
/* Secondary Options */
.secondary-options {
display: none;
flex-wrap: wrap;
gap: 6px;
padding: 0 12px 12px;
background: #181818;
border-radius: 0 0 8px 8px;
}
.secondary-options.expanded {
display: flex;
}
.option-btn {
flex: 1 1 calc(33.333% - 4px);
min-width: 100px;
background: #2a2a2a;
color: #fff;
border: none;
border-radius: 6px;
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85em;
transition: background 0.2s ease;
}
.option-btn:hover {
background: #333;
}
.type-icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
/* Mobile Adjustments */
@media (max-width: 768px) {
.option-btn {
flex: 1 1 100%;
}
.secondary-options {
gap: 4px;
}
.main-download {
padding: 12px 16px;
font-size: 0.9em;
}
.options-toggle {
padding: 10px 16px;
}
}
/* Add margin to the options container */
.download-options-container {
margin-top: 8px; /* Adds separation from main button */
}
/* Add padding to top of expanded options */
.secondary-options.expanded {
padding: 12px 12px 12px 12px; /* Added top padding */
gap: 8px; /* Ensure gap between buttons */
}
/* Add subtle separation between toggle and options */
.secondary-options {
border-top: 1px solid rgba(255,255,255,0.05);
margin-top: 4px; /* Small separation from toggle */
padding-top: 8px !important;
}