Skip to content

Commit

Permalink
Customize scroll-bar style (#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinMacheda committed May 3, 2024
1 parent ce2d8e5 commit c6182ab
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions uikit/src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 45,7 @@
--border: 20 5.9% 90%;
--input: 20 5.9% 90%;
--ring: 20 14.3% 4.1%;
--scroll-bar: 60, 3%, 86%;

.primary-blue {
--primary: 221 83% 53%;
Expand Down
35 changes: 35 additions & 0 deletions uikit/src/scroll-area/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 21,38 @@
@apply bg-border relative z-50 w-[10px] rounded-full;
}
}

// Customized scroll bar
::-webkit-scrollbar {
width: 7px;
}

::-webkit-scrollbar-thumb {
background-color: hsl(var(--scroll-bar));
border-radius: 4px;
}

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

::-webkit-scrollbar-corner {
background-color: hsl(var(--background));
}

::-moz-scrollbar {
width: 7px;
}

::-moz-scrollbar-thumb {
background-color: hsl(var(--scroll-bar));
border-radius: 4px;
}

::-moz-scrollbar-track {
background-color: hsl(var(--background));
}

::-moz-scrollbar-corner {
background-color: hsl(var(--background));
}

0 comments on commit c6182ab

Please sign in to comment.