♻️ refactor(CurriculumPage): unisform styling
This commit is contained in:
@@ -16,6 +16,7 @@ const CurriculumItem = (props: CurriculumEntryProps) => {
|
|||||||
disableGutters
|
disableGutters
|
||||||
elevation={0}
|
elevation={0}
|
||||||
sx={{
|
sx={{
|
||||||
|
bgcolor: 'background.default', // use summary hover background
|
||||||
flexDirection: 'row-reverse',
|
flexDirection: 'row-reverse',
|
||||||
'&:not(:last-child)': {
|
'&:not(:last-child)': {
|
||||||
borderBottom: 0,
|
borderBottom: 0,
|
||||||
@@ -23,6 +24,20 @@ const CurriculumItem = (props: CurriculumEntryProps) => {
|
|||||||
'&::before': {
|
'&::before': {
|
||||||
display: 'none',
|
display: 'none',
|
||||||
},
|
},
|
||||||
|
'&:hover': {
|
||||||
|
borderBottom: '1px solid',
|
||||||
|
borderTop: '1px solid',
|
||||||
|
bgcolor: 'background.paper', // use summary hover background
|
||||||
|
elevation: 1,
|
||||||
|
// '& .MuiAccordionSummary-expandIconWrapper .MuiSvgIcon-root': { color: 'primary.dark' }, // use summary hover icon color
|
||||||
|
},
|
||||||
|
'&.Mui-expanded': {
|
||||||
|
borderBottom: '1px solid',
|
||||||
|
borderTop: '1px solid',
|
||||||
|
bgcolor: 'background.paper', // use summary hover background
|
||||||
|
elevation: 1,
|
||||||
|
// '& .MuiAccordionSummary-expandIconWrapper .MuiSvgIcon-root': { color: 'primary.dark' }, // use summary hover icon color
|
||||||
|
},
|
||||||
}}>
|
}}>
|
||||||
<AccordionSummary
|
<AccordionSummary
|
||||||
expandIcon={<ExpandIcon />}
|
expandIcon={<ExpandIcon />}
|
||||||
|
|||||||
Reference in New Issue
Block a user