-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathSnackbar.css.ts
35 lines (31 loc) · 896 Bytes
/
Snackbar.css.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import {style} from '@vanilla-extract/css';
import {themeVars} from '../../theme';
export const snackbar = style({
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
backgroundColor: `${themeVars.dynamicColors.snackbar.backgroundColor}!important`,
color: `${themeVars.dynamicColors.snackbar.textColor}!important`,
borderRadius: `${themeVars.borderRadius.xl}!important`,
padding: `${themeVars.spacing['3']}!important`,
});
export const hostWrapper = style({
position: 'absolute',
left: '50%',
bottom: 0,
transform: 'translateX(-50%)',
padding: themeVars.spacing['4'],
zIndex: themeVars.zIndex['40'],
'@media': {
'screen and (max-width: 768px)': {
width: '100%',
bottom: '40px',
},
},
});
export const host = style({
display: 'flex',
flexDirection: 'column',
rowGap: themeVars.spacing['2'],
overflow: 'hidden',
});