refactor(styles): split components.css into per-section files (#657)

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.
This commit is contained in:
Frank Stellmacher
2026-05-13 19:10:11 +02:00
committed by GitHub
parent 45a6a18849
commit 4b4cf42167
87 changed files with 14215 additions and 14206 deletions
+173
View File
@@ -0,0 +1,173 @@
/* ─ Login Page ─ */
.login-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
background: var(--bg-app);
}
.login-bg {
position: absolute;
inset: 0;
background: radial-gradient(ellipse at 20% 50%, rgba(203, 166, 247, 0.08) 0%, transparent 60%),
radial-gradient(ellipse at 80% 20%, rgba(137, 180, 250, 0.06) 0%, transparent 50%);
pointer-events: none;
}
.login-card {
width: 100%;
max-width: 520px;
background: var(--ctp-mantle);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-xl);
padding: var(--space-8);
box-shadow: var(--shadow-lg);
position: relative;
z-index: 1;
}
.login-logo {
display: flex;
justify-content: center;
margin-bottom: var(--space-5);
}
.login-lang-picker {
position: absolute;
top: var(--space-3);
right: var(--space-3);
display: flex;
align-items: center;
gap: var(--space-1);
color: var(--text-muted);
z-index: 2;
}
.login-lang-picker > button {
font-size: 12px;
padding: 4px 8px;
background: transparent;
border: 1px solid transparent;
color: var(--text-muted);
width: auto;
min-width: 110px;
}
.login-lang-picker > button:hover {
background: var(--bg-hover);
border-color: var(--border-subtle);
color: var(--text-primary);
}
.login-title {
text-align: center;
font-family: var(--font-display);
font-size: 28px;
font-weight: 800;
background: linear-gradient(135deg, var(--ctp-mauve), var(--ctp-blue));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.login-subtitle {
text-align: center;
color: var(--text-muted);
font-size: 13px;
margin: var(--space-1) 0 var(--space-6);
}
.login-form {
display: flex;
flex-direction: column;
gap: var(--space-4);
}
.form-group {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.form-group label {
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
letter-spacing: 0.03em;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-3);
}
.login-status {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-md);
font-size: 13px;
}
.login-status--testing {
background: var(--accent-dim);
color: var(--accent);
}
.login-status--ok {
background: rgba(166, 227, 161, 0.15);
color: var(--positive);
}
.login-status--error {
background: rgba(243, 139, 168, 0.15);
color: var(--danger);
}
.login-saved-servers {
display: flex;
flex-direction: column;
gap: var(--space-2);
margin-bottom: var(--space-4);
}
.login-saved-label {
font-size: 11px;
font-weight: 600;
color: var(--text-muted);
letter-spacing: 0.05em;
text-transform: uppercase;
margin-bottom: var(--space-1);
}
.login-server-btn {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
text-align: left;
width: 100%;
}
.login-divider {
display: flex;
align-items: center;
gap: var(--space-3);
color: var(--text-muted);
font-size: 12px;
margin: var(--space-2) 0;
}
.login-divider::before,
.login-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}