Apply the theme: tokens, Oswald, song cards, toasts
The theme handoff encoded as CSS custom properties rather than a Tailwind config, since there is no Tailwind here. Palette, spacing, radii, shadows and motion follow it as written; docs/theme.md lists what differs and why. - Oswald vendored as a 21KB variable woff2, latin subset, no CDN. Its phantom weight 900 resolved to 700 — loading a weight you don't have is what made the brand render differently per platform - color-scheme: dark makes the native audio element fit the palette, which was the handoff's complaint about it - Songs are text cards rather than artwork tiles, because there is no artwork. The unreviewed state keeps its red-brown border and gains a badge, so it is never carried by colour alone - Nav is the three-column grid; the mobile menu is <details>, no JS - Flash messages became bottom-right toasts Favicon carried over from the Nuxt project.
This commit is contained in:
+483
-163
@@ -1,21 +1,80 @@
|
||||
/* Theme tokens first — the dark rock/metal look lives here and nowhere else. */
|
||||
/* Levyraati — dark-only rock club poster. Tokens first; nothing below invents a colour, a spacing
|
||||
step, a radius or a duration that isn't declared here. */
|
||||
|
||||
/* Oswald variable, latin subset, vendored — no CDN, and no webfont for body text. 400–700 only:
|
||||
asking for 900 makes the browser synthesise a fake bold that differs per platform. */
|
||||
@font-face {
|
||||
font-family: "Oswald";
|
||||
src: url("/static/fonts/oswald.woff2") format("woff2");
|
||||
font-weight: 400 700;
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg: #121212;
|
||||
--surface: #1c1c1e;
|
||||
--surface-2: #26262a;
|
||||
--border: #35353a;
|
||||
--text: #ece9e6;
|
||||
--muted: #9a948d;
|
||||
--accent: #ff5722;
|
||||
--accent-2: #c62828;
|
||||
--error: #ef5350;
|
||||
/* Surfaces */
|
||||
--bg: #111111;
|
||||
--surface: #1a1a1a;
|
||||
--surface-raised: #222222;
|
||||
--surface-header: #1e1e1e;
|
||||
--bar: #0d0d0d;
|
||||
--hairline: #2a2a2a;
|
||||
--divider: #333333;
|
||||
--input-border: #444444;
|
||||
|
||||
/* Text */
|
||||
--text: #e0e0e0;
|
||||
--muted: #888888;
|
||||
--text-strong: #f0f0f0;
|
||||
|
||||
/* Accent — bronze/amber, not neon */
|
||||
--primary: #a0693a;
|
||||
--primary-hover: #b57848;
|
||||
--primary-wash: rgba(160, 105, 58, 0.2);
|
||||
--primary-inverse: #111111;
|
||||
--gold-1: #c4a96a;
|
||||
--gold-2: #b89558;
|
||||
|
||||
/* Status, deliberately desaturated */
|
||||
--error: #e05959;
|
||||
--error-bg: rgba(224, 89, 89, 0.08);
|
||||
--success: #7db07d;
|
||||
--success-bg: rgba(125, 176, 125, 0.08);
|
||||
--pending: #8f4a44;
|
||||
--pending-bg: #2e2020;
|
||||
--unreviewed: #7a3a36;
|
||||
--unreviewed-hover: #a04540;
|
||||
|
||||
/* Scale — 4px base, six steps, nothing in between */
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 24px;
|
||||
--space-6: 32px;
|
||||
|
||||
--radius: 4px;
|
||||
/* ponytail: system stack until an Oswald woff2 is vendored into /static. */
|
||||
--font-head: "Oswald", "Fira Sans Condensed", "Arial Narrow", system-ui, sans-serif;
|
||||
--radius-toast: 6px;
|
||||
--radius-pill: 99px;
|
||||
|
||||
--duration-fast: 150ms;
|
||||
--ease-out: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
||||
--shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 24px rgba(180, 120, 72, 0.12),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
--shadow-focus: 0 0 0 3px rgba(196, 169, 106, 0.35);
|
||||
|
||||
/* Native controls (audio, checkbox, range, scrollbars) follow this — it is what stops the
|
||||
<audio> element rendering as a white slab against the dark page. */
|
||||
color-scheme: dark;
|
||||
|
||||
--content: 1450px;
|
||||
--font-display: "Oswald", Impact, system-ui, sans-serif;
|
||||
--font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
@@ -25,209 +84,470 @@ body {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-family: var(--font-head);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
margin: 0 0 0.6rem;
|
||||
/* One focus treatment everywhere, on :focus-visible only. Keyboard navigation is the only way
|
||||
through some admin tables — this ring is not optional. */
|
||||
a:focus-visible, button:focus-visible, input:focus-visible,
|
||||
textarea:focus-visible, select:focus-visible, summary:focus-visible,
|
||||
[role="button"]:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: var(--shadow-focus);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
h1 { color: var(--accent); font-size: 1.9rem; }
|
||||
h2 { font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
|
||||
h1, h2, h3 {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.01em;
|
||||
margin: 0 0 var(--space-3);
|
||||
}
|
||||
|
||||
a { color: var(--accent); }
|
||||
/* Headings step downward in brightness with level. */
|
||||
h1 { font-size: 2rem; color: var(--gold-1); }
|
||||
h2 { font-size: 1.5rem; color: var(--gold-2); }
|
||||
h3 { font-size: 1.2rem; color: var(--primary); }
|
||||
h4 { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.02em; }
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
a { color: var(--primary); text-decoration-color: var(--primary-wash); }
|
||||
a:hover { color: var(--primary-hover); }
|
||||
|
||||
/* --- top bar --- */
|
||||
|
||||
header.topbar {
|
||||
background: var(--bar);
|
||||
border-bottom: 2px solid var(--divider);
|
||||
padding: var(--space-3) var(--space-5);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Three columns, not space-between: this is what keeps the links optically centred whatever the
|
||||
brand and user block weigh. */
|
||||
.topbar-inner {
|
||||
max-width: var(--content);
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.8rem 1.2rem;
|
||||
background: var(--surface);
|
||||
border-bottom: 2px solid var(--accent-2);
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.brand {
|
||||
font-family: var(--font-head);
|
||||
font-size: 1.3rem;
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.03em;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav { display: flex; align-items: center; gap: 1rem; }
|
||||
nav a { text-decoration: none; }
|
||||
.navlinks { display: flex; gap: var(--space-2); justify-content: center; }
|
||||
|
||||
main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.2rem 4rem; }
|
||||
section { margin-bottom: 2.5rem; }
|
||||
|
||||
.muted { color: var(--muted); }
|
||||
.error { color: var(--error); display: block; font-size: 0.9rem; }
|
||||
|
||||
.tag {
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
background: var(--accent-2);
|
||||
padding: 0.1rem 0.4rem;
|
||||
.navlinks a {
|
||||
padding: 0.4rem var(--space-3);
|
||||
border-radius: var(--radius);
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
font-size: 0.9rem;
|
||||
transition: background var(--duration-fast) var(--ease-out),
|
||||
color var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.flash {
|
||||
max-width: 52rem;
|
||||
margin: 1rem auto 0;
|
||||
padding: 0.7rem 1rem;
|
||||
background: var(--surface-2);
|
||||
border-left: 3px solid var(--accent);
|
||||
border-radius: var(--radius);
|
||||
/* Hover and current route look the same, on purpose. */
|
||||
.navlinks a:hover, .navlinks a[aria-current="page"] {
|
||||
background: var(--surface-raised);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.userblock {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-1) var(--space-2);
|
||||
border-radius: var(--radius);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.userblock .lines { text-align: right; display: flex; flex-direction: column; }
|
||||
.userblock .name { font-size: 0.85rem; font-weight: 600; }
|
||||
.userblock .email { font-size: 0.7rem; color: var(--muted); }
|
||||
|
||||
.avatar {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
flex: none;
|
||||
border-radius: 50%;
|
||||
background: var(--accent-2);
|
||||
font-family: var(--font-head);
|
||||
font-size: 0.85rem;
|
||||
background: var(--surface-raised);
|
||||
border: 1px solid var(--input-border);
|
||||
color: var(--gold-1);
|
||||
font-family: var(--font-display);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
form.stack { display: flex; flex-direction: column; gap: 0.9rem; max-width: 24rem; }
|
||||
form.stack label { display: flex; flex-direction: column; gap: 0.25rem; }
|
||||
form.stack label.row { flex-direction: row; align-items: center; gap: 0.5rem; }
|
||||
.avatar.small { width: 1.8rem; height: 1.8rem; font-size: 0.75rem; }
|
||||
|
||||
input {
|
||||
background: var(--surface-2);
|
||||
/* --- layout --- */
|
||||
|
||||
main { max-width: var(--content); margin: 0 auto; padding: var(--space-6) var(--space-5); }
|
||||
main.narrow { max-width: 420px; padding-top: 8vh; }
|
||||
section { margin-bottom: var(--space-6); }
|
||||
|
||||
footer.sitefooter {
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: 0.8rem;
|
||||
padding: var(--space-6) var(--space-4) var(--space-4);
|
||||
}
|
||||
|
||||
.muted { color: var(--muted); }
|
||||
.small { font-size: 0.8rem; }
|
||||
.nowrap { white-space: nowrap; }
|
||||
.error { color: var(--error); display: block; font-size: 0.85rem; }
|
||||
.empty { font-family: var(--font-display); color: var(--muted); padding: var(--space-6) 0; }
|
||||
|
||||
/* --- badges --- */
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
border-radius: var(--radius-pill);
|
||||
padding: 0.15rem var(--space-2);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.badge.genre { background: var(--surface-raised); color: var(--primary); border: 1px solid var(--input-border); }
|
||||
.badge.admin { background: #3a1a1a; color: var(--gold-2); }
|
||||
.badge.reviewed { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
|
||||
.badge.pending { background: var(--pending-bg); color: var(--pending); }
|
||||
|
||||
/* --- song grid --- */
|
||||
|
||||
.songgrid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
|
||||
|
||||
@media (min-width: 640px) { .songgrid { grid-template-columns: repeat(2, 1fr); } }
|
||||
@media (min-width: 1024px) { .songgrid { grid-template-columns: repeat(3, 1fr); } }
|
||||
|
||||
.songcard {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-1);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--hairline);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-4);
|
||||
padding-right: var(--space-6);
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: var(--shadow-card);
|
||||
transition: transform var(--duration-fast) var(--ease-out),
|
||||
border-color var(--duration-fast) var(--ease-out),
|
||||
box-shadow var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.songcard:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--primary);
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
}
|
||||
|
||||
/* The single most important state in the app: what still needs a review. Carried by the border
|
||||
AND the pending badge — never by colour alone. */
|
||||
.songcard.unreviewed { border-color: var(--unreviewed); }
|
||||
.songcard.unreviewed:hover { border-color: var(--unreviewed-hover); }
|
||||
|
||||
.songcard .title { font-size: 1.1rem; font-weight: 700; color: var(--text-strong); }
|
||||
.songcard .artist { font-size: 0.9rem; color: #cccccc; }
|
||||
.songcard .meta { font-size: 0.75rem; color: var(--muted); display: flex; gap: var(--space-2);
|
||||
align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
|
||||
|
||||
.songcard .scorebadge {
|
||||
position: absolute;
|
||||
top: var(--space-3);
|
||||
right: var(--space-3);
|
||||
font-family: var(--font-display);
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
color: var(--gold-1);
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: var(--radius);
|
||||
padding: 0.5rem 0.6rem;
|
||||
padding: 0 var(--space-2);
|
||||
}
|
||||
|
||||
/* --- song page and reviews --- */
|
||||
|
||||
.songmeta { color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--space-2);
|
||||
align-items: center; margin: calc(-1 * var(--space-2)) 0 var(--space-4); }
|
||||
|
||||
.intro { white-space: pre-wrap; background: var(--surface); padding: var(--space-4);
|
||||
border-left: 3px solid var(--hairline); border-radius: 0 var(--radius) var(--radius) 0; }
|
||||
|
||||
.average { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-1); }
|
||||
|
||||
.review {
|
||||
padding: var(--space-4);
|
||||
border-left: 3px solid var(--input-border);
|
||||
background: var(--surface);
|
||||
border-radius: 0 var(--radius) var(--radius) 0;
|
||||
margin-bottom: var(--space-2);
|
||||
}
|
||||
|
||||
.review.own { border-left-color: var(--primary); }
|
||||
.review header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
|
||||
.review .who { font-weight: 700; color: var(--primary); }
|
||||
.review .score { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--gold-1); }
|
||||
.review p { white-space: pre-wrap; line-height: 1.6; margin: 0; }
|
||||
.review .meta { font-size: 0.8rem; color: var(--muted); }
|
||||
|
||||
.player { width: 100%; margin: var(--space-3) 0 var(--space-5); }
|
||||
|
||||
/* --- forms --- */
|
||||
|
||||
form.stack { display: flex; flex-direction: column; gap: var(--space-4); }
|
||||
form.stack label { display: flex; flex-direction: column; gap: var(--space-1); }
|
||||
form.stack label.row { flex-direction: row; align-items: center; gap: var(--space-2); }
|
||||
/* Buttons size to their label rather than stretching across the column. */
|
||||
form.stack > button, form.stack > .actions { align-self: flex-start; }
|
||||
|
||||
input, select, textarea {
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--input-border);
|
||||
border-radius: var(--radius);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
font: inherit;
|
||||
width: 100%;
|
||||
transition: border-color var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
input:focus-visible, button:focus-visible, a:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
input[type="checkbox"], input[type="range"] { width: auto; }
|
||||
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
|
||||
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
|
||||
textarea { resize: vertical; line-height: 1.6; }
|
||||
|
||||
button {
|
||||
background: var(--accent);
|
||||
color: #150c07;
|
||||
border: 0;
|
||||
button, .btn {
|
||||
background: var(--primary);
|
||||
color: var(--primary-inverse);
|
||||
border: 1px solid var(--primary);
|
||||
border-radius: var(--radius);
|
||||
padding: 0.5rem 0.9rem;
|
||||
padding: var(--space-2) var(--space-4);
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background var(--duration-fast) var(--ease-out),
|
||||
border-color var(--duration-fast) var(--ease-out),
|
||||
color var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
button:hover { background: #ff7043; }
|
||||
button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
|
||||
button:disabled { opacity: 0.5; cursor: not-allowed; background: var(--surface-raised);
|
||||
border-color: var(--input-border); color: var(--muted); }
|
||||
|
||||
button.link {
|
||||
background: none;
|
||||
color: var(--accent);
|
||||
padding: 0;
|
||||
font-weight: normal;
|
||||
text-decoration: underline;
|
||||
button.ghost {
|
||||
background: transparent;
|
||||
border-color: var(--input-border);
|
||||
color: var(--text);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
|
||||
th, td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--border); }
|
||||
th { font-family: var(--font-head); text-transform: uppercase; font-size: 0.8rem; color: var(--muted); }
|
||||
tr.banned { opacity: 0.55; }
|
||||
button.ghost:hover { border-color: var(--primary); color: var(--primary);
|
||||
background: rgba(180, 120, 72, 0.05); }
|
||||
|
||||
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
|
||||
.actions form { display: flex; gap: 0.3rem; }
|
||||
.actions input { width: 10rem; }
|
||||
button.danger { background: transparent; border-color: var(--pending); color: var(--pending); }
|
||||
button.danger:hover { background: var(--pending-bg); border-color: var(--unreviewed-hover);
|
||||
color: var(--error); }
|
||||
|
||||
code { background: var(--surface-2); padding: 0.1rem 0.35rem; border-radius: var(--radius); }
|
||||
button.link { background: none; border: 0; color: var(--primary); padding: 0;
|
||||
font-weight: 400; font-size: 0.9rem; text-decoration: underline; }
|
||||
button.link:hover { background: none; color: var(--primary-hover); }
|
||||
|
||||
.invite { word-break: break-all; }
|
||||
.scorerow { display: flex; align-items: center; gap: var(--space-4); }
|
||||
.scorerow input[type="range"] { flex: 1; accent-color: var(--primary); }
|
||||
.scorerow output { font-family: var(--font-display); font-size: 2rem; font-weight: 700;
|
||||
color: var(--gold-1); min-width: 3ch; text-align: right; }
|
||||
|
||||
/* Pulled up so it hugs the control. */
|
||||
.scorescale { display: flex; justify-content: space-between; font-size: 0.9rem;
|
||||
color: var(--muted); opacity: 0.6; margin-top: calc(-1 * var(--space-2)); }
|
||||
|
||||
/* --- drop zone --- */
|
||||
|
||||
/* Drop target that is the file input — the native control is hidden behind it, so keyboard
|
||||
focus, validation and submission keep working. */
|
||||
.dropzone {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
padding: 2.2rem 1rem;
|
||||
border: 2px dashed var(--border);
|
||||
gap: var(--space-1);
|
||||
padding: var(--space-6) var(--space-4);
|
||||
border: 2px dashed var(--input-border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
transition: border-color var(--duration-fast) var(--ease-out),
|
||||
background var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.dropzone:hover { border-color: var(--accent); }
|
||||
.dropzone.over { border-color: var(--accent); background: var(--surface-2); }
|
||||
.dropzone.has-file { border-style: solid; border-color: var(--accent); }
|
||||
|
||||
/* Visually hidden, still focusable and still the thing that gets submitted. */
|
||||
.dropzone input[type="file"] {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
|
||||
.dz-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }
|
||||
.filename { color: var(--accent); word-break: break-all; }
|
||||
.small { font-size: 0.85rem; }
|
||||
|
||||
select, textarea {
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 0.5rem 0.6rem;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
textarea { resize: vertical; }
|
||||
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
|
||||
.player { width: 100%; margin: 0.6rem 0 1rem; }
|
||||
.byline { color: var(--muted); margin-top: -0.3rem; }
|
||||
.intro { white-space: pre-wrap; background: var(--surface); padding: 0.8rem 1rem;
|
||||
border-left: 3px solid var(--border); border-radius: var(--radius); }
|
||||
.empty { font-family: var(--font-head); text-transform: uppercase; color: var(--muted);
|
||||
padding: 2rem 0; }
|
||||
.nowrap { white-space: nowrap; }
|
||||
.tag.done { background: var(--surface-2); color: var(--muted); }
|
||||
|
||||
.average { font-size: 1.1rem; }
|
||||
.score { display: inline-block; font-family: var(--font-head); font-size: 1.1rem;
|
||||
color: var(--accent); }
|
||||
|
||||
.review { background: var(--surface); border-radius: var(--radius); padding: 0.8rem 1rem;
|
||||
margin-bottom: 0.8rem; }
|
||||
.review header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
|
||||
.review p { white-space: pre-wrap; margin: 0; }
|
||||
|
||||
.scorerow { display: flex; align-items: center; gap: 0.8rem; }
|
||||
.scorerow input[type="range"] { flex: 1; accent-color: var(--accent); }
|
||||
.scorerow output { font-family: var(--font-head); font-size: 1.3rem; color: var(--accent);
|
||||
min-width: 2.5ch; text-align: right; }
|
||||
|
||||
.editbox { background: var(--surface); border-radius: var(--radius); padding: 0.6rem 1rem;
|
||||
margin-bottom: 1.5rem; }
|
||||
.editbox summary { cursor: pointer; font-family: var(--font-head); text-transform: uppercase; }
|
||||
.editbox form { margin: 0.8rem 0; }
|
||||
|
||||
button.danger { background: var(--accent-2); color: var(--text); }
|
||||
button.danger:hover { background: #e53935; }
|
||||
|
||||
.saved { color: var(--muted); font-size: 0.85rem; min-height: 1.2em; }
|
||||
.status { background: var(--surface); border-left: 3px solid var(--accent); border-radius: var(--radius);
|
||||
padding: 0.8rem 1rem; margin-bottom: 1.2rem; }
|
||||
.status p { margin: 0 0 0.5rem; }
|
||||
button:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
|
||||
|
||||
.dropzone:hover { border-color: var(--primary); }
|
||||
.dropzone.over { border-color: var(--primary); background: var(--surface-raised); }
|
||||
.dropzone.has-file { border-style: solid; border-color: var(--primary); }
|
||||
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
||||
.dropzone:focus-within { box-shadow: var(--shadow-focus); }
|
||||
.dz-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
|
||||
.filename { color: var(--primary); word-break: break-all; }
|
||||
.or { text-align: center; color: var(--muted); text-transform: uppercase;
|
||||
font-family: var(--font-head); margin: 0; }
|
||||
font-family: var(--font-display); margin: 0; }
|
||||
|
||||
/* --- submission status --- */
|
||||
|
||||
.status { background: var(--surface); border-left: 3px solid var(--primary);
|
||||
border-radius: 0 var(--radius) var(--radius) 0; padding: var(--space-4);
|
||||
margin-bottom: var(--space-5); }
|
||||
.status p { margin: 0 0 var(--space-2); }
|
||||
.status.failed { border-left-color: var(--pending); }
|
||||
.saved { color: var(--muted); font-size: 0.85rem; min-height: 1.2em; }
|
||||
|
||||
.editbox { background: var(--surface); border: 1px solid var(--hairline);
|
||||
border-radius: var(--radius); padding: var(--space-3) var(--space-4);
|
||||
margin-bottom: var(--space-5); }
|
||||
.editbox summary { cursor: pointer; font-family: var(--font-display);
|
||||
text-transform: uppercase; color: var(--primary); }
|
||||
.editbox form { margin: var(--space-4) 0; }
|
||||
|
||||
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-start; }
|
||||
.actions form { display: flex; gap: var(--space-2); }
|
||||
.actions input { width: 12rem; }
|
||||
|
||||
/* --- tables and admin --- */
|
||||
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--hairline); }
|
||||
th { font-family: var(--font-display); text-transform: uppercase; font-size: 0.8rem;
|
||||
font-weight: 600; color: var(--muted); }
|
||||
tr.banned { opacity: 0.55; }
|
||||
td.break { word-break: break-all; font-size: 0.8rem; }
|
||||
|
||||
.adminsection { background: var(--surface); border: 1px solid var(--hairline);
|
||||
border-radius: var(--radius); margin-bottom: var(--space-6); }
|
||||
.adminsection > header { background: var(--surface-header); padding: var(--space-4) var(--space-5);
|
||||
border-bottom: 1px solid var(--hairline); display: flex;
|
||||
align-items: center; justify-content: space-between; gap: var(--space-4); }
|
||||
.adminsection > header h2 { margin: 0; }
|
||||
.adminsection .body { padding: var(--space-4) var(--space-5); }
|
||||
|
||||
.dot { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; }
|
||||
.dot.on { background: #5a8f5a; }
|
||||
.dot.off { background: #8f4a44; }
|
||||
|
||||
code { background: var(--surface-raised); padding: 0.1rem var(--space-1);
|
||||
border-radius: var(--radius); font-size: 0.85rem; }
|
||||
|
||||
/* --- toasts --- */
|
||||
|
||||
.toasts { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 1000;
|
||||
display: flex; flex-direction: column; gap: var(--space-2);
|
||||
max-width: min(360px, 100vw - 24px); pointer-events: none; }
|
||||
|
||||
.toast {
|
||||
pointer-events: auto;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
border-radius: var(--radius-toast);
|
||||
border-left: 4px solid var(--success);
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow-card);
|
||||
animation: toast-in var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.toast p { margin: 0; }
|
||||
.toast .dismiss { background: none; border: 0; color: var(--text); font-size: 1.5rem;
|
||||
line-height: 1; padding: 0; opacity: 0.7; cursor: pointer; }
|
||||
.toast .dismiss:hover { opacity: 1; background: none; }
|
||||
|
||||
@keyframes toast-in {
|
||||
from { opacity: 0; transform: translateX(20px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
|
||||
/* --- mobile --- */
|
||||
|
||||
.mobilenav { display: none; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.topbar-inner { grid-template-columns: 1fr auto; }
|
||||
.navlinks, .userblock .lines { display: none; }
|
||||
|
||||
.mobilenav { display: block; justify-self: end; }
|
||||
|
||||
.mobilenav > summary {
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--input-border);
|
||||
border-radius: var(--radius);
|
||||
font-size: 1.4rem;
|
||||
color: var(--text);
|
||||
transition: border-color var(--duration-fast) var(--ease-out),
|
||||
background var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.mobilenav > summary::-webkit-details-marker { display: none; }
|
||||
.mobilenav[open] > summary, .mobilenav > summary:hover {
|
||||
border-color: var(--primary);
|
||||
background: rgba(180, 120, 72, 0.05);
|
||||
}
|
||||
|
||||
.mobilenav .panel {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 100%;
|
||||
background: var(--surface);
|
||||
border-bottom: 2px solid var(--primary);
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
padding: var(--space-5) var(--space-4) var(--space-4);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: 95;
|
||||
animation: panel-down var(--duration-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.mobilenav .panel a, .mobilenav .panel button {
|
||||
font-family: var(--font-display);
|
||||
text-transform: uppercase;
|
||||
font-size: 1.15rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
padding: var(--space-4);
|
||||
text-align: left;
|
||||
background: none;
|
||||
border: 0;
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
main { padding: var(--space-5) var(--space-4); }
|
||||
.toasts { left: var(--space-4); max-width: none; }
|
||||
}
|
||||
|
||||
@keyframes panel-down {
|
||||
from { transform: translateY(-100%); opacity: 0; }
|
||||
to { transform: none; opacity: 1; }
|
||||
}
|
||||
|
||||
/* Keep the fades, drop the movement. */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
|
||||
.songcard:hover { transform: none; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user