Skip to content

Commit

Permalink
customize scrollbar with css
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs committed Aug 15, 2022
1 parent 4ae83e2 commit 0723500
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,35 @@ select {
background-position-x: 100%;
background-position-y: 50%;
}

/* Customize scrollbar on firefox */

* {
scrollbar-width: thin;
scrollbar-color: #18191c #36393e;
}

/* Customize scrollbar for all webkit browsers */

/* total width */
*::-webkit-scrollbar {
background-color: transparent;
width: 14px;
}

/* background of the scrollbar except button or resizer */
*::-webkit-scrollbar-track {
background-color: transparent;
}

/* scrollbar itself */
*::-webkit-scrollbar-thumb {
background-color: #18191c;
border-radius: 16px;
border: 3px solid #36393e;
}

/* set button(top and bottom of the scrollbar) */
*::-webkit-scrollbar-button {
display: none;
}

0 comments on commit 0723500

Please sign in to comment.