feat: modify style & add edgeless toolbar

This commit is contained in:
QiShaoXuan
2022-10-20 18:55:03 +08:00
parent 1c3fb798de
commit 06657596ff
17 changed files with 608 additions and 130 deletions
+4 -10
View File
@@ -1,11 +1,9 @@
import { styled } from '@/styles';
import { displayFlex, styled } from '@/styles';
export const StyledHeader = styled('div')({
height: '60px',
width: '100vw',
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
...displayFlex('space-between', 'center'),
background: 'var(--affine-page-background)',
transition: 'background-color 0.5s',
position: 'fixed',
@@ -24,9 +22,7 @@ export const StyledTitle = styled('div')({
top: 0,
margin: 'auto',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
...displayFlex('center', 'center'),
fontSize: '20px',
});
@@ -74,9 +70,7 @@ export const IconButton = styled('div')(({ theme }) => {
return {
width: '32px',
height: '32px',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
...displayFlex('center', 'center'),
color: theme.colors.iconColor,
borderRadius: '5px',
':hover': {