style: add hover style for filter item (#2868)

This commit is contained in:
JimmFly
2023-06-27 19:02:46 +08:00
committed by GitHub
parent dd58b1bbf6
commit eec2074b88
2 changed files with 28 additions and 5 deletions

View File

@@ -8,8 +8,11 @@ export const inputStyle = style({
alignItems: 'center',
justifyContent: 'center',
height: '22px',
marginLeft: '10px',
marginRight: '10px',
textAlign: 'center',
':hover': {
background: 'var(--affine-hover-color)',
borderRadius: '4px',
},
});
export const popperStyle = style({
boxShadow: 'var(--affine-shadow-2)',

View File

@@ -41,21 +41,41 @@ export const filterItemCloseStyle = style({
});
export const inputStyle = style({
fontSize: 'var(--affine-font-xs)',
margin: '0 10px',
padding: '2px 4px',
transition: 'all 0.15s ease-in-out',
':hover': {
cursor: 'pointer',
background: 'var(--affine-hover-color)',
borderRadius: '4px',
},
});
export const switchStyle = style({
fontSize: 'var(--affine-font-xs)',
color: 'var(--affine-text-secondary-color)',
margin: '0 10px',
padding: '2px 4px',
transition: 'all 0.15s ease-in-out',
':hover': {
cursor: 'pointer',
background: 'var(--affine-hover-color)',
borderRadius: '4px',
},
});
export const filterTypeStyle = style({
fontSize: 'var(--affine-font-sm)',
display: 'flex',
marginRight: '10px',
padding: '2px 4px',
transition: 'all 0.15s ease-in-out',
marginRight: '6px',
':hover': {
cursor: 'pointer',
background: 'var(--affine-hover-color)',
borderRadius: '4px',
},
});
export const filterTypeIconStyle = style({
fontSize: 'var(--affine-font-base)',
marginRight: '6px',
padding: '1px 0',
display: 'flex',
color: 'var(--affine-icon-color)',
});