From efec1d3f074d164abac88b07de281b84bce95214 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Sun, 11 Sep 2022 15:25:14 +0630 Subject: [PATCH] Refactor body class codes to base.css --- src/layouts/Layout.astro | 4 +--- src/styles/base.css | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index ee9fe96..2a26bc3 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -47,9 +47,7 @@ const { title } = Astro.props; document.querySelector("html").className = theme; - + diff --git a/src/styles/base.css b/src/styles/base.css index d039818..234a46a 100644 --- a/src/styles/base.css +++ b/src/styles/base.css @@ -29,6 +29,9 @@ .theme-dark #sun-svg { display: block; } + body { + @apply font-mono bg-skin-fill text-skin-base min-h-screen flex flex-col; + } section, footer { @apply max-w-3xl mx-auto px-4;