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