Skip to content

Commit

Permalink
Style scrollbar for supported browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhb123 committed Aug 7, 2022
1 parent df28c3f commit 9d52f0d
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,33 @@ $csh-pink: #b0197e;


body {
position: relative;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
overflow: overlay; // For transparent scrollbar
background: white;
}

body {
position: relative;
background: white;
/* Scrollbar (only supported by some browsers) */
::-webkit-scrollbar {
width: 12px;
}

::-webkit-scrollbar-track {
background: transparent;
}

::-webkit-scrollbar-thumb {
box-shadow: inset 0px 0px 10px 10px rgba(0,0,0,0.2);
border: 3px solid transparent;
border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
box-shadow: inset 0px 0px 10px 10px rgba(0, 0, 0, 0.4);
border: 2px solid transparent;
}

.container.spaced {
Expand Down

0 comments on commit 9d52f0d

Please sign in to comment.