Skip to content

Commit

Permalink
✨ Style scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jnywong committed Dec 17, 2024
1 parent ceb8196 commit 3b06af1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/site/src/components/Navigation/PrimarySidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const PrimarySidebar = ({
},
)}
>
<div className="flex-grow py-6 overflow-y-auto">
<div className="flex-grow py-6 overflow-y-auto primary-scrollbar">
{nav && (
<nav
aria-label="Navigation"
Expand Down
10 changes: 10 additions & 0 deletions styles/toc.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@
height: 0;
}
}

.primary-scrollbar::-webkit-scrollbar {
width: 10px;
height: 10px;
}

.primary-scrollbar::-webkit-scrollbar-thumb {
border-radius: 10px;
@apply bg-slate-300/30
}

0 comments on commit 3b06af1

Please sign in to comment.