feat: add support for exporting pdf and png (#2588)

This closes #2583.
This commit is contained in:
fourdim
2023-05-30 14:04:35 +08:00
committed by himself65
parent 2c111ff7f9
commit 0b17e06aa3
12 changed files with 257 additions and 2 deletions
@@ -0,0 +1,32 @@
import { style } from '@vanilla-extract/css';
export const waterMarkStyle = style({
display: 'none',
'@media': {
print: {
position: 'absolute',
bottom: '0',
right: '20px',
zIndex: 100,
display: 'block',
width: 'auto',
filter: 'opacity(20%)',
},
},
});
export const linkStyle = style({
textAlign: 'left',
color: 'black',
display: 'flex',
flexDirection: 'row',
justifyContent: 'flex-end',
alignItems: 'center',
width: '200px',
});
export const linkTextStyle = style({
whiteSpace: 'nowrap',
});
export const iconStyle = style({
fontSize: '20px',
});