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.
108 lines
2.0 KiB
CSS
108 lines
2.0 KiB
CSS
/* ─── Changelog ────────────────────────────────────────────────────────────── */
|
|
|
|
.changelog-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.changelog-entry {
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-card);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.changelog-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
user-select: none;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.changelog-summary::-webkit-details-marker { display: none; }
|
|
|
|
.changelog-summary::before {
|
|
content: '▶';
|
|
font-size: 9px;
|
|
color: var(--text-muted);
|
|
transition: transform 0.15s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.changelog-entry[open] > .changelog-summary::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.changelog-version {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.changelog-date {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.changelog-body {
|
|
padding: 4px 14px 12px 28px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.changelog-h3 {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--accent);
|
|
margin-top: 10px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.changelog-h4 {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.changelog-item {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
padding-left: 12px;
|
|
position: relative;
|
|
}
|
|
|
|
.changelog-item::before {
|
|
content: '·';
|
|
position: absolute;
|
|
left: 2px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.changelog-text {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.changelog-code {
|
|
font-family: var(--font-mono, monospace);
|
|
font-size: 11px;
|
|
background: var(--bg-hover);
|
|
color: var(--accent);
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|