-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodal.css
50 lines (48 loc) · 835 Bytes
/
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
.modal {
/* display:none; */
display: inline-block;
display: inline-block;
position: fixed;
z-index:99999;
border-radius: 5px;
min-width:20%;
max-width: 80%;
box-shadow: 3px 3px 12px 0 rgba(0, 0, 0, 0.4);
background: #fff;
opacity: 0;
color: #aaa;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
transition: opacity 0.2s ease-in-out, top 0.2s ease-in-out ;
}
.modal-animate{
/* display: inline-block; */
top:50%;
opacity: 1;
}
.modal-overlay {
display: none;
width: 100%;
height: 100%;
position: fixed;
z-index:99998;
background: rgba(0,0,0,0.2);
top: 0;
right: 0;
left: 0;
bottom: 0;
opacity: 0;
transition: all 1s ease-in-out;
}
.modal .modal-content {
text-align: center;
padding:20px;
}
.modal .modal-close{
position: absolute;
top: 2px;
right: 5px;
cursor:pointer;
padding: 4px;
}