Initial TopDeck: self-hosted ranked favorites
A single Go binary with SQLite that serves a public page of the owner's ranked lists (movies, TV, albums, songs, video games, theater) and a login-gated editor. - Lists of 1–65,535 entries (100 recommended), several per category - Search-to-add via TMDB, TheTVDB, IGDB, Deezer/MusicBrainz, Wikipedia; manual entry as a fallback - Theater entries carry a production (Broadway, tour, …), venue and cast - Artwork cached locally; URL override and uploads - Drag, arrow and type-a-rank reordering; paginated for long lists - 12 theme presets plus custom CSS - First-run setup code or env-provided admin; bcrypt, rate-limited login, CSRF-guarded JSON API - Dockerfile and docker-compose.yml Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
e9a75a968a
53 files changed
+7078
No files matched your search
@@ -0,0 +1,579 @@
|
||||
/* ==========================================================================
|
||||
TopDeck. Colors and fonts come from themes.css.
|
||||
========================================================================== */
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 15px/1.5 var(--font);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
main { flex: 1; }
|
||||
img { display: block; max-width: 100%; }
|
||||
a { color: inherit; }
|
||||
button, input, select, textarea { font: inherit; color: inherit; }
|
||||
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
|
||||
p { margin: 0; }
|
||||
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
|
||||
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
::selection { background: var(--accent); color: var(--accent-text); }
|
||||
|
||||
.icon {
|
||||
width: 1.1em; height: 1.1em; flex: none;
|
||||
fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
|
||||
vertical-align: -0.15em;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
||||
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
|
||||
}
|
||||
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: var(--radius); }
|
||||
.skip-link:focus { left: 8px; }
|
||||
.muted { color: var(--muted); }
|
||||
.small { font-size: 13px; }
|
||||
[hidden] { display: none !important; }
|
||||
|
||||
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
|
||||
@media (max-width: 640px) { .container { padding: 0 16px; } }
|
||||
|
||||
/* ---------- top bar ---------- */
|
||||
.topbar {
|
||||
position: sticky; top: 0; z-index: 20;
|
||||
background: color-mix(in srgb, var(--bg) 82%, transparent);
|
||||
backdrop-filter: saturate(160%) blur(14px);
|
||||
-webkit-backdrop-filter: saturate(160%) blur(14px);
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
|
||||
}
|
||||
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
|
||||
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; min-width: 0; }
|
||||
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.brand-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
|
||||
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
|
||||
.brand-mark .icon { width: 18px; height: 18px; }
|
||||
.topnav { display: flex; align-items: center; gap: 4px; }
|
||||
.topnav a, .topnav-btn {
|
||||
display: inline-flex; align-items: center; gap: 7px;
|
||||
padding: 7px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
|
||||
color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
|
||||
}
|
||||
.topnav a:hover, .topnav-btn:hover { color: var(--text); background: var(--surface-2); }
|
||||
.topnav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
|
||||
.topnav-form { margin: 0; }
|
||||
@media (max-width: 520px) { .topnav a span { display: none; } }
|
||||
|
||||
/* ---------- footer ---------- */
|
||||
.footer { margin-top: 72px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
|
||||
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 22px; padding-bottom: 28px; }
|
||||
.footer a { color: var(--muted); text-decoration: none; }
|
||||
.footer a:hover { color: var(--accent); }
|
||||
|
||||
/* ---------- buttons ---------- */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
|
||||
height: 38px; padding: 0 16px; border-radius: var(--radius);
|
||||
border: 1px solid var(--border); background: var(--surface); color: var(--text);
|
||||
font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap;
|
||||
transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
|
||||
}
|
||||
.btn:hover { background: var(--surface-2); }
|
||||
.btn:active { transform: translateY(1px); }
|
||||
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
|
||||
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
||||
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
|
||||
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
|
||||
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
|
||||
.btn--danger { color: var(--danger); }
|
||||
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
|
||||
.btn--danger.btn--solid { background: var(--danger); border-color: var(--danger); color: #fff; }
|
||||
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
|
||||
.btn--block { width: 100%; }
|
||||
.icon-btn {
|
||||
display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
|
||||
border: 0; background: none; color: var(--muted); cursor: pointer;
|
||||
}
|
||||
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
|
||||
.icon-btn:disabled { opacity: 0.35; cursor: default; background: none; }
|
||||
.icon-btn--danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
|
||||
|
||||
/* ---------- chips, badges ---------- */
|
||||
.chip {
|
||||
display: inline-flex; align-items: center; gap: 7px; flex: none;
|
||||
height: 34px; padding: 0 14px; border-radius: 999px;
|
||||
background: var(--surface); border: 1px solid var(--border);
|
||||
color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none;
|
||||
transition: color 0.15s, border-color 0.15s, background 0.15s;
|
||||
}
|
||||
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
|
||||
.badge {
|
||||
display: inline-flex; align-items: center; gap: 5px; width: fit-content;
|
||||
padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
|
||||
background: var(--accent-soft); color: var(--accent);
|
||||
}
|
||||
.badge--warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
|
||||
.badge--muted { background: var(--surface-2); color: var(--muted); }
|
||||
|
||||
/* ---------- profile / home ---------- */
|
||||
.profile { display: flex; align-items: center; gap: 28px; padding-top: 56px; padding-bottom: 28px; }
|
||||
.avatar {
|
||||
flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--bg)));
|
||||
color: var(--accent-text); font-weight: 700;
|
||||
}
|
||||
.avatar img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.avatar--lg { width: 112px; height: 112px; font-size: 44px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border); }
|
||||
.profile-name { font-size: clamp(30px, 5vw, 46px); font-weight: 780; }
|
||||
.profile-tagline { margin-top: 8px; color: var(--muted); font-size: 17px; max-width: 60ch; }
|
||||
.profile-stats { margin-top: 12px; color: var(--faint); font-size: 14px; }
|
||||
.profile-stats strong { color: var(--text); font-weight: 650; }
|
||||
@media (max-width: 640px) {
|
||||
.profile { flex-direction: column; text-align: center; gap: 18px; padding-top: 36px; }
|
||||
.profile-tagline { margin-inline: auto; }
|
||||
.avatar--lg { width: 92px; height: 92px; font-size: 36px; }
|
||||
}
|
||||
|
||||
.jump { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
|
||||
.jump::-webkit-scrollbar { display: none; }
|
||||
@media (max-width: 640px) { .jump { justify-content: flex-start; } }
|
||||
|
||||
.shelf { margin-top: 44px; }
|
||||
.shelf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
|
||||
.shelf-icon {
|
||||
flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
|
||||
background: var(--accent-soft); color: var(--accent);
|
||||
}
|
||||
.shelf-icon .icon { width: 20px; height: 20px; }
|
||||
.shelf-titles { flex: 1; min-width: 0; }
|
||||
.shelf-head h2 { font-size: 22px; font-weight: 720; }
|
||||
.shelf-head h2 a { text-decoration: none; }
|
||||
.shelf-head h2 a:hover { color: var(--accent); }
|
||||
.shelf-desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
|
||||
.see-all {
|
||||
display: inline-flex; align-items: center; gap: 6px; flex: none;
|
||||
color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 550;
|
||||
padding: 6px 10px; border-radius: 8px;
|
||||
}
|
||||
.see-all:hover { color: var(--accent); background: var(--accent-soft); }
|
||||
|
||||
/* ---------- ranked items: grid ---------- */
|
||||
.items { list-style: none; margin: 0; padding: 0; }
|
||||
.items--grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
|
||||
.items--grid.aspect-square { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
|
||||
@media (max-width: 640px) {
|
||||
.items--grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 12px; }
|
||||
.items--grid.aspect-square { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
|
||||
}
|
||||
.item-btn {
|
||||
all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px;
|
||||
width: 100%; cursor: pointer; border-radius: var(--radius-art);
|
||||
}
|
||||
.item-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
||||
.item-art {
|
||||
position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3;
|
||||
border-radius: var(--radius-art); background: var(--surface-2);
|
||||
box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent) inset, 0 6px 18px rgba(0, 0, 0, 0.18);
|
||||
transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
|
||||
}
|
||||
.aspect-square .item-art { aspect-ratio: 1; }
|
||||
.item-art img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.item-btn:hover .item-art { transform: translateY(-4px); box-shadow: var(--shadow); }
|
||||
.art-fallback {
|
||||
position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint);
|
||||
background: linear-gradient(160deg, var(--surface-2), var(--surface));
|
||||
}
|
||||
.art-fallback .icon { width: 34%; height: 34%; stroke-width: 1.4; }
|
||||
.rank-badge {
|
||||
position: absolute; left: 8px; top: 8px; min-width: 28px; height: 28px; padding: 0 8px;
|
||||
display: grid; place-items: center; border-radius: 8px;
|
||||
background: rgba(10, 10, 14, 0.72); color: #fff;
|
||||
backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
|
||||
font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.item--top1 .rank-badge { background: var(--gold); color: #1b1405; }
|
||||
.item--top2 .rank-badge { background: var(--silver); color: #14171d; }
|
||||
.item--top3 .rank-badge { background: var(--bronze); color: #1d1008; }
|
||||
.item-rank { display: none; }
|
||||
.item-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
||||
.item-title { font-weight: 620; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.item-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.dot { margin: 0 6px; color: var(--faint); }
|
||||
.items--grid .item-note { display: none; }
|
||||
.item-tags { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
|
||||
.item-tags .badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; }
|
||||
.item-year { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; flex: none; }
|
||||
|
||||
/* ---------- ranked items: rows ---------- */
|
||||
.items--rows { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
|
||||
.items--rows .item { border-bottom: 1px solid var(--border); }
|
||||
.items--rows .item-btn {
|
||||
flex-direction: row; align-items: center; gap: 18px; padding: 12px 10px; border-radius: 0;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
.items--rows .item-btn:hover { background: var(--surface); }
|
||||
.items--rows .item-btn:hover .item-art { transform: none; }
|
||||
.items--rows .item-art { order: 2; width: 58px; flex: none; border-radius: calc(var(--radius-art) * 0.7); box-shadow: none; }
|
||||
.items--rows .rank-badge { display: none; }
|
||||
.items--rows .item-rank {
|
||||
order: 1; display: block; width: 3.2ch; flex: none; text-align: right;
|
||||
font: 700 22px/1 var(--font-display); color: var(--faint); font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.items--rows .item--top1 .item-rank { color: var(--gold); }
|
||||
.items--rows .item--top2 .item-rank { color: var(--silver); }
|
||||
.items--rows .item--top3 .item-rank { color: var(--bronze); }
|
||||
.items--rows .item-body { order: 3; flex: 1; }
|
||||
.items--rows .item-title { font-size: 16px; -webkit-line-clamp: 1; }
|
||||
.items--rows .item-note { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
|
||||
@media (min-width: 900px) {
|
||||
.page-home .items--rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
|
||||
.page-home .items--rows .item:nth-child(-n+2) { border-top: 1px solid var(--border); }
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.items--rows .item-btn { gap: 12px; padding: 10px 4px; }
|
||||
.items--rows .item-art { width: 48px; }
|
||||
.items--rows .item-rank { font-size: 18px; }
|
||||
}
|
||||
|
||||
/* ---------- list page ---------- */
|
||||
.list-hero { position: relative; overflow: hidden; padding: 28px 0 34px; border-bottom: 1px solid var(--border); }
|
||||
.list-hero-backdrop { position: absolute; inset: 0; z-index: 0; }
|
||||
.list-hero-backdrop img {
|
||||
width: 100%; height: 100%; object-fit: cover; transform: scale(1.3);
|
||||
filter: blur(60px) saturate(1.4); opacity: 0.35;
|
||||
}
|
||||
.list-hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%); }
|
||||
.list-hero-inner { position: relative; z-index: 1; }
|
||||
.back-link {
|
||||
display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
|
||||
color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
|
||||
}
|
||||
.back-link:hover { color: var(--text); }
|
||||
.list-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
|
||||
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
|
||||
.list-title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; margin-top: 8px; }
|
||||
.list-desc { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 70ch; }
|
||||
.list-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 550; }
|
||||
.list-actions { display: flex; align-items: center; gap: 10px; }
|
||||
.list-body { padding-top: 30px; }
|
||||
|
||||
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); }
|
||||
.segmented button { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: calc(var(--radius) - 2px); background: none; color: var(--muted); cursor: pointer; }
|
||||
.segmented button:hover { color: var(--text); }
|
||||
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
|
||||
|
||||
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
|
||||
.pager:empty { display: none; }
|
||||
.pager-btn {
|
||||
display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px;
|
||||
border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
|
||||
text-decoration: none; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--text);
|
||||
}
|
||||
.pager-btn:hover { border-color: var(--accent); }
|
||||
.pager-btn.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
||||
.pager-gap { color: var(--faint); padding: 0 4px; }
|
||||
|
||||
/* ---------- empty / error ---------- */
|
||||
.empty { text-align: center; padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
|
||||
.empty-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
|
||||
.empty-art .icon { width: 32px; height: 32px; }
|
||||
.empty h1, .empty h2 { font-size: 26px; }
|
||||
.empty p { color: var(--muted); max-width: 46ch; }
|
||||
.empty .btn { margin-top: 14px; }
|
||||
.error-code { font: 800 64px/1 var(--font-display); color: var(--accent); }
|
||||
|
||||
/* ---------- dialogs ---------- */
|
||||
dialog {
|
||||
padding: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px);
|
||||
background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
|
||||
max-width: min(640px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 48px);
|
||||
}
|
||||
dialog::backdrop { background: rgba(5, 6, 10, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
|
||||
dialog[open] { animation: pop 0.18s cubic-bezier(.2,.8,.2,1); }
|
||||
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
|
||||
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
|
||||
.dialog-head h2 { font-size: 19px; font-weight: 700; }
|
||||
.dialog-body { padding: 18px 20px; }
|
||||
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }
|
||||
.dialog-foot .spacer { flex: 1; }
|
||||
|
||||
.item-dialog { max-width: min(860px, calc(100vw - 32px)); overflow: hidden; }
|
||||
.item-dialog-inner { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; max-height: calc(100dvh - 48px); }
|
||||
.item-dialog .dlg-art { position: relative; background: var(--surface-2); }
|
||||
.item-dialog .dlg-art img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.item-dialog .dlg-art .art-fallback .icon { width: 30%; height: 30%; }
|
||||
.item-dialog.is-square .item-dialog-inner { grid-template-columns: minmax(220px, 360px) 1fr; }
|
||||
.item-dialog.is-square .dlg-art { aspect-ratio: 1; align-self: start; }
|
||||
.dlg-body { position: relative; padding: 28px 28px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
|
||||
.dlg-close { position: absolute; top: 10px; right: 10px; }
|
||||
.dlg-rank { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 550; padding-right: 36px; }
|
||||
.dlg-rank strong { font: 800 30px/1 var(--font-display); color: var(--accent); }
|
||||
.dlg-rank.top1 strong { color: var(--gold); }
|
||||
.dlg-rank.top2 strong { color: var(--silver); }
|
||||
.dlg-rank.top3 strong { color: var(--bronze); }
|
||||
.dlg-title { font-size: 28px; font-weight: 780; }
|
||||
.dlg-sub { color: var(--muted); font-size: 15px; margin-top: -4px; }
|
||||
.dlg-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 14px; }
|
||||
.dlg-meta dt { color: var(--faint); }
|
||||
.dlg-meta dd { margin: 0; }
|
||||
.dlg-note {
|
||||
margin: 4px 0 0; padding: 14px 16px; border-left: 3px solid var(--accent);
|
||||
background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0;
|
||||
font-size: 15px; white-space: pre-line;
|
||||
}
|
||||
.dlg-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
|
||||
.dlg-nav { margin-left: auto; display: flex; gap: 4px; }
|
||||
@media (max-width: 680px) {
|
||||
.item-dialog-inner, .item-dialog.is-square .item-dialog-inner { grid-template-columns: 1fr; overflow-y: auto; }
|
||||
.item-dialog .dlg-art { max-height: 46vh; aspect-ratio: auto; }
|
||||
.item-dialog .dlg-art img { max-height: 46vh; object-fit: contain; background: var(--surface-2); }
|
||||
.item-dialog .dlg-art .art-fallback { position: static; height: 180px; }
|
||||
.dlg-body { overflow: visible; padding: 22px 20px 20px; }
|
||||
.dlg-title { font-size: 23px; }
|
||||
}
|
||||
|
||||
/* ---------- forms ---------- */
|
||||
.stack { display: flex; flex-direction: column; gap: 16px; }
|
||||
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
||||
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
|
||||
.field-hint { font-size: 12.5px; color: var(--faint); }
|
||||
.field-hint.is-warn { color: var(--warn); }
|
||||
.field-hint.is-error { color: var(--danger); }
|
||||
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
|
||||
width: 100%; height: 40px; padding: 0 12px;
|
||||
background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
|
||||
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 220px; tab-size: 2; }
|
||||
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
||||
input::placeholder, textarea::placeholder { color: var(--faint); }
|
||||
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
|
||||
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
|
||||
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
|
||||
.input-group { display: flex; gap: 8px; }
|
||||
.input-group > input { flex: 1; }
|
||||
|
||||
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
|
||||
.alert .icon { margin-top: 2px; }
|
||||
.alert--error { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
|
||||
.alert--info { background: var(--accent-soft); color: var(--text); }
|
||||
.alert--warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--text); }
|
||||
|
||||
/* ---------- auth ---------- */
|
||||
.page-auth main { display: grid; place-items: center; padding: 48px 16px; }
|
||||
.auth-card {
|
||||
width: 100%; max-width: 400px; padding: 34px 30px 26px;
|
||||
background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px);
|
||||
box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
|
||||
}
|
||||
.auth-card h1 { font-size: 26px; }
|
||||
.auth-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
|
||||
.auth-mark .icon { width: 22px; height: 22px; }
|
||||
.auth-back { display: inline-flex; align-items: center; gap: 6px; justify-content: center; color: var(--faint); font-size: 13px; text-decoration: none; margin-top: 4px; }
|
||||
.auth-back:hover { color: var(--text); }
|
||||
|
||||
/* ---------- toasts ---------- */
|
||||
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
|
||||
.toast {
|
||||
display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px;
|
||||
background: var(--text); color: var(--bg); font-size: 14px; font-weight: 550; box-shadow: var(--shadow);
|
||||
animation: toast-in 0.2s ease-out; pointer-events: auto;
|
||||
}
|
||||
.toast--error { background: var(--danger); color: #fff; }
|
||||
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all 0.2s; }
|
||||
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
|
||||
|
||||
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.7s linear infinite; flex: none; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* ==========================================================================
|
||||
Admin
|
||||
========================================================================== */
|
||||
.admin { padding-top: 32px; }
|
||||
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
|
||||
.admin-head h1 { font-size: 30px; font-weight: 780; }
|
||||
.admin-head p { margin-top: 4px; }
|
||||
.admin-head-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
|
||||
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.admin .back-link { margin-bottom: 14px; }
|
||||
|
||||
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 18px; }
|
||||
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
|
||||
.panel-head h2 { font-size: 17px; font-weight: 700; }
|
||||
|
||||
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: -8px 0 24px; }
|
||||
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
|
||||
|
||||
/* list dashboard */
|
||||
.admin-lists { display: flex; flex-direction: column; gap: 10px; }
|
||||
.list-card {
|
||||
display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 8px;
|
||||
background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px);
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
.list-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
|
||||
.list-card-main { flex: 1; min-width: 0; text-decoration: none; display: flex; align-items: center; gap: 14px; }
|
||||
.list-card-covers { display: flex; flex: none; }
|
||||
.list-card-covers span { width: 34px; height: 48px; border-radius: 5px; background: var(--surface-2) center / cover; border: 2px solid var(--surface); margin-left: -14px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
|
||||
.list-card-covers span:first-child { margin-left: 0; }
|
||||
.list-card-covers.is-square span { height: 34px; }
|
||||
.list-card-title { display: block; font-weight: 650; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.list-card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 2px; flex-wrap: wrap; }
|
||||
.list-card-bar { width: 80px; height: 4px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
|
||||
.list-card-bar span { display: block; height: 100%; background: var(--accent); }
|
||||
.list-card-actions { display: flex; gap: 2px; }
|
||||
|
||||
.onboard { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: calc(var(--radius) + 6px); }
|
||||
.onboard h2 { font-size: 22px; margin-bottom: 6px; }
|
||||
.onboard p { color: var(--muted); }
|
||||
.quick-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
|
||||
|
||||
.cat-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
|
||||
@media (max-width: 480px) { .cat-picker { grid-template-columns: repeat(2, 1fr); } }
|
||||
.cat-option { position: relative; }
|
||||
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
|
||||
.cat-option span, .quick-cats button {
|
||||
display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
|
||||
border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
|
||||
font-size: 13.5px; font-weight: 550; cursor: pointer; text-align: center; color: var(--text);
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
}
|
||||
.cat-option .icon, .quick-cats .icon { width: 22px; height: 22px; color: var(--accent); }
|
||||
.cat-option span:hover, .quick-cats button:hover { border-color: var(--accent); }
|
||||
.cat-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
|
||||
.cat-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.cat-option input:disabled + span { opacity: 0.45; cursor: not-allowed; }
|
||||
.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.size-chips button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 13px; font-weight: 600; }
|
||||
.size-chips button:hover { border-color: var(--accent); }
|
||||
.size-chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
|
||||
|
||||
/* list editor */
|
||||
.editor { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 20px; align-items: start; }
|
||||
.editor-search { position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; gap: 12px; }
|
||||
.editor-search .panel-head { margin-bottom: 0; }
|
||||
@media (max-width: 900px) {
|
||||
.editor { grid-template-columns: 1fr; }
|
||||
.editor-search { position: static; max-height: none; }
|
||||
}
|
||||
.search-bar { position: relative; display: flex; align-items: center; }
|
||||
.search-bar > .icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
|
||||
.search-bar input { padding-left: 38px !important; padding-right: 38px !important; }
|
||||
.search-bar .spinner { position: absolute; right: 12px; }
|
||||
.search-results { overflow-y: auto; margin: 0 -8px; padding: 0 8px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
|
||||
.search-results:empty { display: none; }
|
||||
.search-msg { color: var(--muted); font-size: 14px; padding: 8px 2px; }
|
||||
.result {
|
||||
display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
|
||||
padding: 8px; border-radius: var(--radius); transition: background 0.12s;
|
||||
}
|
||||
.result:hover { background: var(--surface-2); }
|
||||
.result-art { width: 48px; aspect-ratio: 2 / 3; border-radius: 5px; background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); overflow: hidden; }
|
||||
.result-art img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.is-square .result-art { aspect-ratio: 1; }
|
||||
.result-title { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.result-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.result-overview { color: var(--faint); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
|
||||
.result-added { font-size: 12px; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
|
||||
|
||||
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
||||
.rank-row {
|
||||
display: grid; grid-template-columns: 28px 64px 44px 1fr auto; align-items: center; gap: 10px;
|
||||
padding: 8px 6px; border-radius: var(--radius); background: var(--surface);
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
|
||||
}
|
||||
.rank-row:hover { background: var(--surface-2); }
|
||||
.rank-row.is-dragging { position: relative; z-index: 5; box-shadow: var(--shadow); background: var(--surface-2); border-color: var(--accent); opacity: 0.96; }
|
||||
.rank-row.is-placeholder { background: var(--accent-soft); border: 1px dashed var(--accent); }
|
||||
.rank-row.is-placeholder > * { visibility: hidden; }
|
||||
.rank-row.is-flash { animation: flash 1.2s ease-out; }
|
||||
@keyframes flash { from { background: var(--accent-soft); } }
|
||||
.drag-handle { display: grid; place-items: center; width: 28px; height: 36px; color: var(--faint); cursor: grab; touch-action: none; border: 0; background: none; border-radius: 6px; }
|
||||
.drag-handle:hover { color: var(--text); background: var(--surface-2); }
|
||||
.dragging-active, .dragging-active * { cursor: grabbing !important; user-select: none; }
|
||||
.rank-input {
|
||||
width: 64px !important; height: 34px !important; padding: 0 6px !important; text-align: center;
|
||||
font-weight: 750; font-variant-numeric: tabular-nums; background: transparent !important; border-color: transparent !important;
|
||||
}
|
||||
.rank-input:hover { border-color: var(--border) !important; }
|
||||
.rank-input:focus { background: var(--bg) !important; border-color: var(--accent) !important; }
|
||||
.rank-row .result-art { width: 44px; }
|
||||
.rank-row-body { min-width: 0; }
|
||||
.rank-row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.rank-row-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; align-items: center; }
|
||||
.rank-row-actions { display: flex; gap: 0; }
|
||||
@media (max-width: 640px) {
|
||||
.rank-row { grid-template-columns: 24px 50px 38px 1fr auto; gap: 6px; }
|
||||
.rank-row .result-art { width: 38px; }
|
||||
.rank-input { width: 50px !important; }
|
||||
.rank-row-actions .hide-sm { display: none; }
|
||||
}
|
||||
.rank-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
|
||||
|
||||
/* item editor dialog */
|
||||
.art-edit { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; }
|
||||
.art-edit .result-art { width: 110px; }
|
||||
.art-edit-actions { display: flex; flex-direction: column; gap: 8px; }
|
||||
.art-edit-actions .row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
@media (max-width: 480px) { .art-edit { grid-template-columns: 80px 1fr; } .art-edit .result-art { width: 80px; } }
|
||||
|
||||
/* settings */
|
||||
.settings { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
|
||||
.settings-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
|
||||
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: 14px; }
|
||||
.settings-nav a:hover { background: var(--surface); color: var(--text); }
|
||||
.settings-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
|
||||
.settings-section { scroll-margin-top: 80px; }
|
||||
.settings-section > .panel { display: flex; flex-direction: column; gap: 18px; }
|
||||
.settings-section h2 { font-size: 20px; margin-bottom: 4px; }
|
||||
.settings-section .section-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
|
||||
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; }
|
||||
@media (max-width: 860px) {
|
||||
.settings { grid-template-columns: 1fr; gap: 16px; }
|
||||
.settings-nav { position: static; flex-direction: row; overflow-x: auto; }
|
||||
}
|
||||
.avatar-edit { display: flex; align-items: center; gap: 16px; }
|
||||
.avatar-edit .avatar { width: 72px; height: 72px; font-size: 28px; }
|
||||
|
||||
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
|
||||
.theme-card { position: relative; cursor: pointer; }
|
||||
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
|
||||
.theme-swatch {
|
||||
display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border);
|
||||
background: var(--bg); color: var(--text); transition: border-color 0.15s, transform 0.15s;
|
||||
}
|
||||
.theme-card:hover .theme-swatch { transform: translateY(-2px); }
|
||||
.theme-card input:checked + .theme-swatch { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
||||
.theme-card input:focus-visible + .theme-swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.theme-preview { display: flex; gap: 6px; padding: 12px; background: var(--bg); }
|
||||
.theme-preview i { flex: 1; aspect-ratio: 2 / 3; border-radius: 4px; background: var(--surface-2); }
|
||||
.theme-preview i:first-child { background: var(--accent); }
|
||||
.theme-name { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--surface); font-size: 13px; font-weight: 600; }
|
||||
.theme-kind { color: var(--muted); font-size: 11px; font-weight: 500; }
|
||||
|
||||
.integration { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
|
||||
.integration-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
|
||||
.integration-head h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
|
||||
.integration-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
|
||||
.integration .field-hint a { color: var(--accent); }
|
||||
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
|
||||
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
|
||||
.status.is-ok { color: var(--success); }
|
||||
.status.is-ok::before { background: var(--success); }
|
||||
.status.is-off { color: var(--faint); }
|
||||
.test-result { font-size: 13px; }
|
||||
.test-result.is-ok { color: var(--success); }
|
||||
.test-result.is-error { color: var(--danger); }
|
||||
.radio-cards { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.radio-cards label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 14px; }
|
||||
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
|
||||
.radio-cards input { accent-color: var(--accent); margin: 0; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
/*
|
||||
* TopDeck theme presets.
|
||||
*
|
||||
* Every color on the site comes from these variables, so a custom theme only
|
||||
* needs to override them (Settings → Appearance → Custom CSS), e.g.
|
||||
*
|
||||
* :root, [data-theme] { --accent: #ff4f81; --bg: #120d14; }
|
||||
*/
|
||||
|
||||
:root,
|
||||
[data-theme="midnight"] {
|
||||
color-scheme: dark;
|
||||
--bg: #0f1117;
|
||||
--surface: #171a22;
|
||||
--surface-2: #1f232e;
|
||||
--border: #2a2f3c;
|
||||
--text: #eceef4;
|
||||
--muted: #9aa1b2;
|
||||
--faint: #636a7c;
|
||||
--accent: #8b7dff;
|
||||
--accent-text: #ffffff;
|
||||
--accent-soft: rgba(139, 125, 255, 0.14);
|
||||
--danger: #ff6b7a;
|
||||
--success: #4fd1a1;
|
||||
--warn: #f5b84b;
|
||||
--gold: #f5c451;
|
||||
--silver: #cfd6e4;
|
||||
--bronze: #d99a6c;
|
||||
--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
|
||||
--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--font-display: var(--font);
|
||||
--radius: 10px;
|
||||
--radius-art: 8px;
|
||||
}
|
||||
|
||||
[data-theme="obsidian"] {
|
||||
color-scheme: dark;
|
||||
--bg: #000000;
|
||||
--surface: #0c0c0c;
|
||||
--surface-2: #161616;
|
||||
--border: #262626;
|
||||
--text: #f5f5f5;
|
||||
--muted: #a3a3a3;
|
||||
--faint: #5f5f5f;
|
||||
--accent: #f5f5f5;
|
||||
--accent-text: #000000;
|
||||
--accent-soft: rgba(255, 255, 255, 0.09);
|
||||
--shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
[data-theme="nord"] {
|
||||
color-scheme: dark;
|
||||
--bg: #242933;
|
||||
--surface: #2e3440;
|
||||
--surface-2: #3b4252;
|
||||
--border: #434c5e;
|
||||
--text: #eceff4;
|
||||
--muted: #b4bccb;
|
||||
--faint: #7b8598;
|
||||
--accent: #88c0d0;
|
||||
--accent-text: #1f242d;
|
||||
--accent-soft: rgba(136, 192, 208, 0.15);
|
||||
--danger: #bf616a;
|
||||
--success: #a3be8c;
|
||||
--warn: #ebcb8b;
|
||||
}
|
||||
|
||||
[data-theme="dracula"] {
|
||||
color-scheme: dark;
|
||||
--bg: #21222c;
|
||||
--surface: #282a36;
|
||||
--surface-2: #343746;
|
||||
--border: #44475a;
|
||||
--text: #f8f8f2;
|
||||
--muted: #b6b9cf;
|
||||
--faint: #6272a4;
|
||||
--accent: #ff79c6;
|
||||
--accent-text: #21222c;
|
||||
--accent-soft: rgba(255, 121, 198, 0.14);
|
||||
--danger: #ff5555;
|
||||
--success: #50fa7b;
|
||||
--warn: #f1fa8c;
|
||||
}
|
||||
|
||||
[data-theme="mocha"] {
|
||||
color-scheme: dark;
|
||||
--bg: #181825;
|
||||
--surface: #1e1e2e;
|
||||
--surface-2: #313244;
|
||||
--border: #45475a;
|
||||
--text: #cdd6f4;
|
||||
--muted: #a6adc8;
|
||||
--faint: #6c7086;
|
||||
--accent: #cba6f7;
|
||||
--accent-text: #1e1e2e;
|
||||
--accent-soft: rgba(203, 166, 247, 0.14);
|
||||
--danger: #f38ba8;
|
||||
--success: #a6e3a1;
|
||||
--warn: #f9e2af;
|
||||
}
|
||||
|
||||
[data-theme="rose-pine"] {
|
||||
color-scheme: dark;
|
||||
--bg: #191724;
|
||||
--surface: #1f1d2e;
|
||||
--surface-2: #26233a;
|
||||
--border: #393552;
|
||||
--text: #e0def4;
|
||||
--muted: #a8a4c4;
|
||||
--faint: #6e6a86;
|
||||
--accent: #ebbcba;
|
||||
--accent-text: #191724;
|
||||
--accent-soft: rgba(235, 188, 186, 0.14);
|
||||
--danger: #eb6f92;
|
||||
--success: #9ccfd8;
|
||||
--warn: #f6c177;
|
||||
}
|
||||
|
||||
[data-theme="gruvbox"] {
|
||||
color-scheme: dark;
|
||||
--bg: #1d2021;
|
||||
--surface: #282828;
|
||||
--surface-2: #32302f;
|
||||
--border: #45403d;
|
||||
--text: #ebdbb2;
|
||||
--muted: #bdae93;
|
||||
--faint: #7c6f64;
|
||||
--accent: #fe8019;
|
||||
--accent-text: #1d2021;
|
||||
--accent-soft: rgba(254, 128, 25, 0.14);
|
||||
--danger: #fb4934;
|
||||
--success: #b8bb26;
|
||||
--warn: #fabd2f;
|
||||
}
|
||||
|
||||
[data-theme="forest"] {
|
||||
color-scheme: dark;
|
||||
--bg: #0f1612;
|
||||
--surface: #151f19;
|
||||
--surface-2: #1c2921;
|
||||
--border: #29392f;
|
||||
--text: #e4efe7;
|
||||
--muted: #9fb5a6;
|
||||
--faint: #62786a;
|
||||
--accent: #7fd49b;
|
||||
--accent-text: #0f1612;
|
||||
--accent-soft: rgba(127, 212, 155, 0.13);
|
||||
}
|
||||
|
||||
[data-theme="synthwave"] {
|
||||
color-scheme: dark;
|
||||
--bg: #140b24;
|
||||
--surface: #1d1133;
|
||||
--surface-2: #281846;
|
||||
--border: #3b2663;
|
||||
--text: #f4eaff;
|
||||
--muted: #bca8dc;
|
||||
--faint: #7a649e;
|
||||
--accent: #ff4fd8;
|
||||
--accent-text: #140b24;
|
||||
--accent-soft: rgba(255, 79, 216, 0.15);
|
||||
--warn: #ffd166;
|
||||
--success: #36f1cd;
|
||||
--shadow: 0 10px 40px rgba(255, 79, 216, 0.12);
|
||||
}
|
||||
|
||||
[data-theme="daylight"] {
|
||||
color-scheme: light;
|
||||
--bg: #f6f7f9;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #eef0f4;
|
||||
--border: #e0e3ea;
|
||||
--text: #15171c;
|
||||
--muted: #5d6475;
|
||||
--faint: #9299a8;
|
||||
--accent: #5b4ef0;
|
||||
--accent-text: #ffffff;
|
||||
--accent-soft: rgba(91, 78, 240, 0.1);
|
||||
--danger: #d93a4b;
|
||||
--success: #17915f;
|
||||
--warn: #b7791f;
|
||||
--gold: #d69e1a;
|
||||
--silver: #8f98a8;
|
||||
--bronze: #b8734a;
|
||||
--shadow: 0 10px 30px rgba(20, 24, 40, 0.1);
|
||||
}
|
||||
|
||||
[data-theme="paper"] {
|
||||
color-scheme: light;
|
||||
--bg: #f4efe6;
|
||||
--surface: #fbf8f2;
|
||||
--surface-2: #ece5d8;
|
||||
--border: #ddd3c2;
|
||||
--text: #2b2520;
|
||||
--muted: #6e6457;
|
||||
--faint: #a2978a;
|
||||
--accent: #b5452f;
|
||||
--accent-text: #fbf8f2;
|
||||
--accent-soft: rgba(181, 69, 47, 0.1);
|
||||
--danger: #b5452f;
|
||||
--success: #3f7d4f;
|
||||
--warn: #a8741a;
|
||||
--gold: #b88a1b;
|
||||
--silver: #8a8a8a;
|
||||
--bronze: #a0623b;
|
||||
--shadow: 0 10px 30px rgba(60, 40, 20, 0.1);
|
||||
--font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
|
||||
--radius: 4px;
|
||||
--radius-art: 3px;
|
||||
}
|
||||
|
||||
[data-theme="latte"] {
|
||||
color-scheme: light;
|
||||
--bg: #eff1f5;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #e6e9ef;
|
||||
--border: #ccd0da;
|
||||
--text: #4c4f69;
|
||||
--muted: #6c6f85;
|
||||
--faint: #9ca0b0;
|
||||
--accent: #8839ef;
|
||||
--accent-text: #ffffff;
|
||||
--accent-soft: rgba(136, 57, 239, 0.1);
|
||||
--danger: #d20f39;
|
||||
--success: #40a02b;
|
||||
--warn: #df8e1d;
|
||||
--gold: #df8e1d;
|
||||
--silver: #8c8fa1;
|
||||
--bronze: #c06d3a;
|
||||
--shadow: 0 10px 30px rgba(76, 79, 105, 0.12);
|
||||
}
|
||||
Reference in new issue
Block a user