-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathModalBottomSheet.styles.ts
55 lines (49 loc) · 1.11 KB
/
ModalBottomSheet.styles.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import styled from '@emotion/styled';
export const StyledDeemBackground = styled.div`
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: ${({ theme }) => theme.PALETTE.GRAY_900};
opacity: 0.5;
`;
export const StyledBottomSheet = styled.div`
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 75%;
${({ theme }) => theme.STYLES.FLEX_CENTER};
flex-direction: column;
background-color: white;
border-top-left-radius: 0.75rem;
border-top-right-radius: 0.75rem;
animation: bottom-sheet-up 0.2s ease-in-out;
`;
export const StyledModalHeader = styled.div`
position: absolute;
top: 0.69rem;
width: 3.125rem;
height: 0.1875rem;
background-color: ${({ theme }) => theme.PALETTE.GRAY_300};
`;
export const StyledModalBottom = styled.div`
@keyframes bottom-sheet-up {
0% {
transform: translateY(100%);
}
100% {
transform: translateY(0);
}
}
@keyframes bottom-sheet-down {
0% {
transform: translateY(0);
}
100% {
transform: translateY(100%);
}
}
`;
export const BottomSheetContainer = styled.div``;