-
Notifications
You must be signed in to change notification settings - Fork 0
/
Popup.less
78 lines (65 loc) · 1.17 KB
/
Popup.less
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
66
67
68
69
70
71
72
73
74
75
76
77
78
.pop {
visibility: hidden;
}
.pop-show {
visibility: visible;
}
.pop-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
background: rgba(0, 0, 0, 0.6);
}
.pop-mask-hide {
background: #fff;
}
.pop-container {
position: fixed;
left: 50%;
top: 50%;
transform: translate3d(-50%, -50%, 0);
transform-origin: center;
transition: all 0.4s ease;
z-index: 11;
opacity: 0;
}
.pop-show .pop-container {
opacity: 1;
}
.pop-left .pop-container {
left: 0;
top: 50%;
transform: translate3d(-100%, -50%, 0);
}
.pop-show.pop-left .pop-container {
transform: translate3d(0, -50%, 0);
}
.pop-right .pop-container {
right: 0;
top: 50%;
left: auto;
transform: translate3d(100%, -50%, 0);
}
.pop-show.pop-right .pop-container {
transform: translate3d(0, -50%, 0);
}
.pop-bottom .pop-container {
top: auto;
left: 50%;
bottom: 0;
transform: translate3d(-50%, 100%, 0);
}
.pop-show.pop-bottom .pop-container {
transform: translate3d(-50%, 0, 0);
}
.pop-top .pop-container {
top: 0;
left: 50%;
transform: translate3d(-50%, -100%, 0);
}
.pop-show.pop-top .pop-container {
transform: translate3d(-50%, 0, 0);
}