style: add hover style for filter item (#2868)
This commit is contained in:
@@ -8,8 +8,11 @@ export const inputStyle = style({
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
height: '22px',
|
height: '22px',
|
||||||
marginLeft: '10px',
|
textAlign: 'center',
|
||||||
marginRight: '10px',
|
':hover': {
|
||||||
|
background: 'var(--affine-hover-color)',
|
||||||
|
borderRadius: '4px',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
export const popperStyle = style({
|
export const popperStyle = style({
|
||||||
boxShadow: 'var(--affine-shadow-2)',
|
boxShadow: 'var(--affine-shadow-2)',
|
||||||
|
|||||||
@@ -41,21 +41,41 @@ export const filterItemCloseStyle = style({
|
|||||||
});
|
});
|
||||||
export const inputStyle = style({
|
export const inputStyle = style({
|
||||||
fontSize: 'var(--affine-font-xs)',
|
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({
|
export const switchStyle = style({
|
||||||
fontSize: 'var(--affine-font-xs)',
|
fontSize: 'var(--affine-font-xs)',
|
||||||
color: 'var(--affine-text-secondary-color)',
|
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({
|
export const filterTypeStyle = style({
|
||||||
fontSize: 'var(--affine-font-sm)',
|
fontSize: 'var(--affine-font-sm)',
|
||||||
display: 'flex',
|
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({
|
export const filterTypeIconStyle = style({
|
||||||
fontSize: 'var(--affine-font-base)',
|
fontSize: 'var(--affine-font-base)',
|
||||||
marginRight: '6px',
|
marginRight: '6px',
|
||||||
|
padding: '1px 0',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
color: 'var(--affine-icon-color)',
|
color: 'var(--affine-icon-color)',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user