video download modal: redesign the Sources area + Manual/Auto buttons

The sources half felt weak next to the animated top half (quality chips + glowing
verdict), and the dark-text lightning Auto button looked off. Redesigned the whole
sources block:

- Buttons are now a cohesive pair: Manual = quiet ghost (outline), Auto = hero —
  brand-filled gradient, white text w/ shadow for legibility on bright brands, a
  soft continuous brand glow (vdlAutoGlow, --glow set per element) + a sheen sweep
  and a sparkle twinkle on hover. Swapped the harsh  for a clean monochrome ✦
  that inherits the button colour. 'Manual all'/'Auto all' header buttons speak the
  same language (ghost vs accent hero).
- Source rows: richer brand card — bigger glassy icon tile w/ inner highlight +
  halo, a stronger brand gradient, an inset top highlight, a glowing left brand
  edge (::before), and the status is now a brand-tinted pill (was bare dot+text)
  with state colours (scanning/done/none). Scan bar moved to ::after.
- Section labels get a small accent tick so both halves read 'designed'.
- Reduced-motion + mobile (full-width stacked buttons) handled.

Icon+label split into spans for finer control. node --check clean; 7 tests
updated/green.
This commit is contained in:
BoulderBadgeDad 2026-06-20 09:18:04 -07:00
parent 55658f15da
commit afe3d0d04d
3 changed files with 118 additions and 62 deletions

View file

@ -23,8 +23,11 @@ _CSS = (_ROOT / "webui" / "static" / "video" / "video-side.css").read_text(encod
def test_each_source_has_manual_and_auto_buttons():
assert 'data-vdl-search="' in _VIEW # Manual (pick yourself)
assert 'data-vdl-auto="' in _VIEW # Auto (best pick)
# Renamed for clarity: Manual vs Auto.
assert '⌕ Manual' in _VIEW and '⚡ Auto' in _VIEW
# Renamed for clarity: Manual vs Auto (icon + label now split into spans).
assert '>Manual<' in _VIEW and '>Auto<' in _VIEW
# The harsh lightning was redesigned out in favour of a monochrome sparkle.
assert '' not in _VIEW
assert 'vdl-btn-ic--auto' in _VIEW
def test_search_all_gains_an_auto_all():

View file

@ -55,9 +55,11 @@
'<div class="vdl-section">' +
'<div class="vdl-sec-head">' +
'<div class="vdl-sec-label">Sources</div>' +
'<span class="vdl-src-actions">' +
'<button class="vdl-search-all" type="button" data-vdl-search-all title="Search every source — pick releases yourself">⌕ Manual all</button>' +
'<button class="vdl-search-all vdl-auto-all" type="button" data-vdl-auto-all title="Search every source and auto-grab the best release on each">⚡ Auto all</button>' +
'<span class="vdl-src-actions vdl-src-actions--head">' +
'<button class="vdl-search-all" type="button" data-vdl-search-all title="Search every source — pick releases yourself">' +
'<span class="vdl-btn-ic" aria-hidden="true">⌕</span><span>Manual all</span></button>' +
'<button class="vdl-search-all vdl-auto-all" type="button" data-vdl-auto-all title="Search every source and auto-grab the best release on each">' +
'<span class="vdl-btn-ic vdl-btn-ic--auto" aria-hidden="true">✦</span><span>Auto all</span></button>' +
'</span>' +
'</div>' +
'<div class="vdl-sources" data-vdl-sources><div class="vdl-src-empty">Loading sources…</div></div>' +
@ -70,10 +72,12 @@
return '<div class="vdl-src' + (mini ? ' vdl-src--mini' : '') + '" data-vdl-src="' + s + '">' +
'<span class="vdl-src-icon"><span class="vdl-src-emoji">' + m.emoji + '</span></span>' +
'<span class="vdl-src-main"><span class="vdl-src-name">' + esc(m.name) + '</span>' +
'<span class="vdl-src-meta"><span class="vdl-src-dot"></span><span class="vdl-src-status" data-vdl-status>Ready</span></span></span>' +
'<span class="vdl-src-meta"><span class="vdl-src-status" data-vdl-status>Ready</span></span></span>' +
'<span class="vdl-src-actions">' +
'<button class="vdl-src-search" type="button" data-vdl-search="' + s + '" title="Search and pick a release yourself">⌕ Manual</button>' +
'<button class="vdl-src-auto" type="button" data-vdl-auto="' + s + '" title="Search and auto-grab the best release for your quality profile">⚡ Auto</button>' +
'<button class="vdl-src-search" type="button" data-vdl-search="' + s + '" title="Search and pick a release yourself">' +
'<span class="vdl-btn-ic" aria-hidden="true">⌕</span><span>Manual</span></button>' +
'<button class="vdl-src-auto" type="button" data-vdl-auto="' + s + '" title="Search and auto-grab the best release for your quality profile">' +
'<span class="vdl-btn-ic vdl-btn-ic--auto" aria-hidden="true">✦</span><span>Auto</span></button>' +
'</span>' +
'</div>';
}

