Skip to content

Commit

Permalink
customized scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
HunchakAndrii committed Mar 22, 2024
1 parent b82a80d commit 5d3c6ec
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
10 changes: 10 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -734,4 +734,14 @@ html:has(.mobile-menu.active) {

body {
background-color: #FFEEFC;
}
body::-webkit-scrollbar {
width: 5px;
}
body::-webkit-scrollbar-track {
background: #FFEEFC;
}
body::-webkit-scrollbar-thumb {
background-color: #F9512E;
border-radius: 20px;
}/*# sourceMappingURL=main.css.map */
2 changes: 1 addition & 1 deletion css/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,27 @@ html {
scroll-behavior: smooth;
cursor: url(/src/images/cursor-28px-reverse.png), auto;


&:has(.mobile-menu.active) {
overflow: hidden;
}
}

body {
background-color: $light-pink;

&::-webkit-scrollbar {
width: 5px;
}

&::-webkit-scrollbar-track {
background: $light-pink;
}

&::-webkit-scrollbar-thumb {
background-color: $accent-orange;
border-radius: 20px;
}
}


0 comments on commit 5d3c6ec

Please sign in to comment.