fix: remove css variable lineHeightBase

This commit is contained in:
QiShaoXuan
2023-02-07 17:20:08 +08:00
parent e1f4b6f8f2
commit de963fe13b
3 changed files with 4 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ export const WorkspaceSettingTagItem = styled('li')<{ isActive?: boolean }>(
color: isActive ? theme.colors.primaryColor : theme.colors.textColor, color: isActive ? theme.colors.primaryColor : theme.colors.textColor,
fontWeight: '500', fontWeight: '500',
fontSize: theme.font.base, fontSize: theme.font.base,
lineHeight: theme.font.lineHeightBase, lineHeight: theme.font.lineHeight,
cursor: 'pointer', cursor: 'pointer',
transition: 'all 0.15s ease', transition: 'all 0.15s ease',
borderBottom: `2px solid ${ borderBottom: `2px solid ${
@@ -92,7 +92,7 @@ export const StyledSettingH2 = styled('h2')<{
return { return {
// fontWeight: '500', // fontWeight: '500',
fontSize: theme.font.base, fontSize: theme.font.base,
lineHeight: theme.font.lineHeightBase, lineHeight: theme.font.lineHeight,
marginTop: marginTop ? `${marginTop}px` : '0px', marginTop: marginTop ? `${marginTop}px` : '0px',
marginBottom: marginBottom ? `${marginBottom}px` : '0px', marginBottom: marginBottom ? `${marginBottom}px` : '0px',
}; };
@@ -147,7 +147,7 @@ export const StyledPublishContent = styled('div')(({ theme }) => {
fontWeight: '500', fontWeight: '500',
flexDirection: 'column', flexDirection: 'column',
fontSize: theme.font.base, fontSize: theme.font.base,
lineHeight: theme.font.lineHeightBase, lineHeight: theme.font.lineHeight,
flex: 1, flex: 1,
}; };
}); });

View File

@@ -126,7 +126,7 @@ export const StyledBreadcrumbs = styled(NextLink)(({ theme }) => {
span: { span: {
padding: '0 12px', padding: '0 12px',
fontSize: theme.font.base, fontSize: theme.font.base,
lineHeight: theme.font.lineHeightBase, lineHeight: theme.font.lineHeight,
}, },
':hover': { color: theme.colors.primaryColor }, ':hover': { color: theme.colors.primaryColor },
transition: 'all .15s', transition: 'all .15s',

View File

@@ -193,7 +193,6 @@ export const globalThemeVariables: (
'--affine-font-sm': theme.font.sm, // small '--affine-font-sm': theme.font.sm, // small
'--affine-font-xs': theme.font.xs, // tiny '--affine-font-xs': theme.font.xs, // tiny
// '--affine-line-height-base': theme.font.lineHeightBase,
'--affine-line-height': theme.font.lineHeight, '--affine-line-height': theme.font.lineHeight,
'--affine-z-index-modal': theme.zIndex.modal, '--affine-z-index-modal': theme.zIndex.modal,