fix: rename shadowSxDownLg -> shadow1

This commit is contained in:
alt0
2022-08-04 17:47:09 +08:00
parent 37a7e36c45
commit ce5a523b12
15 changed files with 18 additions and 18 deletions

View File

@@ -210,7 +210,7 @@ const WorkspaceSidebar = styled('div')(({ theme }) => ({
width: 300, width: 300,
minWidth: 300, minWidth: 300,
borderRadius: '0px 10px 10px 0px', borderRadius: '0px 10px 10px 0px',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
backgroundColor: '#FFFFFF', backgroundColor: '#FFFFFF',
transitionProperty: 'left', transitionProperty: 'left',
transitionDuration: '0.35s', transitionDuration: '0.35s',

View File

@@ -125,7 +125,7 @@ const LinkStyledTooltip = styled(({ className, ...props }: MuiTooltipProps) => (
[`& .${muiTooltipClasses.tooltip}`]: { [`& .${muiTooltipClasses.tooltip}`]: {
backgroundColor: '#fff', backgroundColor: '#fff',
color: '#4C6275', color: '#4C6275',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
fontSize: '14px', fontSize: '14px',
}, },
[`& .MuiTooltip-tooltipPlacementBottom`]: { [`& .MuiTooltip-tooltipPlacementBottom`]: {
@@ -497,7 +497,7 @@ const LinkModalContainer = styled('div')(({ theme }) => ({
padding: '12px', padding: '12px',
display: 'flex', display: 'flex',
borderRadius: '4px', borderRadius: '4px',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
backgroundColor: '#fff', backgroundColor: '#fff',
alignItems: 'center', alignItems: 'center',
zIndex: '1', zIndex: '1',

View File

@@ -69,7 +69,7 @@ const GroupContainer = styled('div')<{ isSelect?: boolean }>(
} }
: { : {
'&:hover': { '&:hover': {
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
}, },
}), }),
}) })

View File

@@ -6,7 +6,7 @@ const StyledPanel = styled('div')(({ theme }) => ({
position: 'absolute', position: 'absolute',
top: 50, top: 50,
background: '#FFFFFF', background: '#FFFFFF',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
borderRadius: 10, borderRadius: 10,
padding: '12px 24px', padding: '12px 24px',
})); }));

View File

@@ -64,7 +64,7 @@ const StyledContainerForAddCommentContainer = styled('div')(({ theme }) => {
zIndex: 1, zIndex: 1,
display: 'flex', display: 'flex',
borderRadius: theme.affine.shape.borderRadius, borderRadius: theme.affine.shape.borderRadius,
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
backgroundColor: theme.affine.palette.white, backgroundColor: theme.affine.palette.white,
}; };
}); });

View File

@@ -31,7 +31,7 @@ const RootContainer = styled('div')(({ theme }) => {
width: 352, width: 352,
maxHeight: 525, maxHeight: 525,
borderRadius: '10px', borderRadius: '10px',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
backgroundColor: '#fff', backgroundColor: '#fff',
padding: '8px 4px', padding: '8px 4px',
}; };

View File

@@ -82,6 +82,6 @@ const ToolbarContainer = styled('div')(({ theme }) => ({
alignItems: 'center', alignItems: 'center',
padding: '0 12px', padding: '0 12px',
borderRadius: '10px', borderRadius: '10px',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
backgroundColor: '#fff', backgroundColor: '#fff',
})); }));

View File

@@ -179,7 +179,7 @@ const RootContainer = styled('div')(({ theme }) => ({
zIndex: 1, zIndex: 1,
maxHeight: '525px', maxHeight: '525px',
borderRadius: '10px', borderRadius: '10px',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
backgroundColor: '#fff', backgroundColor: '#fff',
padding: '8px 4px', padding: '8px 4px',
})); }));

View File

