-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodal.css
65 lines (57 loc) · 1.02 KB
/
modal.css
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
56
57
58
59
60
61
62
63
64
65
@import "fyndiq-styles-colors/colors.css";
.bodyFixed {
overflow-y: hidden;
}
@keyframes overlayAppear {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: color(var(--color-black) a(40%));
padding: 0 10px;
overflow: scroll;
opacity: 0;
animation: overlayAppear .2s forwards;
}
@keyframes wrapperAppear {
from {
transform: scale(.9);
}
to {
transform: scale(1);
}
}
.wrapper {
position: relative;
width: 700px;
max-width: 100%;
min-height: 100px;
margin: 10px auto 50px;
border-radius: 4px;
background: var(--color-white);
box-shadow: 0 0 15px 0 color(var(--color-black) a(15%));
transform: scale(.9);
animation: wrapperAppear .15s cubic-bezier(.23, 1, .32, 1.2) forwards;
}
.close {
position: absolute;
right: 0;
top: 0;
padding: 10px;
border: 0;
background: transparent;
font-size: 20px;
cursor: pointer;
color: inherit;
font-family: inherit;
font-weight: 300;
}