Skip to content

Commit

Permalink
Custom scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
holybaechu committed Feb 27, 2024
1 parent c02c22e commit fae5644
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion src/app.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

/* Tailwind doesn't support -webkit-scrollbar selectors :pepoSadge: */
body::-webkit-scrollbar {
background-color: transparent;
width: 5.5px;
}

body::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.4);
border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.6);
}
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div>
<Header />

<main class="min-h-screen overflow-scroll scrollbar">
<main class="min-h-screen">
<slot />
</main>

Expand Down

0 comments on commit fae5644

Please sign in to comment.