@@ -108,7 +108,7 @@ export const Search = (props: SearchProps) => {
const SearchInput = styled('input')(({ theme }) => ({ const SearchInput = styled('input')(({ theme }) => ({
margin: '0.5em', margin: '0.5em',
backgroundColor: 'white', backgroundColor: 'white',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
padding: '16px 32px', padding: '16px 32px',
borderRadius: '10px', borderRadius: '10px',
})); }));
@@ -116,7 +116,7 @@ const SearchInput = styled('input')(({ theme }) => ({
const ResultContainer = styled(MuiBox)(({ theme }) => ({ const ResultContainer = styled(MuiBox)(({ theme }) => ({
margin: '0.5em', margin: '0.5em',
backgroundColor: 'white', backgroundColor: 'white',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
padding: '16px 32px', padding: '16px 32px',
borderRadius: '10px', borderRadius: '10px',
transitionProperty: 'max-height', transitionProperty: 'max-height',

View File

@@ -20,7 +20,7 @@ const IconWrapper = styled('div')<Pick<StatusIconProps, 'mode'>>(
width: '20px', width: '20px',
height: '20px', height: '20px',
borderRadius: '5px', borderRadius: '5px',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
color: theme.affine.palette.primary, color: theme.affine.palette.primary,
cursor: 'pointer', cursor: 'pointer',
backgroundColor: theme.affine.palette.white, backgroundColor: theme.affine.palette.white,

View File

@@ -94,7 +94,7 @@ const StyledContainerForCommentItem = styled('div', {
transition: 'left 150ms ease-in-out', transition: 'left 150ms ease-in-out',
backgroundColor: theme.affine.palette.white, backgroundColor: theme.affine.palette.white,
'&:hover': { '&:hover': {
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
}, },
}; };
}); });

View File

@@ -133,7 +133,7 @@ export function Cascader(props: CascaderProps) {
const MenuPaper = styled('div')(({ theme }) => ({ const MenuPaper = styled('div')(({ theme }) => ({
fontFamily: 'PingFang SC', fontFamily: 'PingFang SC',
background: '#FFF', background: '#FFF',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
borderRadius: '10px 0px 10px 10px', borderRadius: '10px 0px 10px 10px',
color: '#4C6275', color: '#4C6275',
fontWeight: '400', fontWeight: '400',

View File

@@ -12,7 +12,7 @@ const border_radius_map: Record<PopoverContainerProps['direction'], string> = {
export const PopoverContainer = styled('div')< export const PopoverContainer = styled('div')<
Pick<PopoverContainerProps, 'direction'> Pick<PopoverContainerProps, 'direction'>
>(({ theme, direction, style }) => { >(({ theme, direction, style }) => {
const shadow = theme.affine.shadows.shadowSxDownLg; const shadow = theme.affine.shadows.shadow1;
const white = theme.affine.palette.white; const white = theme.affine.palette.white;
const borderRadius = const borderRadius =

View File

@@ -117,7 +117,7 @@ const StyledListbox = styled('ul')(({ theme }) => ({
background: '#fff', background: '#fff',
borderRadius: '10px', borderRadius: '10px',
overflow: 'auto', overflow: 'auto',
boxShadow: theme.affine.shadows.shadowSxDownLg, boxShadow: theme.affine.shadows.shadow1,
})); }));
const StyledPopper = styled(PopperUnstyled)` const StyledPopper = styled(PopperUnstyled)`

View File

@@ -70,7 +70,7 @@ interface Typography {
interface Shadows { interface Shadows {
none: 'none'; none: 'none';
shadowSxDownLg: string; shadow1: string;
} }
type StringWithNone = [ type StringWithNone = [
@@ -225,7 +225,7 @@ export const Theme = {
}, },
shadows: { shadows: {
none: 'none', none: 'none',
shadowSxDownLg: '0px 1px 5px rgba(152, 172, 189, 0.2)', shadow1: '0px 1px 5px rgba(152, 172, 189, 0.2)',
}, },
border: ['none'], border: ['none'],
spacing: { spacing: {