Files
AFFiNE-Mirror/packages/frontend/component/src/ui/drag-handle/index.css.ts
T
2024-12-10 02:13:09 +00:00

20 lines
454 B
TypeScript

import { cssVarV2 } from '@toeverything/theme/v2';
import { style } from '@vanilla-extract/css';
export const root = style({
cursor: 'grab',
color: cssVarV2.icon.secondary,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
});
export const svg = style({
borderRadius: 8,
selectors: {
[`${root}[data-dragging="true"] &, ${root}:hover &`]: {
backgroundColor: cssVarV2.layer.background.hoverOverlay,
},
},
});