Skip to content

Commit

Permalink
feat: add styled scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ElianCodes committed Aug 31, 2023
2 parents 592cbf4 + 9927ec2 commit b3b2cf4
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,27 @@
filter: drop-shadow(5px 5px 0 rgb(0 0 0 / 1));
}

body {
--sb-track-color: #232E33;
--sb-thumb-color: #0d1117;
--sb-size: 0.5em;

scrollbar-color: var(--sb-thumb-color)
var(--sb-track-color);
}

body::-webkit-scrollbar {
width: var(--sb-size)
}

body::-webkit-scrollbar-track {
background: var(--sb-track-color);
}

body::-webkit-scrollbar-thumb {
background: var(--sb-thumb-color);
}

html {
scroll-behavior: smooth;
}
}

1 comment on commit b3b2cf4

@vercel
Copy link

@vercel vercel bot commented on b3b2cf4 Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.