mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 23:35:44 +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.
23 lines
412 B
CSS
23 lines
412 B
CSS
/* ─ Offline cache button ─ */
|
|
.offline-cache-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.offline-cache-btn--cached {
|
|
color: var(--color-star-active, var(--accent));
|
|
border-color: var(--color-star-active, var(--accent));
|
|
}
|
|
|
|
.offline-cache-btn--progress {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
opacity: 0.75;
|
|
padding: 6px 10px;
|
|
}
|
|
|