2022-05-06 07:09:03 +00:00
|
|
|
import { Slider } from "@mui/material"
|
|
|
|
import { styled } from '@mui/material/styles';
|
|
|
|
|
|
|
|
const RangeSlider = styled(Slider)(({ theme }) => ({
|
|
|
|
color: 'primary',
|
|
|
|
height: 3,
|
|
|
|
padding: '13px 0',
|
|
|
|
'& .MuiSlider-thumb': {
|
2022-09-02 03:25:36 +00:00
|
|
|
height: `${27/16}em`,
|
|
|
|
width: `${27/16}em`,
|
2022-05-06 07:09:03 +00:00
|
|
|
backgroundColor: '#fff',
|
|
|
|
border: '1px solid currentColor',
|
|
|
|
'&:hover': {
|
|
|
|
boxShadow: '0 0 0 8px rgba(58, 133, 137, 0.16)',
|
|
|
|
},
|
|
|
|
'& .range-bar': {
|
2022-09-02 03:25:36 +00:00
|
|
|
height: `${9/16}em`,
|
2022-05-06 07:09:03 +00:00
|
|
|
width: 1,
|
|
|
|
backgroundColor: 'currentColor',
|
|
|
|
marginLeft: 1,
|
|
|
|
marginRight: 1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'& .MuiSlider-track': {
|
2022-09-02 03:25:36 +00:00
|
|
|
height: `${3/16}em`,
|
2022-05-06 07:09:03 +00:00
|
|
|
},
|
|
|
|
'& .MuiSlider-rail': {
|
|
|
|
color: theme.palette.mode === 'dark' ? '#bfbfbf' : '#d8d8d8',
|
|
|
|
opacity: theme.palette.mode === 'dark' ? undefined : 1,
|
2022-09-02 03:25:36 +00:00
|
|
|
height: `${3/16}em`,
|
2022-05-06 07:09:03 +00:00
|
|
|
},
|
|
|
|
}));
|
|
|
|
|
|
|
|
export default RangeSlider;
|