记录Material-UI 自定义样式,后续持续更新

自定义样式, 伪类选择器样式定义

const useStyles = makeStyles((theme) => ({
    paper: {
        marginTop: theme.spacing(8),
        display: 'flex',
        flexDirection: 'column',
        alignItems: 'center',
    },
    avatar: {
        margin: theme.spacing(2),
        backgroundColor: theme.palette.success.light,
    },
    form: {
        width: '100%',
        marginTop: theme.spacing(1),
    },
    submit: {
        margin: theme.spacing(1, 0, 2),
        backgroundColor: theme.palette.success.light,
        '&:hover': {
            backgroundColor: theme.palette.success.main,
        }
        
    },
    containerItem: {
        fontSize: '14px',
        textAlign: 'right',
        color: '#737373',
        '&:hover': {
            color: theme.palette.success.light,
        }
    }
}))

其他的伪类同理


名川
8 声望0 粉丝

日醒日毕~