-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodal.css
More file actions
45 lines (40 loc) · 736 Bytes
/
modal.css
File metadata and controls
45 lines (40 loc) · 736 Bytes
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
:root {
--modal-duration: 1s;
}
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
height: 100%;
width: 100%;
overflow: auto;
background: rgba(0,0,0,0.5);
}
.modal-content {
background: #fff;
text-align: center;
margin: 10% auto;
width: 350px;
border-radius: 10px;
padding: 3rem;
box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2), 0 7px 20px 0 rgba(0,0,0,0.17);
animation-name: modalopen;
animation-duration: var(--modal-duration);
}
.modal-content h1 {
margin-bottom: 1rem;
}
.modal-content p {
font-size: 1.2rem;
margin-top: 1rem;
}
@keyframes modalopen {
from {
opacity: 0;
}
to {
opacity: 1;
}
}