wiki-grav/plugins/admin/themes/grav/scss/template/modules/_scrollbars.scss

19 lines
377 B
SCSS
Raw Permalink Normal View History

@mixin native-scrollbars($bar, $track) {
& {
scrollbar-width: thin;
scrollbar-color: $bar $track;
}
/* Works on Chrome/Edge/Safari */
&::-webkit-scrollbar {
width: 6px;
height: 6px;
}
&::-webkit-scrollbar-track {
background: $track;
}
&::-webkit-scrollbar-thumb {
background-color: $bar;
}
}