Files
AFFiNE-Mirror/packages/frontend/electron/renderer/shell/shell.css.ts
pengx17 6b8f99c013 fix: using width atom for syncing app headers position (#7666)
may use global state to replace these sidebar state atoms

fix AF-1109
2024-07-31 07:03:30 +00:00

26 lines
604 B
TypeScript

import { cssVar } from '@toeverything/theme';
import { createVar, globalStyle, style } from '@vanilla-extract/css';
export const sidebarOffsetVar = createVar();
export const root = style({
width: '100vw',
height: '100vh',
opacity: 1,
display: 'flex',
transition: 'opacity 0.1s',
background: cssVar('backgroundPrimaryColor'),
selectors: {
'&[data-active="false"]': {
opacity: 0,
},
'&[data-translucent="true"]': {
background: 'transparent',
},
},
});
globalStyle(`${root}[data-active="false"] *`, {
['WebkitAppRegion' as string]: 'no-drag !important',
});