- Toast notifications (sonner): success/error toasts on all mutations - Loading spinners: EntryCard add/remove, ConfirmDialog, EntrySeenDialog, favorite/refresh buttons - Page skeletons: 13 page-specific Suspense fallbacks replacing generic skeleton - CSS animations: card-enter (staggered), page-enter, slide-up-fade keyframes - Mobile layout: hamburger menu with sheet sidebar, responsive entry details - Mobile controls: separate compact filter/sort popovers for Library and Watchlist - Desktop sort: popover menu replacing Select dropdown on Library and Watchlist - Filter ranges: year 1950-2100, rating 0-10
218 lines
6.6 KiB
CSS
218 lines
6.6 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
@import "@fontsource-variable/geist";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--font-heading: var(--font-sans);
|
|
--font-sans: 'Geist Variable', sans-serif;
|
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
}
|
|
|
|
:root {
|
|
--radius: 0.625rem;
|
|
--background: oklch(0.15 0.01 260);
|
|
--foreground: oklch(0.95 0.01 260);
|
|
--card: oklch(0.18 0.01 260);
|
|
--card-foreground: oklch(0.95 0.01 260);
|
|
--popover: oklch(0.18 0.01 260);
|
|
--popover-foreground: oklch(0.95 0.01 260);
|
|
--primary: oklch(0.65 0.18 250);
|
|
--primary-foreground: oklch(0.98 0.005 260);
|
|
--secondary: oklch(0.25 0.015 260);
|
|
--secondary-foreground: oklch(0.9 0.01 260);
|
|
--muted: oklch(0.22 0.01 260);
|
|
--muted-foreground: oklch(0.65 0.015 260);
|
|
--accent: oklch(0.25 0.02 260);
|
|
--accent-foreground: oklch(0.95 0.01 260);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--destructive-foreground: oklch(0.98 0.005 260);
|
|
--border: oklch(0.28 0.015 260);
|
|
--input: oklch(0.28 0.015 260);
|
|
--ring: oklch(0.65 0.18 250);
|
|
--chart-1: oklch(0.65 0.18 250);
|
|
--chart-2: oklch(0.6 0.15 160);
|
|
--chart-3: oklch(0.7 0.15 60);
|
|
--chart-4: oklch(0.6 0.2 300);
|
|
--chart-5: oklch(0.65 0.2 30);
|
|
--sidebar: oklch(0.12 0.01 260);
|
|
--sidebar-foreground: oklch(0.95 0.01 260);
|
|
--sidebar-primary: oklch(0.65 0.18 250);
|
|
--sidebar-primary-foreground: oklch(0.98 0.005 260);
|
|
--sidebar-accent: oklch(0.2 0.02 260);
|
|
--sidebar-accent-foreground: oklch(0.95 0.01 260);
|
|
--sidebar-border: oklch(0.25 0.015 260);
|
|
--sidebar-ring: oklch(0.65 0.18 250);
|
|
}
|
|
|
|
.light {
|
|
--background: oklch(0.98 0.005 260);
|
|
--foreground: oklch(0.15 0.02 260);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.15 0.02 260);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.15 0.02 260);
|
|
--primary: oklch(0.55 0.2 250);
|
|
--primary-foreground: oklch(0.98 0.005 260);
|
|
--secondary: oklch(0.93 0.01 260);
|
|
--secondary-foreground: oklch(0.2 0.02 260);
|
|
--muted: oklch(0.93 0.01 260);
|
|
--muted-foreground: oklch(0.45 0.02 260);
|
|
--accent: oklch(0.93 0.01 260);
|
|
--accent-foreground: oklch(0.2 0.02 260);
|
|
--destructive: oklch(0.55 0.2 25);
|
|
--destructive-foreground: oklch(0.98 0.005 260);
|
|
--border: oklch(0.88 0.01 260);
|
|
--input: oklch(0.88 0.01 260);
|
|
--ring: oklch(0.55 0.2 250);
|
|
--chart-1: oklch(0.55 0.2 250);
|
|
--chart-2: oklch(0.55 0.15 160);
|
|
--chart-3: oklch(0.6 0.15 60);
|
|
--chart-4: oklch(0.55 0.2 300);
|
|
--chart-5: oklch(0.6 0.2 30);
|
|
--sidebar: oklch(0.95 0.005 260);
|
|
--sidebar-foreground: oklch(0.15 0.02 260);
|
|
--sidebar-primary: oklch(0.55 0.2 250);
|
|
--sidebar-primary-foreground: oklch(0.98 0.005 260);
|
|
--sidebar-accent: oklch(0.93 0.01 260);
|
|
--sidebar-accent-foreground: oklch(0.2 0.02 260);
|
|
--sidebar-border: oklch(0.88 0.01 260);
|
|
--sidebar-ring: oklch(0.55 0.2 250);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
}
|
|
html {
|
|
@apply font-sans;
|
|
scroll-behavior: smooth;
|
|
}
|
|
}
|
|
|
|
/* Staggered card entrance animation */
|
|
@keyframes card-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px) scale(0.97);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
.animate-card-enter {
|
|
animation: card-enter 0.35s ease-out both;
|
|
}
|
|
|
|
/* Page entrance transition */
|
|
@keyframes page-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.animate-page-enter {
|
|
animation: page-enter 0.3s ease-out both;
|
|
}
|
|
|
|
/* Slide-up for cards on hover */
|
|
@keyframes slide-up-fade {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(4px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.animate-slide-up {
|
|
animation: slide-up-fade 0.2s ease-out both;
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.15 0.01 260);
|
|
--foreground: oklch(0.95 0.01 260);
|
|
--card: oklch(0.18 0.01 260);
|
|
--card-foreground: oklch(0.95 0.01 260);
|
|
--popover: oklch(0.18 0.01 260);
|
|
--popover-foreground: oklch(0.95 0.01 260);
|
|
--primary: oklch(0.65 0.18 250);
|
|
--primary-foreground: oklch(0.98 0.005 260);
|
|
--secondary: oklch(0.25 0.015 260);
|
|
--secondary-foreground: oklch(0.9 0.01 260);
|
|
--muted: oklch(0.22 0.01 260);
|
|
--muted-foreground: oklch(0.65 0.015 260);
|
|
--accent: oklch(0.25 0.02 260);
|
|
--accent-foreground: oklch(0.95 0.01 260);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(0.28 0.015 260);
|
|
--input: oklch(0.28 0.015 260);
|
|
--ring: oklch(0.65 0.18 250);
|
|
--chart-1: oklch(0.65 0.18 250);
|
|
--chart-2: oklch(0.6 0.15 160);
|
|
--chart-3: oklch(0.7 0.15 60);
|
|
--chart-4: oklch(0.6 0.2 300);
|
|
--chart-5: oklch(0.65 0.2 30);
|
|
--sidebar: oklch(0.12 0.01 260);
|
|
--sidebar-foreground: oklch(0.95 0.01 260);
|
|
--sidebar-primary: oklch(0.65 0.18 250);
|
|
--sidebar-primary-foreground: oklch(0.98 0.005 260);
|
|
--sidebar-accent: oklch(0.2 0.02 260);
|
|
--sidebar-accent-foreground: oklch(0.95 0.01 260);
|
|
--sidebar-border: oklch(0.25 0.015 260);
|
|
--sidebar-ring: oklch(0.65 0.18 250);
|
|
}
|