Refactor body class codes to base.css

This commit is contained in:
Sat Naing
2022-09-11 15:25:14 +06:30
parent b19fd5d986
commit efec1d3f07
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -47,9 +47,7 @@ const { title } = Astro.props;
document.querySelector("html").className = theme; document.querySelector("html").className = theme;
</script> </script>
</head> </head>
<body <body>
class="font-mono bg-skin-fill text-skin-base min-h-screen flex flex-col"
>
<slot /> <slot />
</body> </body>
</html> </html>
+3
View File
@@ -29,6 +29,9 @@
.theme-dark #sun-svg { .theme-dark #sun-svg {
display: block; display: block;
} }
body {
@apply font-mono bg-skin-fill text-skin-base min-h-screen flex flex-col;
}
section, section,
footer { footer {
@apply max-w-3xl mx-auto px-4; @apply max-w-3xl mx-auto px-4;