mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 03:55:38 -04:00
* Fix mobile pinch zoom and content overlapping header/footer on iOS Safari Add viewport export with maximumScale=1 and userScalable=false to prevent pinch-to-zoom. Add viewportFit=cover for proper safe area support. Fix content rendering above the sticky header and below the fixed mobile tab bar on iOS Safari by adding relative z-0 to the content wrapper, creating a stacking context that keeps page content below both navigation elements. https://claude.ai/code/session_01Re8ndXPAMVMtiHZFVNDK7S * Add safe area inset support for iOS 26 and fix film grain z-index - Add safe-area-inset-top padding to NavBar for notch/Dynamic Island - Add safe-area-inset-left/right to NavBar, main content, and MobileTabBar for landscape mode - Account for safe-area-inset-bottom in content wrapper padding so content isn't hidden behind MobileTabBar + home indicator - Lower film grain overlay z-index from 9999 to 1 to avoid triggering iOS 26 Safari's fixed-element tab tinting behavior https://claude.ai/code/session_01Re8ndXPAMVMtiHZFVNDK7S * Hide ambient glow on mobile where it overwhelms the viewport The 800x600px blurred glow blob dominates narrow mobile screens and clashes with title backdrop images. Hidden below sm breakpoint. https://claude.ai/code/session_01Re8ndXPAMVMtiHZFVNDK7S * Fix asymmetric safe-area insets using separate pl/pr padding The previous px-[max(...,env(safe-area-inset-left))] shorthand applied only the left inset to both sides. Split into separate pl/pr with the correct env() variable for each side. https://claude.ai/code/session_01Re8ndXPAMVMtiHZFVNDK7S --------- Co-authored-by: Claude <noreply@anthropic.com>
176 lines
5.4 KiB
CSS
176 lines
5.4 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-dm-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
--font-display: var(--font-dm-serif);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--radius-2xl: calc(var(--radius) + 8px);
|
|
--radius-3xl: calc(var(--radius) + 12px);
|
|
--radius-4xl: calc(var(--radius) + 16px);
|
|
--color-status-watchlist: var(--status-watchlist);
|
|
--color-status-watching: var(--status-watching);
|
|
--color-status-completed: var(--status-completed);
|
|
}
|
|
|
|
/* Dark cinema — warm charcoal base, amber accent light */
|
|
:root {
|
|
--background: oklch(0.13 0.006 55);
|
|
--foreground: oklch(0.93 0.015 80);
|
|
--card: oklch(0.19 0.008 55);
|
|
--card-foreground: oklch(0.93 0.015 80);
|
|
--popover: oklch(0.21 0.008 55);
|
|
--popover-foreground: oklch(0.93 0.015 80);
|
|
--primary: oklch(0.8 0.14 65);
|
|
--primary-foreground: oklch(0.13 0.006 55);
|
|
--secondary: oklch(0.22 0.008 55);
|
|
--secondary-foreground: oklch(0.85 0.02 80);
|
|
--muted: oklch(0.22 0.008 55);
|
|
--muted-foreground: oklch(0.63 0.02 80);
|
|
--accent: oklch(0.25 0.01 55);
|
|
--accent-foreground: oklch(0.93 0.015 80);
|
|
--destructive: oklch(0.65 0.2 25);
|
|
--border: oklch(1 0.015 65 / 10%);
|
|
--input: oklch(1 0 0 / 12%);
|
|
--ring: oklch(0.8 0.14 65);
|
|
--chart-1: oklch(0.8 0.14 65);
|
|
--chart-2: oklch(0.65 0.15 30);
|
|
--chart-3: oklch(0.58 0.12 260);
|
|
--chart-4: oklch(0.72 0.1 160);
|
|
--chart-5: oklch(0.63 0.15 310);
|
|
--radius: 0.625rem;
|
|
--sidebar: oklch(0.11 0.006 55);
|
|
--sidebar-foreground: oklch(0.93 0.015 80);
|
|
--sidebar-primary: oklch(0.8 0.14 65);
|
|
--sidebar-primary-foreground: oklch(0.13 0.006 55);
|
|
--sidebar-accent: oklch(0.22 0.008 55);
|
|
--sidebar-accent-foreground: oklch(0.93 0.015 80);
|
|
--sidebar-border: oklch(1 0.015 65 / 10%);
|
|
--sidebar-ring: oklch(0.8 0.14 65);
|
|
--status-watchlist: oklch(0.72 0.12 220);
|
|
--status-watching: oklch(0.78 0.14 65);
|
|
--status-completed: oklch(0.75 0.14 155);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
/* Film grain texture overlay */
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
opacity: 0.015;
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
/* Restore hand cursor on interactive elements */
|
|
/* https://ui.shadcn.com/docs/components/radix/button#cursor */
|
|
button:not(:disabled),
|
|
[role="button"]:not(:disabled),
|
|
[role="switch"]:not(:disabled) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: oklch(1 0 0 / 15%);
|
|
border-radius: 3px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: oklch(1 0 0 / 25%);
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
/* Horizontal scroll row for feeds */
|
|
.no-scrollbar {
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* Allow tilt/scale effects to overflow carousel viewport vertically */
|
|
.carousel-tilt > [data-slot="carousel-content"] {
|
|
overflow-x: clip;
|
|
overflow-y: visible;
|
|
}
|
|
|
|
/* CSS stagger animation — plays immediately from SSR without waiting for JS hydration */
|
|
.animate-stagger-item {
|
|
animation: stagger-fade-in 0.35s ease-out both;
|
|
animation-delay: calc(var(--stagger-index, 0) * 0.04s);
|
|
}
|
|
}
|
|
|
|
@keyframes stagger-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.animate-stagger-item,
|
|
.animate-pulse {
|
|
animation: none;
|
|
}
|
|
}
|