From 13cdeb1a8107c00f0c05a869d13781dbbec362ad Mon Sep 17 00:00:00 2001 From: rxyhn Date: Thu, 12 Sep 2024 01:36:48 +0700 Subject: [PATCH] chore: update css --- src/styles/global.css | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 8d5f171..4ddacd4 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -21,35 +21,24 @@ } html { - overflow-y: scroll; + @apply overflow-y-scroll font-sans antialiased; color-scheme: light; - background-color: white; - font-family: "Inter", sans-serif; } html.dark { color-scheme: dark; - background-color: black; } -html, body { - @apply h-full w-full antialiased; - @apply bg-white dark:bg-black; - @apply text-black/75 dark:text-white/75; -} - -body { - @apply relative flex flex-col; + @apply flex min-h-screen flex-col bg-white text-black/75 dark:bg-black dark:text-white/75; } main { - @apply relative flex flex-1 flex-col py-24; + @apply flex-grow py-24; } header { - @apply border-b; - @apply transition-all duration-300 ease-in-out; + @apply border-b transition-all duration-300 ease-in-out; } header:not(.scrolled) { @@ -57,7 +46,5 @@ header:not(.scrolled) { } header.scrolled { - @apply bg-white/75 dark:bg-black/50; - @apply border-black/10 dark:border-white/25; - @apply saturate-200 backdrop-blur-sm; + @apply border-black/10 bg-white/75 saturate-200 backdrop-blur-sm dark:border-white/25 dark:bg-black/50; }