fix(layout): restore mx-auto centering by scoping CSS reset to @layer base
Unlayered CSS always wins over Tailwind's @layer utilities, so the
bare * { margin: 0 } reset was overriding mx-auto everywhere. Moving
it into @layer base restores correct cascade order.
This commit is contained in:
@@ -38,11 +38,16 @@ export default function RootLayout({
|
||||
className={`${sourceCodePro.variable} bg-[var(--color-bg)] text-[var(--color-text)] font-mono min-h-screen`}
|
||||
>
|
||||
<ThemeProvider>
|
||||
{/* Full-width sticky nav */}
|
||||
<Nav />
|
||||
<main className="max-w-[740px] mx-auto px-6 py-14">
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
|
||||
{/* Centered content column — border-l/r makes centering always visible */}
|
||||
<div className="max-w-[740px] mx-auto border-l border-r border-[var(--color-border)]">
|
||||
<main className="px-8 py-14">
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user