mirror of
https://github.com/D4M13N-D3V/comissions-app-ui.git
synced 2025-03-14 08:15:08 +00:00
87 lines
2.1 KiB
TypeScript
87 lines
2.1 KiB
TypeScript
![]() |
// ** MUI Imports
|
||
|
import { Theme } from '@mui/material/styles'
|
||
|
|
||
|
const Card = (theme: Theme) => {
|
||
|
return {
|
||
|
MuiCard: {
|
||
|
styleOverrides: {
|
||
|
root: {
|
||
|
boxShadow: theme.shadows[6],
|
||
|
'& .card-more-options': {
|
||
|
marginTop: theme.spacing(-1),
|
||
|
marginRight: theme.spacing(-3)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
MuiCardHeader: {
|
||
|
styleOverrides: {
|
||
|
root: {
|
||
|
padding: theme.spacing(5),
|
||
|
'& + .MuiCardContent-root, & + .MuiCollapse-root .MuiCardContent-root': {
|
||
|
paddingTop: 0
|
||
|
},
|
||
|
'& .MuiCardHeader-subheader': {
|
||
|
fontSize: '0.875rem'
|
||
|
}
|
||
|
},
|
||
|
title: {
|
||
|
lineHeight: 1,
|
||
|
fontWeight: 500,
|
||
|
fontSize: '1.25rem',
|
||
|
letterSpacing: '0.0125em'
|
||
|
},
|
||
|
action: {
|
||
|
marginTop: 0,
|
||
|
marginRight: 0
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
MuiCardContent: {
|
||
|
styleOverrides: {
|
||
|
root: {
|
||
|
padding: theme.spacing(5),
|
||
|
'& + .MuiCardContent-root': {
|
||
|
paddingTop: 0
|
||
|
},
|
||
|
'&:last-of-type': {
|
||
|
paddingBottom: theme.spacing(5)
|
||
|
},
|
||
|
'& + .MuiCardActions-root': {
|
||
|
paddingTop: 0
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
MuiCardActions: {
|
||
|
styleOverrides: {
|
||
|
root: {
|
||
|
padding: theme.spacing(5),
|
||
|
'&.card-action-dense': {
|
||
|
padding: theme.spacing(0, 2.5, 2.5),
|
||
|
'.MuiCard-root .MuiCardMedia-root + &': {
|
||
|
paddingTop: theme.spacing(2.5)
|
||
|
},
|
||
|
'.MuiCard-root &:first-of-type': {
|
||
|
paddingTop: theme.spacing(5),
|
||
|
paddingBottom: theme.spacing(5),
|
||
|
'& + .MuiCardContent-root': {
|
||
|
paddingTop: 0
|
||
|
},
|
||
|
'& + .MuiCardHeader-root': {
|
||
|
paddingTop: 0
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
'& .MuiButton-text': {
|
||
|
paddingLeft: theme.spacing(2.5),
|
||
|
paddingRight: theme.spacing(2.5)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default Card
|