Skip to content

Commit

Permalink
add a scrollbar
Browse files Browse the repository at this point in the history
add a scrollbar
  • Loading branch information
arnavravinder authored and iamawatermelo committed Sep 11, 2024
1 parent 219d444 commit 5155afc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,33 @@
url('/fonts/InstrumentSans-asciionly-subset-instanced.woff2') format('woff2');
font-display: swap;
}
html {
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.5) rgba(0, 0, 0, 0.5);
}
html::-webkit-scrollbar {
width: 0.5rem;
}
html::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.5);
}
html::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.5);
border-radius: 0.25rem;
}
html::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.7);
}
@media (prefers-reduced-motion: reduce) {
html::-webkit-scrollbar-thumb {
transition: none;
}
}
:global(:root) {
font-family: 'Zenith Sans ASCII', 'Zenith Sans', system-ui, sans-serif;
line-height: 1.5;
Expand Down

0 comments on commit 5155afc

Please sign in to comment.