- Sources: "free" (Creative Commons songs with media from github.com/UltraStar-Deluxe/songs) and "usdb" (usdb.animux.de with an account; audio/video via yt-dlp from the song's #VIDEO hints or YouTube links in the comments, covers from fanart.tv/YouTube) - Aggregated search (all sources in parallel, in-library flag), download queue into <library>/Downloads/<source>/<Artist - Title>, then rescan - Web UI in wwwroot (plain JS, no build): search, downloads with progress, library; phone first, dark mode, installable - Docker image with yt-dlp, ffmpeg and deno; library mounted writable - Tests for matching, USDB parsing and song rewriting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
307 lines
6.2 KiB
CSS
307 lines
6.2 KiB
CSS
:root {
|
|
--bg: #f6f5fb;
|
|
--card: #ffffff;
|
|
--text: #1c1830;
|
|
--muted: #6b6785;
|
|
--line: #e4e1ef;
|
|
--accent: #7c3aed;
|
|
--accent-text: #ffffff;
|
|
--accent-soft: #ede7fd;
|
|
--ok: #15803d;
|
|
--ok-soft: #dcfce7;
|
|
--err: #b91c1c;
|
|
--err-soft: #fee2e2;
|
|
--radius: 14px;
|
|
--nav-h: 64px;
|
|
color-scheme: light dark;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #12101c;
|
|
--card: #1d1a2b;
|
|
--text: #eceaf6;
|
|
--muted: #a29dbd;
|
|
--line: #2e2a42;
|
|
--accent: #a78bfa;
|
|
--accent-text: #160f2c;
|
|
--accent-soft: #2c2350;
|
|
--ok: #4ade80;
|
|
--ok-soft: #14301f;
|
|
--err: #f87171;
|
|
--err-soft: #3a1717;
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body { margin: 0; }
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
-webkit-tap-highlight-color: transparent;
|
|
padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.top {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
|
|
background: color-mix(in srgb, var(--bg) 88%, transparent);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.top h1 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 0;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
main {
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
padding: 0 16px 16px;
|
|
}
|
|
|
|
.tab { display: none; }
|
|
.tab.active { display: block; }
|
|
|
|
.muted { color: var(--muted); font-size: .9rem; }
|
|
|
|
.searchbar { margin: 4px 0 10px; }
|
|
|
|
.searchbar input, dialog input {
|
|
width: 100%;
|
|
min-height: 48px;
|
|
padding: 0 16px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
background: var(--card);
|
|
color: var(--text);
|
|
font-size: 1.05rem; /* >= 16px: no zoom on iOS */
|
|
outline: none;
|
|
}
|
|
|
|
.searchbar input:focus, dialog input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
background: var(--accent-soft);
|
|
color: var(--text);
|
|
font-size: .8rem;
|
|
}
|
|
|
|
.chip.off { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
|
|
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
|
|
.chip.off .dot { background: var(--muted); }
|
|
|
|
.status { padding: 12px 4px; color: var(--muted); }
|
|
.status.error { color: var(--err); }
|
|
|
|
.list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.item {
|
|
display: grid;
|
|
grid-template-columns: 56px 1fr auto;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px;
|
|
border-radius: var(--radius);
|
|
background: var(--card);
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
.item .cover {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 10px;
|
|
object-fit: cover;
|
|
background: var(--accent-soft);
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
font-size: 1.2rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.item .text { min-width: 0; }
|
|
|
|
.item .title {
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.item .artist, .item .details {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.item .artist { font-size: .92rem; }
|
|
.item .details { color: var(--muted); font-size: .8rem; }
|
|
|
|
.source {
|
|
display: inline-block;
|
|
margin-right: 4px;
|
|
padding: 0 6px;
|
|
border-radius: 6px;
|
|
background: var(--accent-soft);
|
|
color: var(--text);
|
|
font-size: .72rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: .02em;
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.action {
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
padding: 0 14px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.action:disabled { cursor: default; }
|
|
.action.done { background: var(--ok-soft); color: var(--ok); }
|
|
.action.pending { background: var(--accent-soft); color: var(--text); }
|
|
|
|
.progress {
|
|
grid-column: 1 / -1;
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: var(--line);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress span {
|
|
display: block;
|
|
height: 100%;
|
|
background: var(--accent);
|
|
transition: width .4s;
|
|
}
|
|
|
|
.state { font-size: .8rem; font-weight: 600; }
|
|
.state.done { color: var(--ok); }
|
|
.state.failed { color: var(--err); }
|
|
.message { grid-column: 1 / -1; color: var(--err); font-size: .85rem; overflow-wrap: anywhere; }
|
|
|
|
.compact .item { grid-template-columns: 1fr; padding: 10px 14px; }
|
|
|
|
.tabs {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 5;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
height: calc(var(--nav-h) + env(safe-area-inset-bottom));
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
background: var(--card);
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.tabs button {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--muted);
|
|
font-size: .78rem;
|
|
}
|
|
|
|
.tabs button.active { color: var(--accent); font-weight: 600; }
|
|
|
|
.tabs svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.badge {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: calc(50% + 6px);
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
border-radius: 999px;
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
font-size: .7rem;
|
|
line-height: 18px;
|
|
}
|
|
|
|
dialog {
|
|
width: min(92vw, 400px);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
background: var(--card);
|
|
color: var(--text);
|
|
}
|
|
|
|
dialog h2 { margin: 0 0 4px; font-size: 1.1rem; }
|
|
dialog menu { display: flex; justify-content: flex-end; margin: 12px 0 0; padding: 0; }
|
|
dialog::backdrop { background: rgb(0 0 0 / .4); }
|
|
|
|
@media (min-width: 720px) {
|
|
.tabs {
|
|
left: 50%;
|
|
right: auto;
|
|
width: 720px;
|
|
transform: translateX(-50%);
|
|
border: 1px solid var(--line);
|
|
border-bottom: 0;
|
|
border-radius: var(--radius) var(--radius) 0 0;
|
|
}
|
|
|
|
.tabs button { flex-direction: row; gap: 8px; font-size: .95rem; }
|
|
.badge { position: static; }
|
|
.top { max-width: 752px; margin: 0 auto; }
|
|
}
|