-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdialog.css
93 lines (75 loc) · 1.31 KB
/
dialog.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.dialog {
position: fixed;
top: 150px;
left: 5%;
width: 90%;
z-index: 1000;
text-align: center;
}
.dialog .content {
box-sizing: border-box;
position: relative;
background: white;
max-width: 600px;
min-width: 252px;
border: 1px solid #eee;
padding: 15px 20px;
display: inline-block;
text-align: left;
}
/* close */
.dialog .close {
position: absolute;
top: 3px;
right: 10px;
text-decoration: none;
color: #888;
font-size: 16px;
font-weight: bold;
display: none;
}
.dialog .close em {
display: none;
}
.dialog.closable .close {
display: block;
}
.dialog .close:hover {
color: black;
}
.dialog .close:active {
margin-top: 1px;
}
/* slide */
.dialog.slide {
-webkit-transition: opacity 300ms, top 300ms;
-moz-transition: opacity 300ms, top 300ms;
}
.dialog.slide.hide {
opacity: 0;
top: -500px;
}
/* fade */
.dialog.fade {
-webkit-transition: opacity 300ms;
-moz-transition: opacity 300ms;
}
.dialog.fade.hide {
opacity: 0;
}
/* scale */
.dialog.scale {
-webkit-transition: -webkit-transform 300ms;
-moz-transition: -moz-transform 300ms;
-webkit-transform: scale(1);
-moz-transform: scale(1);
}
.dialog.scale.hide {
-webkit-transform: scale(0);
-moz-transform: scale(0);
}
/* off-center */
.dialog.off-center {
text-align: left;
width: inherit;
}