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
3 changed files with 8 additions and 2 deletions

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 {