chore: update block card styles (#3290)

This commit is contained in:
Whitewater 2023-07-18 19:45:03 +08:00 committed by GitHub
parent bf41b25988
commit 79227a1e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 7 deletions

View File

@ -5,21 +5,22 @@ export const blockCard = style({
gap: '12px',
padding: '8px 12px',
color: 'var(--affine-text-primary-color)',
backgroundColor: 'var(--affine-background-primary-color)',
borderRadius: '4px',
backgroundColor: 'var(--affine-white-80)',
borderRadius: '8px',
userSelect: 'none',
cursor: 'pointer',
textAlign: 'start',
boxShadow: 'var(--affine-shadow-1)',
selectors: {
'&:hover': {
boxShadow: 'var(--affine-shadow-1)',
backgroundColor: 'var(--affine-hover-color)',
},
'&[aria-disabled]': {
color: 'var(--affine-text-disable-color)',
},
'&[aria-disabled]:hover': {
backgroundColor: 'var(--affine-white-80)',
cursor: 'not-allowed',
boxShadow: 'none',
},
// TODO active styles
},

View File

@ -7,8 +7,10 @@ export const importPageContainerStyle = style({
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
borderRadius: '16px',
boxShadow: 'var(--affine-shadow-1)',
borderRadius: '12px',
boxShadow: 'var(--affine-popover-shadow)',
background: 'var(--affine-background-overlay-panel-color)',
overflow: 'hidden',
});
export const importPageBodyStyle = style({

View File

@ -66,7 +66,10 @@ export const NewPageButton = ({
onClickAway={() => {
setOpen(false);
}}
menuStyles={{ padding: '0px' }}
menuStyles={{
padding: '0px',
background: 'var(--affine-background-overlay-panel-color)',
}}
content={
<CreateNewPagePopup
createNewPage={() => {