1 |
|
2 | const scrollBar = {
|
3 | track: '#2b2b2b',
|
4 | thumb: '#6b6b6b',
|
5 | active: '#959595'
|
6 | };
|
7 | export default function darkScrollbar(options = scrollBar) {
|
8 | return {
|
9 | scrollbarColor: `${options.thumb} ${options.track}`,
|
10 | '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
11 | backgroundColor: options.track
|
12 | },
|
13 | '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
14 | borderRadius: 8,
|
15 | backgroundColor: options.thumb,
|
16 | minHeight: 24,
|
17 | border: `3px solid ${options.track}`
|
18 | },
|
19 | '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
20 | backgroundColor: options.active
|
21 | },
|
22 | '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
23 | backgroundColor: options.active
|
24 | },
|
25 | '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
26 | backgroundColor: options.active
|
27 | },
|
28 | '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
29 | backgroundColor: options.track
|
30 | }
|
31 | };
|
32 | } |
\ | No newline at end of file |