Skip to content

Instantly share code, notes, and snippets.

@maxcraftsman
Last active September 26, 2024 17:52
Show Gist options
  • Save maxcraftsman/f10bf7a47f3dd02ce8c7844937dc3a6a to your computer and use it in GitHub Desktop.
Save maxcraftsman/f10bf7a47f3dd02ce8c7844937dc3a6a to your computer and use it in GitHub Desktop.
select2 scrollbar styles
.select2-results__options::-webkit-scrollbar {
width: 16px;
background-clip: padding-box;
}
.select2-results__options::-webkit-scrollbar-track {
background-color: #F4F4F4;
height: 8px;
background-clip: padding-box;
border-right: 10px solid rgba(0, 0, 0, 0);
border-top: 10px solid rgba(0, 0, 0, 0);
border-bottom: 10px solid rgba(0, 0, 0, 0);
}
.select2-results__options::-webkit-scrollbar-thumb {
background-clip: padding-box;
background-color: #0F2464;
border-right: 10px solid rgba(0, 0, 0, 0);
border-top: 10px solid rgba(0, 0, 0, 0);
border-bottom: 10px solid rgba(0, 0, 0, 0);
}
.select2-results__options::-webkit-scrollbar-button {
display: none;
}
@aa-hridoy
Copy link

how to border-radius apply here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment