feat(ui): design system foundation
Add semantic design tokens and base primitives to replace the verbose inline var() styling that made the UI feel dated. - Rename colliding Tailwind color tokens (bg-primary/bg-secondary) to semantic names (surface/surface-raised/content/content-muted/brand/line) - Derive hover, overlay, border-strong, accent-muted and elevation tokens once on <body> so they adapt to every theme automatically - Make :root mirror Tokyo Night to kill the first-paint theme flash - Add component primitives in @layer components: .card (surface + soft shadow, no hard border), .btn variants, .input, .chip, .badge, .icon-btn - Add theme-aware status/priority badges and global focus-visible styling - Add an inline-SVG Icon() component (consistent stroke language) to replace the mixed emoji/SVG iconography - Data-drive theme/wood options and add an active-nav helper - Add skeleton shimmer + x-cloak support
This commit is contained in:
+290
-136
@@ -4,83 +4,94 @@
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
/*
|
||||
* Default :root mirrors the Tokyo Night theme so the palette is correct
|
||||
* on first paint, before the theme class is applied to <body> (kills the
|
||||
* theme-flash on load).
|
||||
*/
|
||||
:root {
|
||||
--bg-primary: #1a1b26;
|
||||
--bg-secondary: #16161e;
|
||||
--text-primary: #a9b1d6;
|
||||
--text-secondary: #565f89;
|
||||
--text-primary: #c0caf5;
|
||||
--text-secondary: #9aa5ce;
|
||||
--accent: #7aa2f7;
|
||||
--border: #414868;
|
||||
--border: #2a2e42;
|
||||
|
||||
/* status */
|
||||
--status-success: #9ece6a;
|
||||
--status-warning: #e0af68;
|
||||
--status-danger: #f7768e;
|
||||
--status-info: #7aa2f7;
|
||||
}
|
||||
|
||||
.theme-tokyo-night {
|
||||
--bg-primary: #1a1b26;
|
||||
--bg-secondary: #16161e;
|
||||
--text-primary: #c0caf5;
|
||||
--text-secondary: #c0caf5;
|
||||
--text-secondary: #9aa5ce;
|
||||
--accent: #7aa2f7;
|
||||
--border: #414868;
|
||||
--border: #2a2e42;
|
||||
}
|
||||
|
||||
.theme-dracula {
|
||||
--bg-primary: #282a36;
|
||||
--bg-secondary: #21222c;
|
||||
--text-primary: #f8f8f2;
|
||||
--text-secondary: #6272a4;
|
||||
--text-secondary: #bfbfbf;
|
||||
--accent: #bd93f9;
|
||||
--border: #44475a;
|
||||
--border: #3a3d4d;
|
||||
}
|
||||
|
||||
.theme-nord {
|
||||
--bg-primary: #2e3440;
|
||||
--bg-secondary: #3b4252;
|
||||
--text-primary: #eceff4;
|
||||
--text-secondary: #5e81ac;
|
||||
--text-secondary: #b7c0d2;
|
||||
--accent: #88c0d0;
|
||||
--border: #4c566a;
|
||||
--border: #46577a;
|
||||
}
|
||||
|
||||
.theme-solarized-dark {
|
||||
--bg-primary: #002b36;
|
||||
--bg-secondary: #073642;
|
||||
--text-primary: #93a1a1;
|
||||
--text-secondary: #586e75;
|
||||
--text-primary: #c5d3d3;
|
||||
--text-secondary: #93a1a1;
|
||||
--accent: #2aa198;
|
||||
--border: #586e75;
|
||||
--border: #1d4b58;
|
||||
}
|
||||
|
||||
.theme-monokai {
|
||||
--bg-primary: #272822;
|
||||
--bg-secondary: #3e3d32;
|
||||
--bg-secondary: #1e1f1c;
|
||||
--text-primary: #f8f8f2;
|
||||
--text-secondary: #75715e;
|
||||
--text-secondary: #c8c8b8;
|
||||
--accent: #a6e22e;
|
||||
--border: #49483e;
|
||||
--border: #3e3d32;
|
||||
}
|
||||
|
||||
.theme-one-dark-pro {
|
||||
--bg-primary: #282c34;
|
||||
--bg-secondary: #21252b;
|
||||
--text-primary: #abb2bf;
|
||||
--text-secondary: #5c6370;
|
||||
--text-primary: #d7dbe0;
|
||||
--text-secondary: #9da5b4;
|
||||
--accent: #61dafb;
|
||||
--border: #3e4451;
|
||||
--border: #3a3f4b;
|
||||
}
|
||||
|
||||
.theme-material-dark {
|
||||
--bg-primary: #263238;
|
||||
--bg-secondary: #37474f;
|
||||
--bg-secondary: #1e282d;
|
||||
--text-primary: #eeffff;
|
||||
--text-secondary: #546e7a;
|
||||
--text-secondary: #b0bec5;
|
||||
--accent: #80cbc4;
|
||||
--border: #455a64;
|
||||
--border: #37474f;
|
||||
}
|
||||
|
||||
.theme-catppuccin-mocha {
|
||||
--bg-primary: #1e1e2e;
|
||||
--bg-secondary: #181825;
|
||||
--text-primary: #cdd6f4;
|
||||
--text-secondary: #bac2de;
|
||||
--text-secondary: #a6adc8;
|
||||
--accent: #f38ba8;
|
||||
--border: #313244;
|
||||
}
|
||||
@@ -89,8 +100,8 @@
|
||||
--bg-primary: #24273a;
|
||||
--bg-secondary: #1e2030;
|
||||
--text-primary: #cad3f5;
|
||||
--text-secondary: #b8c0e0;
|
||||
--accent: #f0c6c6;
|
||||
--text-secondary: #a5adcb;
|
||||
--accent: #c6a0f6;
|
||||
--border: #363a4f;
|
||||
}
|
||||
|
||||
@@ -98,106 +109,256 @@
|
||||
--bg-primary: #303446;
|
||||
--bg-secondary: #292c3c;
|
||||
--text-primary: #c6d0f5;
|
||||
--text-secondary: #b5bfe2;
|
||||
--accent: #f2d5cf;
|
||||
--text-secondary: #a5adce;
|
||||
--accent: #ca9ee6;
|
||||
--border: #414559;
|
||||
}
|
||||
|
||||
.theme-catppuccin-latte {
|
||||
--bg-primary: #eff1f5;
|
||||
--bg-secondary: #e6e9ef;
|
||||
--bg-secondary: #ffffff;
|
||||
--text-primary: #4c4f69;
|
||||
--text-secondary: #5c5f77;
|
||||
--text-secondary: #6c6f85;
|
||||
--accent: #d20f39;
|
||||
--border: #bcc0cc;
|
||||
--border: #dcdfe6;
|
||||
}
|
||||
|
||||
/*
|
||||
* Derived tokens — computed once on <body> from the active theme vars so
|
||||
* they adapt automatically to every theme without 11x repetition.
|
||||
*/
|
||||
body {
|
||||
background-color: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
/* hover/overlay surfaces */
|
||||
--surface-hover: color-mix(in srgb, var(--text-primary) 9%, transparent);
|
||||
--surface-overlay: rgba(0, 0, 0, 0.55);
|
||||
|
||||
/* stronger hairline */
|
||||
--border-strong: color-mix(in srgb, var(--text-primary) 24%, var(--border));
|
||||
|
||||
/* soft accent tint (chips, active nav, subtle highlights) */
|
||||
--accent-muted: color-mix(in srgb, var(--accent) 14%, var(--bg-secondary));
|
||||
|
||||
/* elevation */
|
||||
--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
--shadow-card-hover: 0 6px 16px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
|
||||
--shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.34), 0 4px 12px rgba(0, 0, 0, 0.20);
|
||||
--shadow-bar: 0 1px 0 rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
|
||||
/* Header component styles */
|
||||
/* Slightly softer shadows on the lone light theme */
|
||||
.theme-catppuccin-latte {
|
||||
--shadow-card: 0 1px 2px rgba(76, 79, 105, 0.08), 0 1px 3px rgba(76, 79, 105, 0.06);
|
||||
--shadow-card-hover: 0 6px 16px rgba(76, 79, 105, 0.16), 0 2px 6px rgba(76, 79, 105, 0.08);
|
||||
--shadow-pop: 0 12px 40px rgba(76, 79, 105, 0.22), 0 4px 12px rgba(76, 79, 105, 0.12);
|
||||
--shadow-bar: 0 1px 0 rgba(76, 79, 105, 0.08), 0 4px 16px rgba(76, 79, 105, 0.10);
|
||||
}
|
||||
|
||||
/* App-wide keyboard focus affordance (accessibility) */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Hide Alpine-controlled elements until Alpine initialises */
|
||||
[x-cloak] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Header is sticky on every authenticated page, plus docs. */
|
||||
.header-nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* Make header sticky only on docs pages */
|
||||
body:not(.page-docs) .header-nav {
|
||||
position: static;
|
||||
}
|
||||
|
||||
/* Add class to body on docs pages */
|
||||
.page-docs .header-nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
/* Smooth, theme-aware scrollbars */
|
||||
* {
|
||||
scrollbar-color: color-mix(in srgb, var(--text-primary) 22%, transparent) transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
/* ---------- Surfaces ---------- */
|
||||
|
||||
.card {
|
||||
background-color: var(--bg-secondary);
|
||||
border-color: var(--border);
|
||||
border: 1px solid color-mix(in srgb, var(--text-primary) 7%, transparent);
|
||||
border-radius: 0.75rem;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
/* ---------- Buttons ---------- */
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 0.625rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.25rem;
|
||||
transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
|
||||
transform 0.15s ease, border-color 0.15s ease;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
.btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--accent);
|
||||
color: var(--bg-primary);
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
opacity: 0.8;
|
||||
background-color: color-mix(in srgb, var(--accent) 88%, white);
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: transparent;
|
||||
color: var(--accent);
|
||||
border: 1px solid var(--accent);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border-strong);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: color-mix(in srgb, var(--accent) 10%, transparent);
|
||||
background-color: var(--surface-hover);
|
||||
border-color: var(--accent);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
/* TriState Button for has_cover filter */
|
||||
.btn-ghost {
|
||||
background-color: transparent;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.btn-ghost:hover {
|
||||
background-color: var(--surface-hover);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* Base input button style */
|
||||
.btn-danger {
|
||||
background-color: var(--status-danger);
|
||||
color: #fff;
|
||||
}
|
||||
.btn-danger:hover {
|
||||
background-color: color-mix(in srgb, var(--status-danger) 88%, white);
|
||||
}
|
||||
|
||||
/* ---------- Icon button (square, subtle) ---------- */
|
||||
.icon-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
border-radius: 0.625rem;
|
||||
color: var(--text-secondary);
|
||||
transition: background-color 0.15s ease, color 0.15s ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
.icon-btn:hover {
|
||||
background-color: var(--surface-hover);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* ---------- Inputs ---------- */
|
||||
.input {
|
||||
width: 100%;
|
||||
background-color: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 0.625rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
.input::placeholder {
|
||||
color: color-mix(in srgb, var(--text-secondary) 75%, transparent);
|
||||
}
|
||||
.input:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* ---------- Chips & badges ---------- */
|
||||
.chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
background-color: var(--accent-muted);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.125rem 0.5rem;
|
||||
border-radius: 0.375rem;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
/* ---------- Book card (the atomic unit) ---------- */
|
||||
.book-card {
|
||||
background-color: var(--bg-secondary);
|
||||
border: 1px solid color-mix(in srgb, var(--text-primary) 6%, transparent);
|
||||
border-radius: 0.625rem;
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-card);
|
||||
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
|
||||
}
|
||||
.book-card:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: var(--shadow-card-hover);
|
||||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||||
}
|
||||
.book-card-meta {
|
||||
background-color: var(--bg-secondary);
|
||||
padding: 0.5rem 0.625rem;
|
||||
}
|
||||
|
||||
/* ---------- TriState Button (has_cover filter) ---------- */
|
||||
.tristate-btn {
|
||||
background-color: var(--bg-primary);
|
||||
border-width: 1px; /* Ensure 1px border like other inputs */
|
||||
border-style: solid;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.tristate-btn.state-null {
|
||||
border-color: var(--border);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.tristate-btn.state-true {
|
||||
border-color: var(--border);
|
||||
background-color: color-mix(in srgb, var(--accent) 15%, var(--bg-primary));
|
||||
background-color: var(--accent-muted);
|
||||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||||
color: var(--accent);
|
||||
}
|
||||
.tristate-btn.state-false {
|
||||
border-color: var(--border);
|
||||
background-color: color-mix(
|
||||
in srgb,
|
||||
var(--text-secondary) 10%,
|
||||
var(--bg-primary)
|
||||
);
|
||||
background-color: var(--surface-hover);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.tristate-btn:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
display: inline-block;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 4px solid var(--border);
|
||||
border: 3px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
@@ -206,74 +367,77 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- Status / priority semantics ---------- */
|
||||
.status-pending {
|
||||
background-color: #f59e0b;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, var(--status-warning) 20%, transparent);
|
||||
color: var(--status-warning);
|
||||
}
|
||||
.status-processing {
|
||||
background-color: #3b82f6;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, var(--status-info) 20%, transparent);
|
||||
color: var(--status-info);
|
||||
}
|
||||
.status-completed {
|
||||
background-color: #10b981;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, var(--status-success) 20%, transparent);
|
||||
color: var(--status-success);
|
||||
}
|
||||
.status-failed {
|
||||
background-color: #ef4444;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, var(--status-danger) 20%, transparent);
|
||||
color: var(--status-danger);
|
||||
}
|
||||
|
||||
.priority-1 {
|
||||
background-color: #ef4444;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, var(--status-danger) 22%, transparent);
|
||||
color: var(--status-danger);
|
||||
}
|
||||
.priority-2 {
|
||||
background-color: #f97316;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, #f97316 22%, transparent);
|
||||
color: #fb923c;
|
||||
}
|
||||
.priority-3 {
|
||||
background-color: #f59e0b;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, var(--status-warning) 22%, transparent);
|
||||
color: var(--status-warning);
|
||||
}
|
||||
.priority-5 {
|
||||
background-color: #10b981;
|
||||
color: white;
|
||||
background-color: color-mix(in srgb, var(--status-success) 22%, transparent);
|
||||
color: var(--status-success);
|
||||
}
|
||||
.priority-7 {
|
||||
background-color: #6b7280;
|
||||
color: white;
|
||||
background-color: var(--surface-hover);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.priority-10 {
|
||||
background-color: #9ca3af;
|
||||
color: white;
|
||||
background-color: var(--surface-hover);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* Override highlight.js hardcoded colors for code blocks */
|
||||
/* ---------- Docs / highlight.js overrides ---------- */
|
||||
.prose pre code.hljs {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.prose code.hljs {
|
||||
background-color: #1a1b26 !important;
|
||||
background-color: var(--bg-primary) !important;
|
||||
padding: 0.2em 0.4em;
|
||||
}
|
||||
|
||||
.prose pre {
|
||||
background-color: #16161e !important;
|
||||
background-color: var(--bg-secondary) !important;
|
||||
}
|
||||
|
||||
.prose .hljs {
|
||||
background-color: transparent !important;
|
||||
color: #c0caf5 !important;
|
||||
color: var(--text-primary) !important;
|
||||
}
|
||||
|
||||
/* Active/inactive states for theme and wood paneling buttons */
|
||||
/* ---------- Theme / wood picker active states ---------- */
|
||||
.bg-theme-active,
|
||||
.bg-wood-active {
|
||||
background-color: var(--bg-primary) !important;
|
||||
box-shadow: inset 0 0 0 2px var(--accent);
|
||||
}
|
||||
.bg-theme-inactive,
|
||||
.bg-wood-inactive {
|
||||
background-color: var(--bg-secondary) !important;
|
||||
}
|
||||
|
||||
/* Wood background positioning for seamless alignment */
|
||||
/* ---------- Wood paneling (optional bookshelf background) ---------- */
|
||||
.bg-wood-dark,
|
||||
.bg-wood-light,
|
||||
.bg-wood-mahogany {
|
||||
@@ -282,7 +446,6 @@
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/* Ensure body and container align perfectly */
|
||||
body.bg-wood-dark,
|
||||
body.bg-wood-light,
|
||||
body.bg-wood-mahogany,
|
||||
@@ -294,34 +457,23 @@
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.bg-theme-inactive,
|
||||
.bg-wood-inactive {
|
||||
background-color: var(--bg-secondary) !important;
|
||||
}
|
||||
|
||||
/* Smart text colors for wood paneling backgrounds */
|
||||
/* Wood Light - needs dark text for contrast */
|
||||
#collections-container[data-wood="wood-light"] {
|
||||
--wood-text-primary: #1a1a1a;
|
||||
--wood-text-secondary: #4a4a4a;
|
||||
--wood-border: #8b5a2b;
|
||||
}
|
||||
|
||||
/* Wood Dark - needs light text */
|
||||
#collections-container[data-wood="wood-dark"] {
|
||||
--wood-text-primary: #f5f5f5;
|
||||
--wood-text-secondary: #c0c0c0;
|
||||
--wood-border: #7a5228;
|
||||
}
|
||||
|
||||
/* Wood Mahogany - needs light text (darkest background) */
|
||||
#collections-container[data-wood="wood-mahogany"] {
|
||||
--wood-text-primary: #f5f5f5;
|
||||
--wood-text-secondary: #c0c0c0;
|
||||
--wood-border: #8b3a3a;
|
||||
}
|
||||
|
||||
/* Apply wood-specific text colors to all text within collections container */
|
||||
#collections-container[data-wood] h1,
|
||||
#collections-container[data-wood] h2,
|
||||
#collections-container[data-wood] h3,
|
||||
@@ -331,29 +483,23 @@
|
||||
#collections-container[data-wood] button {
|
||||
color: var(--wood-text-primary) !important;
|
||||
}
|
||||
|
||||
#collections-container[data-wood] .text-secondary {
|
||||
color: var(--wood-text-secondary) !important;
|
||||
}
|
||||
|
||||
/* Links on wood-light need darker color for visibility */
|
||||
#collections-container[data-wood="wood-light"] a {
|
||||
color: #0066cc !important;
|
||||
}
|
||||
/* Links on dark woods use lighter color */
|
||||
#collections-container[data-wood="wood-dark"] a,
|
||||
#collections-container[data-wood="wood-mahogany"] a {
|
||||
color: #66ccff !important;
|
||||
}
|
||||
|
||||
/* Wood Light - use darker gradient */
|
||||
#collections-container[data-wood="wood-light"] .carousel-nav-left {
|
||||
background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
|
||||
}
|
||||
#collections-container[data-wood="wood-light"] .carousel-nav-right {
|
||||
background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
|
||||
}
|
||||
/* Wood Dark/Mahogany - use subtle white/transparent gradient */
|
||||
#collections-container[data-wood="wood-dark"] .carousel-nav-left,
|
||||
#collections-container[data-wood="wood-mahogany"] .carousel-nav-left {
|
||||
background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
|
||||
@@ -362,12 +508,11 @@
|
||||
#collections-container[data-wood="wood-mahogany"] .carousel-nav-right {
|
||||
background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
|
||||
}
|
||||
|
||||
/* Add subtle borders to book cards on wood backgrounds */
|
||||
#collections-container[data-wood] .book-card {
|
||||
border: 1px solid var(--wood-border);
|
||||
}
|
||||
|
||||
/* ---------- Reader ---------- */
|
||||
.reader-icon {
|
||||
display: block;
|
||||
fill: none;
|
||||
@@ -383,19 +528,15 @@
|
||||
transition: max-height 0.2s ease-out;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dockable-panel.panel-collapsed .panel-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.panel-header:hover {
|
||||
background-color: color-mix(in srgb, var(--bg-secondary) 90%, white);
|
||||
background-color: var(--surface-hover);
|
||||
}
|
||||
|
||||
.panel-container {
|
||||
background-color: var(--bg-secondary);
|
||||
border-right: 1px solid var(--border);
|
||||
@@ -403,19 +544,18 @@
|
||||
max-height: calc(100vh - 8rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.panel-container[data-side="right"] {
|
||||
border-right: none;
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
/* ---------- Series stacked covers ---------- */
|
||||
.stacked-covers {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
aspect-ratio: 2 / 3;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.stacked-covers .cover-img {
|
||||
position: absolute;
|
||||
width: 70%;
|
||||
@@ -424,12 +564,10 @@
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-1 .cover-0 {
|
||||
top: 5%;
|
||||
left: 15%;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-2 .cover-0 {
|
||||
top: 8%;
|
||||
left: 5%;
|
||||
@@ -442,7 +580,6 @@
|
||||
transform: rotate(3deg);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-3 .cover-0 {
|
||||
top: 12%;
|
||||
left: 2%;
|
||||
@@ -461,7 +598,6 @@
|
||||
transform: rotate(4deg);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-4 .cover-0 {
|
||||
top: 14%;
|
||||
left: 0;
|
||||
@@ -494,7 +630,6 @@
|
||||
transform: rotate(6deg);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-5 .cover-0,
|
||||
.stacked-covers.cover-count-6 .cover-0,
|
||||
.stacked-covers.cover-count-7 .cover-0 {
|
||||
@@ -505,7 +640,6 @@
|
||||
transform: rotate(-12deg);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-5 .cover-1,
|
||||
.stacked-covers.cover-count-6 .cover-1,
|
||||
.stacked-covers.cover-count-7 .cover-1 {
|
||||
@@ -516,7 +650,6 @@
|
||||
transform: rotate(-6deg);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-5 .cover-2,
|
||||
.stacked-covers.cover-count-6 .cover-2,
|
||||
.stacked-covers.cover-count-7 .cover-2 {
|
||||
@@ -527,7 +660,6 @@
|
||||
transform: rotate(-1deg);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-5 .cover-3,
|
||||
.stacked-covers.cover-count-6 .cover-3,
|
||||
.stacked-covers.cover-count-7 .cover-3 {
|
||||
@@ -538,7 +670,6 @@
|
||||
transform: rotate(4deg);
|
||||
z-index: 4;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-5 .cover-4,
|
||||
.stacked-covers.cover-count-6 .cover-4,
|
||||
.stacked-covers.cover-count-7 .cover-4 {
|
||||
@@ -549,7 +680,6 @@
|
||||
transform: rotate(9deg);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-6 .cover-5,
|
||||
.stacked-covers.cover-count-7 .cover-5 {
|
||||
top: -2%;
|
||||
@@ -559,7 +689,6 @@
|
||||
transform: rotate(13deg);
|
||||
z-index: 6;
|
||||
}
|
||||
|
||||
.stacked-covers.cover-count-7 .cover-6 {
|
||||
top: -4%;
|
||||
left: 25%;
|
||||
@@ -572,8 +701,33 @@
|
||||
.series-card {
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.series-card:hover {
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
/* ---------- Skeleton loading shimmer ---------- */
|
||||
.skeleton {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background-color: var(--surface-hover);
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
.skeleton::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
transform: translateX(-100%);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent,
|
||||
color-mix(in srgb, var(--text-primary) 8%, transparent),
|
||||
transparent
|
||||
);
|
||||
animation: skeleton-shimmer 1.4s infinite;
|
||||
}
|
||||
@keyframes skeleton-shimmer {
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user