feat: modify styles

This commit is contained in:
QiShaoXuan
2022-10-21 16:55:29 +08:00
parent c47c7d2c4a
commit 8a2a3e2c4c
7 changed files with 50 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ export const StyledModalContainer = styled('div')(({ theme }) => {
export const StyledModalWrapper = styled('div')(({ theme }) => {
return {
width: '860px',
height: '626px',
height: '540px',
backgroundColor: theme.colors.popoverBackground,
backgroundImage: `url(${bg.src})`,
borderRadius: '20px',
@@ -112,7 +112,6 @@ export const StyledSmallLink = styled('a')(({ theme }) => {
});
export const StyledSubTitle = styled('div')(({ theme }) => {
return {
width: '189px',
fontSize: '18px',
fontWeight: '600',
color: theme.colors.textColor,
@@ -121,10 +120,13 @@ export const StyledSubTitle = styled('div')(({ theme }) => {
});
export const StyledLeftContainer = styled('div')({
width: '320px',
flexDirection: 'column',
...displayFlex('space-between', 'center'),
});
export const StyledRightContainer = styled('div')({
width: '214px',
flexShrink: '0',
flexDirection: 'column',
...displayFlex('center', 'flex-end'),
});
@@ -132,10 +134,11 @@ export const StyledRightContainer = styled('div')({
export const StyledContent = styled('div')({
height: '276px',
width: '100%',
padding: '0 145px',
padding: '0 140px',
...displayFlex('space-between', 'center'),
color: '#3A4C5C',
marginTop: '100px',
marginTop: '58px',
letterSpacing: '0.06em',
});
export const StyledBackdrop = styled('div')(({ theme }) => {
@@ -148,8 +151,8 @@ export const StyledLogo = styled('img')({
export const StyledModalHeader = styled('div')(({ theme }) => {
return {
height: '30px',
marginTop: '54px',
height: '20px',
marginTop: '36px',
padding: '0 48px',
...displayFlex('space-between', 'center'),
};
@@ -197,10 +200,16 @@ export const StyledModalFooter = styled('div')(({ theme }) => {
textAlign: 'center',
color: theme.colors.textColor,
marginTop: '75px',
marginTop: '40px',
'p:first-of-type': {
color: theme.colors.primaryColor,
marginBottom: '10px',
letterSpacing: '0.06em',
marginBottom: '25px',
a: {
':visited': {
color: theme.colors.linkColor,
},
},
},
};
});

View File

@@ -30,8 +30,13 @@ export const StyledAnimateRadioContainer = styled('div')<{ shrink: boolean }>(
background: theme.colors.hoverBackground,
position: 'relative',
display: 'flex',
transition: `background ${ANIMATE_DURATION}ms`,
transition: `background ${ANIMATE_DURATION}ms, border ${ANIMATE_DURATION}ms`,
border: '1px solid transparent',
...shrinkStyle,
':hover': {
border: `1px solid ${theme.colors.primaryColor}`,
},
};
}
);