@selfcommunity/react-theme-default
Version:
Default theme to use with SelfCommunity TS library
54 lines (53 loc) • 1.96 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const Component = {
styleOverrides: {
root: ({ theme, enrolled }) => ({
padding: 0,
gap: theme.spacing(1),
marginTop: '0 !important',
minWidth: 'auto',
'&:hover': {
backgroundColor: 'unset'
},
'& .MuiAvatarGroup-root': {
'&:not(.SCAvatarCourseSkeleton-root) .MuiAvatar-root': {
'&.MuiAvatar-colorDefault': {
marginLeft: 0,
backgroundColor: 'transparent',
color: theme.palette.primary.main,
border: '0 none',
borderRadius: 0,
padding: 1
}
},
'& .MuiAvatar-root': {
height: theme.selfcommunity.user.avatar.sizeSmall,
border: `1px solid ${theme.palette.common.white}`,
fontSize: '0.7rem',
'&:first-of-type': {
width: enrolled > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
},
'&:not(:first-of-type)': {
width: theme.selfcommunity.user.avatar.sizeSmall
}
}
},
'& .SCCourseParticipantsButton-participants': {
color: theme.palette.text.primary,
'& .MuiIcon-root': {
marginRight: theme.spacing(1)
}
}
}),
dialogRoot: ({ theme }) => ({
'& .SCCourseParticipantsButton-infinite-scroll': {
height: '400px !important',
[theme.breakpoints.down('md')]: {
height: '100%'
}
}
})
}
};
exports.default = Component;
;