fix: Smooth scrolling

Smooth scrolling wasn't working due to the `scroll-behavior` being under body, not html. This commit moves it to html and makes it in Tailwind CSS format.
This commit is contained in:
Gabriel Cozma
2024-08-31 11:23:36 +03:00
parent 2867536722
commit 62f613bb8b

View File

@@ -85,12 +85,13 @@
} }
@layer base { @layer base {
html {
@apply scroll-smooth;
}
* { * {
@apply border-border; @apply border-border;
} }
body { body {
@apply bg-background text-foreground; @apply bg-background text-foreground;
scroll-behavior: smooth;
} }
} }