@selfcommunity/react-theme-default
Version:
Default theme to use with SelfCommunity TS library
35 lines (34 loc) • 1.31 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const Component = {
styleOverrides: {
root: ({ theme, followers }) => ({
padding: theme.spacing(),
'& .MuiAvatarGroup-root': {
'&:not(.SCAvatarGroupSkeleton-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: followers > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
},
'&:not(:first-of-type)': {
width: theme.selfcommunity.user.avatar.sizeSmall
}
}
}
}),
dialogRoot: () => ({})
}
};
exports.default = Component;
;