Files
aso/frontend/client-portal/src/theme/overrides/CssBaseline.ts

48 lines
1.1 KiB
TypeScript

import { Theme } from '@mui/material/styles';
// ----------------------------------------------------------------------
export default function CssBaseline(theme: Theme) {
return {
MuiCssBaseline: {
styleOverrides: {
'*': {
margin: 0,
padding: 0,
boxSizing: 'border-box',
},
html: {
width: '100%',
height: '100%',
WebkitOverflowScrolling: 'touch',
},
body: {
width: '100%',
height: '100%',
},
'#root': {
width: '100%',
height: '100%',
},
input: {
'&[type=number]': {
MozAppearance: 'textfield',
'&::-webkit-outer-spin-button': {
margin: 0,
WebkitAppearance: 'none',
},
'&::-webkit-inner-spin-button': {
margin: 0,
WebkitAppearance: 'none',
},
},
},
img: {
display: 'block',
maxWidth: '100%',
},
},
},
};
}