Separate Client Portal & Dashboard
This commit is contained in:
58
frontend/client-portal/src/theme/overrides/Tabs.ts
Normal file
58
frontend/client-portal/src/theme/overrides/Tabs.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
import { Theme } from '@mui/material/styles';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export default function Tabs(theme: Theme) {
|
||||
return {
|
||||
MuiTab: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
padding: 0,
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
borderTopLeftRadius: theme.shape.borderRadius,
|
||||
borderTopRightRadius: theme.shape.borderRadius,
|
||||
'&.Mui-selected': {
|
||||
color: theme.palette.text.primary
|
||||
},
|
||||
'&:not(:last-of-type)': {
|
||||
marginRight: theme.spacing(5)
|
||||
},
|
||||
'@media (min-width: 600px)': {
|
||||
minWidth: 48
|
||||
}
|
||||
},
|
||||
labelIcon: {
|
||||
minHeight: 48,
|
||||
flexDirection: 'row',
|
||||
'& > *:first-of-type': {
|
||||
marginBottom: 0,
|
||||
marginRight: theme.spacing(1)
|
||||
}
|
||||
},
|
||||
wrapper: {
|
||||
flexDirection: 'row',
|
||||
whiteSpace: 'nowrap'
|
||||
},
|
||||
textColorInherit: {
|
||||
opacity: 1,
|
||||
color: theme.palette.text.secondary
|
||||
}
|
||||
}
|
||||
},
|
||||
MuiTabPanel: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
padding: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
MuiTabScrollButton: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
width: 48,
|
||||
borderRadius: '50%'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user