feat(core): add draghandle to doc page title (#9079)

fix AF-1846
This commit is contained in:
pengx17
2024-12-10 02:13:08 +00:00
parent 115caa7cc6
commit 4335b0dc79
11 changed files with 161 additions and 75 deletions
@@ -0,0 +1,19 @@
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,
},
},
});