Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize scroll-bar style #2857

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Customize scroll-bar style
  • Loading branch information
QuentinMacheda authored and Van-QA committed May 3, 2024
commit 31323c09dcad7d9b85a282aaf2b5a8270aedd62c
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));
}
Loading