View file

@ -3033,9 +3033,12 @@ body[data-side="video"] #soulsync-toggle { display: none; }
.vgm-back:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.vdl-section { margin-bottom: 20px; }
.vdl-section:last-child { margin-bottom: 0; }
.vdl-sec-label { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
color: rgba(255, 255, 255, 0.55); margin-bottom: 10px; }
.vdl-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vdl-sec-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.vdl-sec-label::before { content: ''; width: 3px; height: 13px; border-radius: 2px;
background: linear-gradient(rgb(var(--accent-rgb)), rgba(var(--accent-rgb), 0.35));
box-shadow: 0 0 9px -1px rgba(var(--accent-rgb), 0.7); }
.vdl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.vdl-sec-head .vdl-sec-label { margin-bottom: 0; }
/* target chips */
.vdl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@ -3071,65 +3074,100 @@ body[data-side="video"] #soulsync-toggle { display: none; }
.vdl-reason { font-size: 12px; font-weight: 600; }
.vdl-reason--ok { color: rgba(143, 231, 175, 0.85); }
.vdl-reason--no { color: rgba(251, 205, 122, 0.92); }
/* sources */
.vdl-search-all { position: relative; overflow: hidden; padding: 6px 14px; border-radius: 9px; cursor: pointer;
font-size: 12px; font-weight: 800; background: rgb(var(--accent-rgb)); color: #06210f; border: none;
transition: filter 0.15s, transform 0.15s, box-shadow 0.3s; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.0);
animation: vdlPulse 2.8s ease-in-out infinite; }
.vdl-search-all:hover { filter: brightness(1.1); transform: translateY(-1px); }
.vdl-search-all::after { content: ''; position: absolute; inset: 0; transform: translateX(-130%);
background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.5) 50%, transparent 65%); }
.vdl-search-all:hover::after { animation: vdlSheen 0.7s ease 1; }
.vdl-sources { display: flex; flex-direction: column; gap: 10px; }
/* sources: redesigned
Header "all" buttons share the same Manual(secondary)/Auto(hero) language as
the per-source pair Manual = quiet ghost, Auto = filled + soft glow + sheen. */
.vdl-search-all { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px;
padding: 7px 13px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: 0.01em;
color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.16s, border-color 0.16s, transform 0.16s, box-shadow 0.18s; }
.vdl-search-all:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28);
transform: translateY(-1px); box-shadow: 0 7px 18px -10px rgba(0, 0, 0, 0.8); }
.vdl-search-all:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
/* Auto all = the hero header action, in the page accent */
.vdl-auto-all { --glow: var(--accent-rgb); color: #06210f; border-color: transparent;
background: linear-gradient(135deg, rgb(var(--accent-rgb)), rgba(var(--accent-rgb), 0.72));
box-shadow: 0 5px 16px -7px rgb(var(--accent-rgb)), inset 0 1px 0 rgba(255, 255, 255, 0.3);
animation: vdlAutoGlow 3s ease-in-out infinite; }
.vdl-auto-all:hover { color: #06210f; background: linear-gradient(135deg, rgb(var(--accent-rgb)), rgba(var(--accent-rgb), 0.82));
filter: brightness(1.05); }
.vdl-auto-all::after { content: ''; position: absolute; inset: 0; transform: translateX(-130%);
background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); }
.vdl-auto-all:hover::after { animation: vdlSheen 0.7s ease 1; }
.vdl-sources { display: flex; flex-direction: column; gap: 11px; }
/* each source carries its own brand colour (--src) so the row glows in-brand */
.vdl-src { --src: 130 130 150; position: relative; overflow: hidden; display: flex; align-items: center; gap: 13px;
padding: 12px 13px; border-radius: 14px; border: 1px solid rgba(var(--src), 0.22);
border-left: 3px solid rgb(var(--src));
background: linear-gradient(100deg, rgba(var(--src), 0.10), rgba(255, 255, 255, 0.025) 60%);
.vdl-src { --src: 130 130 150; position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
padding: 13px 14px; border-radius: 16px; border: 1px solid rgba(var(--src), 0.26);
background: linear-gradient(100deg, rgba(var(--src), 0.17), rgba(var(--src), 0.05) 52%, rgba(255, 255, 255, 0.018));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
animation: vdlSlide 0.46s both; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease; }
/* a soft brand glow bleeding from the left edge gives the row depth */
.vdl-src::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
background: linear-gradient(rgb(var(--src)), rgba(var(--src), 0.4));
box-shadow: 0 0 16px 1px rgba(var(--src), 0.7); }
.vdl-src[data-vdl-src="soulseek"] { --src: 74 163 255; }
.vdl-src[data-vdl-src="torrent"] { --src: 245 158 11; }
.vdl-src[data-vdl-src="usenet"] { --src: 168 85 247; }
.vdl-src[data-vdl-src="youtube"] { --src: 255 64 64; }
.vdl-src:hover { transform: translateY(-2px); border-color: rgba(var(--src), 0.55);
box-shadow: 0 12px 28px -12px rgba(var(--src), 0.75); }
/* brand icon tile */
.vdl-src-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
background: linear-gradient(140deg, rgba(var(--src), 0.38), rgba(var(--src), 0.12));
border: 1px solid rgba(var(--src), 0.45); box-shadow: 0 5px 16px -7px rgb(var(--src)); transition: transform 0.2s ease; }
.vdl-src:hover .vdl-src-icon { transform: scale(1.08) rotate(-4deg); }
.vdl-src-emoji { font-size: 19px; line-height: 1; }
.vdl-src-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.vdl-src-name { font-size: 14.5px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.vdl-src-meta { display: inline-flex; align-items: center; gap: 7px; }
.vdl-src-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--src)); flex-shrink: 0;
animation: vdlDot 2.2s ease-in-out infinite; }
.vdl-src--scanning .vdl-src-dot { animation-duration: 0.7s; }
.vdl-src-status { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.45); white-space: nowrap; }
.vdl-src:hover { transform: translateY(-2px); border-color: rgba(var(--src), 0.6);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 30px -14px rgba(var(--src), 0.85); }
/* brand icon tile — glassier, with an inner highlight + brand halo */
.vdl-src-icon { position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
background: linear-gradient(145deg, rgba(var(--src), 0.5), rgba(var(--src), 0.14));
border: 1px solid rgba(var(--src), 0.5);
box-shadow: 0 6px 18px -7px rgb(var(--src)), inset 0 1px 0 rgba(255, 255, 255, 0.28); transition: transform 0.2s ease; }
.vdl-src:hover .vdl-src-icon { transform: scale(1.07) rotate(-4deg); }
.vdl-src-emoji { font-size: 20px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.vdl-src-main { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.vdl-src-name { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.vdl-src-meta { display: inline-flex; align-items: center; }
/* status is now a brand-tinted pill (was bare text) so the row reads "designed" */
.vdl-src-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
font-size: 11px; font-weight: 800; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.62);
background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); white-space: nowrap; }
.vdl-src-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--src));
box-shadow: 0 0 8px 0 rgba(var(--src), 0.9); animation: vdlDot 2.2s ease-in-out infinite; }
.vdl-src--scanning .vdl-src-status::before { animation-duration: 0.7s; }
.vdl-src-status--soon { color: #fbcd7a; }
.vdl-src-status--scanning { color: rgb(var(--src)); }
.vdl-src-status--scanning { color: rgb(var(--src)); background: rgba(var(--src), 0.14); border-color: rgba(var(--src), 0.3); }
.vdl-src-status--scanning::after { content: ''; animation: vdlDots 1.1s steps(1) infinite; }
.vdl-src-status--done { color: #58d39a; }
.vdl-src-status--none { color: #fbcd7a; }
.vdl-src-status--done { color: #6cd391; background: rgba(108, 211, 145, 0.14); border-color: rgba(108, 211, 145, 0.32); }
.vdl-src-status--done::before { background: #6cd391; box-shadow: 0 0 8px 0 rgba(108, 211, 145, 0.9); animation: none; }
.vdl-src-status--none { color: #fbcd7a; background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.32); }
.vdl-src-status--none::before { background: #fbcd7a; box-shadow: none; animation: none; }
/* legacy dot element is folded into the status pill now */
.vdl-src-dot { display: none; }
/* moving scan bar along the bottom of a row while "searching" — in the source brand */
.vdl-src--scanning::before { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 38%;
.vdl-src--scanning::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 38%;
border-radius: 2px; background: linear-gradient(90deg, transparent, rgb(var(--src)), transparent);
box-shadow: 0 0 10px 1px rgba(var(--src), 0.7); animation: vdlScan 0.9s ease-in-out infinite; }
.vdl-src-search { flex-shrink: 0; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800;
background: rgba(var(--src), 0.16); border: 1px solid rgba(var(--src), 0.4); color: #fff;
transition: all 0.15s; }
.vdl-src-search:hover { background: rgba(var(--src), 0.32); border-color: rgba(var(--src), 0.65);
box-shadow: 0 5px 14px -5px rgb(var(--src)); transform: translateY(-1px); }
.vdl-src-search:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
/* the two per-source actions sit together; Manual = outline, Auto = brand-filled */
.vdl-src-actions { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; }
.vdl-src-auto { flex-shrink: 0; padding: 7px 13px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800;
color: #0a0f14; border: 1px solid transparent; transition: all 0.15s;
background: linear-gradient(135deg, rgb(var(--src)), rgba(var(--src), 0.74)); box-shadow: 0 4px 14px -6px rgb(var(--src)); }
.vdl-src-auto:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 7px 18px -6px rgb(var(--src)); }
.vdl-src-auto:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; filter: none; }
/* Auto-all mirrors the source-brand fill idea on the accent header button */
.vdl-auto-all { animation: none; }
/* the two per-source actions: Manual = quiet ghost, Auto = hero (brand-filled,
soft continuous glow, sheen sweep on hover). Matched height + radius. */
.vdl-src-actions { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; }
.vdl-btn-ic { font-size: 12.5px; line-height: 1; opacity: 0.95; }
.vdl-btn-ic--auto { font-size: 13px; }
.vdl-src-auto:hover .vdl-btn-ic--auto { animation: vdlSparkle 0.6s ease 1; }
.vdl-src-search { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px;
cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.92);
background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(var(--src), 0.34);
transition: background 0.16s, border-color 0.16s, transform 0.16s, box-shadow 0.18s; }
.vdl-src-search:hover { background: rgba(var(--src), 0.18); border-color: rgba(var(--src), 0.62);
transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgb(var(--src)); }
.vdl-src-search:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.vdl-src-auto { --glow: var(--src); position: relative; overflow: hidden; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 850; letter-spacing: 0.01em;
color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); border: 1px solid rgba(var(--src), 0.55);
background: linear-gradient(135deg, rgba(var(--src), 0.96), rgba(var(--src), 0.56));
box-shadow: 0 6px 18px -7px rgb(var(--src)), inset 0 1px 0 rgba(255, 255, 255, 0.26);
animation: vdlAutoGlow 3s ease-in-out infinite; transition: transform 0.16s, box-shadow 0.2s, filter 0.16s; }
.vdl-src-auto:hover { transform: translateY(-1px); filter: brightness(1.06);
box-shadow: 0 9px 22px -7px rgb(var(--src)), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.vdl-src-auto::after { content: ''; position: absolute; inset: 0; transform: translateX(-130%);
background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); }
.vdl-src-auto:hover::after { animation: vdlSheen 0.7s ease 1; }
.vdl-src-auto:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; filter: none; animation: none; }
.vdl-src-empty { font-size: 13px; color: rgba(255, 255, 255, 0.5); padding: 12px 14px; border-radius: 12px;
background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.12); }
/* the release card the Auto pick chose — a brand ring so the choice is obvious */
@ -3137,6 +3175,8 @@ body[data-side="video"] #soulsync-toggle { display: none; }
box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.5), 0 10px 26px -12px rgba(var(--accent-rgb), 0.8); }
@media (max-width: 560px) {
.vdl-src { flex-wrap: wrap; }
.vdl-src .vdl-src-actions { width: 100%; }
.vdl-src .vdl-src-search, .vdl-src .vdl-src-auto { flex: 1; justify-content: center; }
}
/* ── download-view vibe: staggered entrance + life ────────────────────────── */
@ -3177,6 +3217,14 @@ body[data-side="video"] #soulsync-toggle { display: none; }
0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.0); }
50% { box-shadow: 0 0 14px -2px rgba(245, 158, 11, 0.6); } }
@keyframes vdlBreathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* the hero Auto button's soft, continuous brand glow (--glow set per element) */
@keyframes vdlAutoGlow {
0%, 100% { box-shadow: 0 6px 18px -7px rgba(var(--glow), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
50% { box-shadow: 0 7px 23px -5px rgba(var(--glow), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); } }
/* the sparkle icon gives a tiny twinkle on hover */
@keyframes vdlSparkle {
0% { transform: scale(1) rotate(0); } 45% { transform: scale(1.35) rotate(18deg); opacity: 1; }
100% { transform: scale(1) rotate(0); } }
@keyframes vdlScan {
0% { left: -38%; } 100% { left: 100%; } }
@keyframes vdlDot {
@ -3187,9 +3235,10 @@ body[data-side="video"] #soulsync-toggle { display: none; }
/* respect reduced-motion: keep the layout, drop the motion */
@media (prefers-reduced-motion: reduce) {
.vgm-dl, .vgm-dl-content > *, .vdl-chip, .vdl-src, .vdl-reason, .vdl-src-dot,
.vdl-verdict--ok, .vdl-verdict--up, .vdl-verdict--pending, .vdl-search-all { animation: none !important; }
.vdl-chip::after, .vdl-search-all::after, .vdl-src--scanning::before { display: none; }
.vgm-dl, .vgm-dl-content > *, .vdl-chip, .vdl-src, .vdl-reason, .vdl-src-status::before,
.vdl-verdict--ok, .vdl-verdict--up, .vdl-verdict--pending,
.vdl-search-all, .vdl-auto-all, .vdl-src-auto { animation: none !important; }
.vdl-chip::after, .vdl-auto-all::after, .vdl-src-auto::after, .vdl-src--scanning::after { display: none; }
}
/* ── TV show download view: season/episode picker ─────────────────────────── */