The visuals were off because I'd invented CSS/markup instead of reusing the shared design system. Fixed to match music exactly: - Dashboard Library card now uses music's full markup — header icon, Refresh/ Deep Scan buttons WITH their icons, and stat rows with icons (movies/shows/ episodes/disk). Same .library-status-* classes, no custom CSS. - Tools 'Library Scan' card now mirrors the music Database Updater: a mode dropdown (Incremental/Full Refresh/Deep Scan) + one Scan button inside .tool-card-controls + the standard progress bar. Styling comes for free from the generic music classes. - Dropped bespoke .video-tool-btn/.video-scan-controls CSS and folded the separate video-tools.js into the shared video-scan.js (one fewer file). JS stays isolated only because it must hit /api/video + update video DOM. 110 tests green.
228 lines
6.7 KiB
CSS
228 lines
6.7 KiB
CSS
/*
|
|
* SoulSync — Video side shell styling.
|
|
*
|
|
* Loaded AFTER style.css so these rules win where specificity ties. Everything
|
|
* keys off body[data-side="music|video"] (set by video-side.js). The music side
|
|
* is the default and is never affected — these rules only do something once the
|
|
* body flips to data-side="video".
|
|
*/
|
|
|
|
/* ── The Music ↔ Video header toggle (animated sliding pill) ────────────── */
|
|
.side-toggle {
|
|
position: relative;
|
|
display: flex;
|
|
margin-top: 12px;
|
|
padding: 4px;
|
|
background: rgba(0, 0, 0, 0.28);
|
|
border: 1px solid rgba(255, 255, 255, 0.07);
|
|
border-radius: 11px;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* The thumb that slides under the active side. Positioned over the left half by
|
|
default; slides to the right half when body[data-side="video"]. */
|
|
.side-toggle-thumb {
|
|
position: absolute;
|
|
z-index: 0;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
left: 4px;
|
|
width: calc(50% - 4px);
|
|
border-radius: 8px;
|
|
background: linear-gradient(135deg,
|
|
rgb(var(--accent-rgb, 88 101 242)),
|
|
rgba(var(--accent-rgb, 88 101 242), 0.82));
|
|
box-shadow: 0 3px 10px rgba(var(--accent-rgb, 88 101 242), 0.35);
|
|
transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.5, 1);
|
|
}
|
|
body[data-side="video"] .side-toggle-thumb {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.side-toggle-btn {
|
|
position: relative;
|
|
z-index: 1;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 7px 6px;
|
|
font-size: 11.5px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text-secondary, #9aa0aa);
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
}
|
|
.side-toggle-btn .side-toggle-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
flex: none;
|
|
opacity: 0.85;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
.side-toggle-btn:not(.active):hover {
|
|
color: var(--text-primary, #e8e8ea);
|
|
}
|
|
.side-toggle-btn.active {
|
|
color: #fff;
|
|
}
|
|
.side-toggle-btn.active .side-toggle-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ── Nav swap: music nav vs video nav ──────────────────────────────────── */
|
|
/* The video nav reuses .sidebar-nav layout (same class) — only visibility
|
|
differs. Hidden by default (music side); shown when data-side="video". */
|
|
.video-nav {
|
|
display: none;
|
|
}
|
|
body[data-side="video"] nav.sidebar-nav:not(.video-nav) {
|
|
display: none;
|
|
}
|
|
body[data-side="video"] .video-nav {
|
|
display: flex;
|
|
}
|
|
|
|
/* ── Page visibility per side ──────────────────────────────────────────── */
|
|
/* Music pages hidden on the video side; video pages hidden on the music side.
|
|
The music router still controls .page.active among music pages; we just hide
|
|
the whole set while the video side is showing. */
|
|
body[data-side="music"] .page.video-page {
|
|
display: none !important;
|
|
}
|
|
body[data-side="video"] .page:not(.video-page) {
|
|
display: none !important;
|
|
}
|
|
body[data-side="video"] .page.video-page {
|
|
display: block;
|
|
}
|
|
|
|
/* ── Service status: not needed on the video side (for now) ─────────────── */
|
|
body[data-side="video"] .status-section {
|
|
display: none;
|
|
}
|
|
|
|
/* ── Dashboard header: match music, minus the sweep animation ──────────── */
|
|
/* The header reuses music's .dashboard-header markup/CSS for an identical look;
|
|
we only mute the ambient sweep on the video side (equiv may return later,
|
|
driven by meta sources). Scoped to data-side="video" so music is untouched. */
|
|
body[data-side="video"] .dashboard-header-sweep {
|
|
display: none;
|
|
}
|
|
|
|
/* ── Subpages: one built video page shown at a time ────────────────────── */
|
|
/* Each real page is a .video-subpage inside #video-page-host; the controller
|
|
toggles the [hidden] attribute. Be explicit so no reused .dash-* rule can
|
|
resurrect a hidden page. */
|
|
.video-subpage[hidden],
|
|
.video-placeholder-slot[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
/* ── Placeholder content (for pages not built yet) ─────────────────────── */
|
|
.video-placeholder-slot {
|
|
padding: 48px 40px;
|
|
}
|
|
.video-placeholder-slot .header-title {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
}
|
|
.video-placeholder-note {
|
|
margin-top: 10px;
|
|
color: var(--text-secondary, #9aa0aa);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Empty-state line inside reused dashboard cards (e.g. Recent Downloads). */
|
|
.video-empty-note {
|
|
margin: 0;
|
|
padding: 8px 2px;
|
|
color: var(--text-secondary, #9aa0aa);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ── Library page ──────────────────────────────────────────────────────── */
|
|
.video-library-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 18px;
|
|
}
|
|
.video-library-tabs {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 4px;
|
|
background: rgba(0, 0, 0, 0.25);
|
|
border: 1px solid rgba(255, 255, 255, 0.07);
|
|
border-radius: 12px;
|
|
}
|
|
.video-lib-tab {
|
|
padding: 8px 18px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary, #9aa0aa);
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 9px;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease, color 0.15s ease;
|
|
}
|
|
.video-lib-tab:hover { color: var(--text-primary, #e8e8ea); }
|
|
.video-lib-tab.active {
|
|
color: #fff;
|
|
background: rgb(var(--accent-rgb, 88 101 242));
|
|
}
|
|
.video-library-count {
|
|
font-size: 13px;
|
|
color: var(--text-secondary, #9aa0aa);
|
|
}
|
|
|
|
.video-library-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
gap: 18px;
|
|
}
|
|
.video-card { cursor: default; }
|
|
.video-card-poster {
|
|
position: relative;
|
|
aspect-ratio: 2 / 3;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: linear-gradient(135deg, rgba(var(--accent-rgb, 88 101 242), 0.25), rgba(0, 0, 0, 0.4));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
.video-card-poster img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
.video-card-poster-letter {
|
|
font-size: 40px;
|
|
font-weight: 700;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
}
|
|
.video-card-title {
|
|
margin-top: 8px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e8e8ea);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.video-card-meta {
|
|
margin-top: 2px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary, #9aa0aa);
|
|
}
|