This specific code excerpt can be found at: https://mui.com/material-ui/react-slider/#music-player
<Slider
aria-label="time-indicator"
size="small"
value={position}
min={0}
step={1}
max={duration}
onChange={(_, value) => setPosition(value as number)}
sx={{
color: theme.palette.mode === 'dark' ? '#fff' : 'rgba(0,0,0,0.87)',
height: 4,
'& .MuiSlider-thumb': {
width: 8,
height: 8,
transition: '0.3s cubic-bezier(.47,1.64,.41,.8)',
'&:before': {
boxShadow: '0 2px 12px 0 rgba(0,0,0,0.4)',
},
'&:hover, &.Mui-focusVisible': {
boxShadow: `0px 0px 0px 8px ${
theme.palette.mode === 'dark'
? 'rgb(255 255 255 / 16%)'
: 'rgb(0 0 0 / 16%)'
}`,
},
'&.Mui-active': {
width: 20,
height: 20,
},
},
'& .MuiSlider-rail': {
opacity: 0.28,
},
}}
/>
I am struggling to fully comprehend the syntax used in CSS/SASS/SCSS/MUI (In Backus-Naur form (https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form)):
<.> | <&.> | <& .>myClass: {value}
Also, I find the concept of nesting this syntax quite challenging:
<.> | <&.> | <& .>myClass: {<.> | <&.> | <& .>myNestedClass>: {value}}