mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 13:57:02 +08:00
154 lines
3.2 KiB
TypeScript
154 lines
3.2 KiB
TypeScript
import { styled } from '@/styles';
|
|
|
|
export const StyledSettingContainer = styled('div')(() => {
|
|
return {
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
|
|
padding: '0 34px 20px 48px',
|
|
height: '100vh',
|
|
};
|
|
});
|
|
|
|
export const StyledSettingSidebar = styled('div')(() => {
|
|
{
|
|
return {
|
|
// height: '48px',
|
|
marginTop: '50px',
|
|
};
|
|
}
|
|
});
|
|
|
|
export const StyledSettingContent = styled('div')(() => {
|
|
return {
|
|
overflow: 'hidden',
|
|
flex: 1,
|
|
paddingTop: '48px',
|
|
};
|
|
});
|
|
|
|
export const StyledSetting = styled('div')(({ theme }) => {
|
|
{
|
|
return {
|
|
width: '236px',
|
|
background: theme.mode === 'dark' ? '#272727' : '#FBFBFC',
|
|
};
|
|
}
|
|
});
|
|
|
|
export const StyledSettingSidebarHeader = styled('div')(() => {
|
|
{
|
|
return {
|
|
fontWeight: '500',
|
|
fontSize: '18px',
|
|
lineHeight: '26px',
|
|
textAlign: 'left',
|
|
marginTop: '37px',
|
|
};
|
|
}
|
|
});
|
|
|
|
export const StyledSettingTabContainer = styled('ul')(() => {
|
|
{
|
|
return {
|
|
display: 'flex',
|
|
};
|
|
}
|
|
});
|
|
|
|
export const WorkspaceSettingTagItem = styled('li')<{ isActive?: boolean }>(
|
|
({ theme, isActive }) => {
|
|
{
|
|
return {
|
|
display: 'flex',
|
|
margin: '0 48px 0 0',
|
|
height: '34px',
|
|
color: isActive ? theme.colors.primaryColor : theme.colors.textColor,
|
|
fontWeight: '500',
|
|
fontSize: theme.font.base,
|
|
lineHeight: theme.font.lineHeight,
|
|
cursor: 'pointer',
|
|
transition: 'all 0.15s ease',
|
|
borderBottom: `2px solid ${
|
|
isActive ? theme.colors.primaryColor : 'none'
|
|
}`,
|
|
':hover': { color: theme.colors.primaryColor },
|
|
};
|
|
}
|
|
}
|
|
);
|
|
|
|
export const StyledSettingTagIconContainer = styled('div')(() => {
|
|
return {
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
};
|
|
});
|
|
|
|
export const StyledSettingH2 = styled('h2')<{
|
|
marginTop?: number;
|
|
marginBottom?: number;
|
|
}>(({ marginTop, marginBottom, theme }) => {
|
|
return {
|
|
// fontWeight: '500',
|
|
fontSize: theme.font.base,
|
|
lineHeight: theme.font.lineHeight,
|
|
marginTop: marginTop ? `${marginTop}px` : '0px',
|
|
marginBottom: marginBottom ? `${marginBottom}px` : '0px',
|
|
};
|
|
});
|
|
|
|
export const StyledPublishExplanation = styled('div')(() => {
|
|
return {
|
|
paddingRight: '48px',
|
|
// fontWeight: '500',
|
|
marginBottom: '22px',
|
|
};
|
|
});
|
|
export const StyledWorkspaceName = styled('span')(() => {
|
|
return {
|
|
fontWeight: '400',
|
|
};
|
|
});
|
|
export const StyledWorkspaceType = styled('span')(() => {
|
|
return {
|
|
// fontWeight: '500',
|
|
};
|
|
});
|
|
|
|
export const StyledPublishCopyContainer = styled('div')(() => {
|
|
return {
|
|
marginTop: '12px',
|
|
marginBottom: '20px',
|
|
paddingTop: '20px',
|
|
flex: 1,
|
|
};
|
|
});
|
|
export const StyledStopPublishContainer = styled('div')(() => {
|
|
return {
|
|
textAlign: 'center',
|
|
};
|
|
});
|
|
|
|
export const StyledButtonContainer = styled('div')(() => {
|
|
return {
|
|
marginTop: '64px',
|
|
};
|
|
});
|
|
export const StyledEmail = styled('span')(() => {
|
|
return {
|
|
color: '#E8178A',
|
|
};
|
|
});
|
|
|
|
export const StyledPublishContent = styled('div')(({ theme }) => {
|
|
return {
|
|
display: 'flex',
|
|
fontWeight: '500',
|
|
flexDirection: 'column',
|
|
fontSize: theme.font.base,
|
|
lineHeight: theme.font.lineHeight,
|
|
flex: 1,
|
|
};
|
|
});
|