mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
4b4cf42167
components.css (14205 LOC) → 84 per-section files in src/styles/components/ +
an index.css that imports them in original cascade order.
Same approach as the theme.css split: top-level sections are detected by
single-dash or 3+ dash header decoration (/^\/\* ─(?: |─{2,})/), 2-dash
sub-sections stay inside their parent. Concatenating in @import order
reproduces the original byte stream (+1 trailing newline, cosmetic).
Each section is now self-contained — touching Tracklist, Modal, Hero,
Sidebar, etc. only opens one focused file.
Generated via /tmp/split-components-css.mjs.
157 lines
2.8 KiB
CSS
157 lines
2.8 KiB
CSS
/* ─ Playlists Page ─ */
|
|
.playlist-page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.playlist-page-header .page-title {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.playlist-filter-input {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
padding: 6px 12px;
|
|
width: 220px;
|
|
outline: none;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.playlist-filter-input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.playlist-filter-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.playlist-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.playlist-list-header {
|
|
display: grid;
|
|
grid-template-columns: 36px 1fr 90px 90px 44px;
|
|
gap: var(--space-3);
|
|
padding: 6px var(--space-3);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.playlist-sort-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.playlist-sort-btn:hover,
|
|
.playlist-sort-btn.active {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.playlist-row {
|
|
display: grid;
|
|
grid-template-columns: 36px 1fr 90px 90px 44px;
|
|
gap: var(--space-3);
|
|
align-items: center;
|
|
padding: 6px var(--space-3);
|
|
border-radius: var(--radius-md);
|
|
transition: background 0.15s;
|
|
user-select: none;
|
|
}
|
|
|
|
.playlist-row:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.playlist-play-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
color: var(--ctp-base);
|
|
border: none;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.15s, transform 0.15s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.playlist-row:hover .playlist-play-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.playlist-play-icon:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.playlist-name {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.playlist-meta {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.playlist-delete-btn {
|
|
opacity: 0;
|
|
color: var(--ctp-red) !important;
|
|
padding: 4px;
|
|
height: auto;
|
|
min-height: unset;
|
|
transition: opacity 0.15s;
|
|
justify-self: center;
|
|
}
|
|
|
|
.playlist-row:hover .playlist-delete-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.fav-remove-btn {
|
|
opacity: 0;
|
|
color: var(--text-muted);
|
|
background: none;
|
|
border: none;
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
transition: opacity 0.15s, color 0.15s;
|
|
}
|
|
|
|
.fav-remove-btn:hover {
|
|
color: var(--ctp-red);
|
|
}
|
|
|
|
.track-row:hover .fav-remove-btn,
|
|
.track-row.context-active .fav-remove-btn {
|
|
opacity: 1;
|
|
}
|
|
|