paradiego
This commit is contained in:
28
node_modules/@mui/material/darkScrollbar/index.d.ts
generated
vendored
Normal file
28
node_modules/@mui/material/darkScrollbar/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
export default function darkScrollbar(options?: {
|
||||
track: string;
|
||||
thumb: string;
|
||||
active: string;
|
||||
}): {
|
||||
scrollbarColor: string;
|
||||
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
||||
backgroundColor: string;
|
||||
};
|
||||
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
||||
borderRadius: number;
|
||||
backgroundColor: string;
|
||||
minHeight: number;
|
||||
border: string;
|
||||
};
|
||||
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
||||
backgroundColor: string;
|
||||
};
|
||||
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
||||
backgroundColor: string;
|
||||
};
|
||||
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
||||
backgroundColor: string;
|
||||
};
|
||||
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
||||
backgroundColor: string;
|
||||
};
|
||||
};
|
||||
32
node_modules/@mui/material/darkScrollbar/index.js
generated
vendored
Normal file
32
node_modules/@mui/material/darkScrollbar/index.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// track, thumb and active are derived from macOS 10.15.7
|
||||
const scrollBar = {
|
||||
track: '#2b2b2b',
|
||||
thumb: '#6b6b6b',
|
||||
active: '#959595'
|
||||
};
|
||||
export default function darkScrollbar(options = scrollBar) {
|
||||
return {
|
||||
scrollbarColor: `${options.thumb} ${options.track}`,
|
||||
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
||||
backgroundColor: options.track
|
||||
},
|
||||
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
||||
borderRadius: 8,
|
||||
backgroundColor: options.thumb,
|
||||
minHeight: 24,
|
||||
border: `3px solid ${options.track}`
|
||||
},
|
||||
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
||||
backgroundColor: options.active
|
||||
},
|
||||
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
||||
backgroundColor: options.active
|
||||
},
|
||||
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
||||
backgroundColor: options.active
|
||||
},
|
||||
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
||||
backgroundColor: options.track
|
||||
}
|
||||
};
|
||||
}
|
||||
6
node_modules/@mui/material/darkScrollbar/package.json
generated
vendored
Normal file
6
node_modules/@mui/material/darkScrollbar/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "./index.js",
|
||||
"main": "../node/darkScrollbar/index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user