@@ -1,4 +1,5 @@
|
|||||||
import { cssVar } from '@toeverything/theme';
|
import { cssVar } from '@toeverything/theme';
|
||||||
|
import { cssVarV2 } from '@toeverything/theme/v2';
|
||||||
import { style } from '@vanilla-extract/css';
|
import { style } from '@vanilla-extract/css';
|
||||||
|
|
||||||
export const indicatorWrapper = style({
|
export const indicatorWrapper = style({
|
||||||
@@ -25,27 +26,33 @@ export const menuTrigger = style({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const indicator = style({
|
export const indicator = style({
|
||||||
padding: '6px 20px',
|
padding: '0px 20px',
|
||||||
height: 15,
|
|
||||||
display: 'flex',
|
|
||||||
justifyContent: 'center',
|
|
||||||
alignItems: 'center',
|
|
||||||
gap: 3,
|
|
||||||
cursor: 'grab',
|
cursor: 'grab',
|
||||||
['WebkitAppRegion' as string]: 'no-drag',
|
['WebkitAppRegion' as string]: 'no-drag',
|
||||||
color: cssVar('placeholderColor'),
|
color: cssVar('placeholderColor'),
|
||||||
transition: 'all 0.2s',
|
transition: 'all 0.2s',
|
||||||
|
gap: 2,
|
||||||
selectors: {
|
selectors: {
|
||||||
'&:hover, &[data-active="true"], &[data-dragging="true"]': {
|
'&:hover, &[data-active="true"], &[data-dragging="true"]': {
|
||||||
color: cssVar('brandColor'),
|
color: cssVar('brandColor'),
|
||||||
},
|
},
|
||||||
'&[data-dragging="true"]': {
|
'&[data-dragging="true"]': {
|
||||||
gap: 4,
|
gap: 3,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const indicatorInnerWrapper = style({
|
||||||
|
padding: '3px 4px',
|
||||||
|
position: 'relative',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
gap: 'inherit',
|
||||||
|
backgroundColor: cssVarV2('layer/background/primary'),
|
||||||
|
borderRadius: 8,
|
||||||
|
});
|
||||||
|
|
||||||
export const indicatorDot = style({
|
export const indicatorDot = style({
|
||||||
width: 4,
|
width: 4,
|
||||||
height: 4,
|
height: 4,
|
||||||
|
|||||||
@@ -41,10 +41,12 @@ export const SplitViewDragHandle = memo(
|
|||||||
{...attrs}
|
{...attrs}
|
||||||
>
|
>
|
||||||
<div className={styles.indicatorGradient} />
|
<div className={styles.indicatorGradient} />
|
||||||
|
<div className={styles.indicatorInnerWrapper}>
|
||||||
<div data-idx={0} className={styles.indicatorDot} />
|
<div data-idx={0} className={styles.indicatorDot} />
|
||||||
<div data-idx={1} className={styles.indicatorDot} />
|
<div data-idx={1} className={styles.indicatorDot} />
|
||||||
<div data-idx={2} className={styles.indicatorDot} />
|
<div data-idx={2} className={styles.indicatorDot} />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user