forked from component/dialog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog.css
92 lines (74 loc) · 1.25 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
#dialog {
position: fixed;
left: 50%;
top: 150px;
max-width: 600px;
min-width: 250px;
border: 1px solid #eee;
background: white;
z-index: 1000;
}
#dialog .content {
padding: 15px 20px;
}
#dialog h1 {
margin: 0 0 5px 0;
font-size: 16px;
font-weight: normal;
}
#dialog p {
margin: 0;
padding: 0;
font-size: .9em;
}
/* 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);
}