style: adjust settings style (#3083)

This commit is contained in:
JimmFly 2023-07-07 13:36:27 +08:00 committed by GitHub
parent 80ee33fd3e
commit 5756bdf8d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -51,11 +51,13 @@ globalStyle(`${urlButton} span`, {
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
color: 'var(--affine-placeholder-color)',
fontWeight: '500',
});
export const fakeWrapper = style({
position: 'relative',
opacity: 0.4,
selectors: {
'&::after': {
content: '""',
@ -64,7 +66,7 @@ export const fakeWrapper = style({
position: 'absolute',
left: 0,
top: 0,
background: 'var(--affine-white-60)',
cursor: 'not-allowed',
},
},
});

View File

@ -174,7 +174,6 @@ export const StyledButton = styled('button', {
color: 'var(--affine-text-disable-color)',
}
: {}),
transition: 'background .15s',
// TODO: Implement circle shape
borderRadius: shape === 'default' ? borderRadius : height / 2,
fontSize,

View File

@ -50,9 +50,14 @@ export const getButtonColors = (
background: 'var(--affine-primary-color)',
color: 'var(--affine-white)',
borderColor: 'var(--affine-primary-color)',
backgroundBlendMode: 'overlay',
'.affine-button-icon': {
color: 'var(--affine-white)',
},
':hover': {
background:
'linear-gradient(var(--affine-primary-color),var(--affine-primary-color)),var(--affine-hover-color)',
},
};
case 'light':
return {