using a [babel plugin](https://gist.github.com/pengx17/49e24ae8a5a609bdaff122ee8c679d1c) to transform all var(--affine-xxx) to cssVar Some issues: - tried ast-grep but it seems to be not easy to add imports conditionally - current work does not work well with ts with types because babel will strip them out
19 lines
423 B
TypeScript
19 lines
423 B
TypeScript
import { style } from '@vanilla-extract/css';
|
|
export const sidebarSwitch = style({
|
|
opacity: 0,
|
|
display: 'none !important',
|
|
overflow: 'hidden',
|
|
pointerEvents: 'none',
|
|
transition: 'all .3s ease-in-out',
|
|
selectors: {
|
|
'&[data-show=true]': {
|
|
opacity: 1,
|
|
display: 'inline-flex !important',
|
|
width: '32px',
|
|
flexShrink: 0,
|
|
fontSize: '24px',
|
|
pointerEvents: 'auto',
|
|
},
|
|
},
|
|
});
|