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
@@ -51,11 +51,13 @@ globalStyle(`${urlButton} span`, {
overflow: 'hidden', overflow: 'hidden',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
color: 'var(--affine-placeholder-color)',
fontWeight: '500', fontWeight: '500',
}); });
export const fakeWrapper = style({ export const fakeWrapper = style({
position: 'relative', position: 'relative',
opacity: 0.4,
selectors: { selectors: {
'&::after': { '&::after': {
content: '""', content: '""',
@@ -64,7 +66,7 @@ export const fakeWrapper = style({
position: 'absolute', position: 'absolute',
left: 0, left: 0,
top: 0, top: 0,
background: 'var(--affine-white-60)', cursor: 'not-allowed',
}, },
}, },
}); });
@@ -174,7 +174,6 @@ export const StyledButton = styled('button', {
color: 'var(--affine-text-disable-color)', color: 'var(--affine-text-disable-color)',
} }
: {}), : {}),
transition: 'background .15s',
// TODO: Implement circle shape // TODO: Implement circle shape
borderRadius: shape === 'default' ? borderRadius : height / 2, borderRadius: shape === 'default' ? borderRadius : height / 2,
fontSize, fontSize,
@@ -50,9 +50,14 @@ export const getButtonColors = (
background: 'var(--affine-primary-color)', background: 'var(--affine-primary-color)',
color: 'var(--affine-white)', color: 'var(--affine-white)',
borderColor: 'var(--affine-primary-color)', borderColor: 'var(--affine-primary-color)',
backgroundBlendMode: 'overlay',
'.affine-button-icon': { '.affine-button-icon': {
color: 'var(--affine-white)', color: 'var(--affine-white)',
}, },
':hover': {
background:
'linear-gradient(var(--affine-primary-color),var(--affine-primary-color)),var(--affine-hover-color)',
},
}; };
case 'light': case 'light':
return { return {