UNPKG

5.56 kBCSSView Raw
1.rmc-dialog {
2 position: relative;
3 width: auto;
4 margin: 10px;
5}
6.rmc-dialog-wrap {
7 position: fixed;
8 overflow: auto;
9 top: 0;
10 right: 0;
11 bottom: 0;
12 left: 0;
13 z-index: 1050;
14 -webkit-overflow-scrolling: touch;
15 outline: 0;
16}
17.rmc-dialog-title {
18 margin: 0;
19 font-size: 14px;
20 line-height: 21px;
21 font-weight: bold;
22}
23.rmc-dialog-content {
24 position: relative;
25 background-color: #ffffff;
26 border: none;
27 border-radius: 6px 6px;
28 background-clip: padding-box;
29}
30.rmc-dialog-close {
31 cursor: pointer;
32 border: 0;
33 background: transparent;
34 font-size: 21px;
35 position: absolute;
36 right: 20px;
37 top: 12px;
38 font-weight: 700;
39 line-height: 1;
40 color: #000;
41 text-shadow: 0 1px 0 #fff;
42 filter: alpha(opacity=20);
43 opacity: .2;
44 text-decoration: none;
45}
46.rmc-dialog-close-x:after {
47 content: '×';
48}
49.rmc-dialog-close:hover {
50 opacity: 1;
51 filter: alpha(opacity=100);
52 text-decoration: none;
53}
54.rmc-dialog-header {
55 padding: 13px 20px 14px 20px;
56 border-radius: 5px 5px 0 0;
57 background: #fff;
58 color: #666;
59 border-bottom: 1px solid #e9e9e9;
60}
61.rmc-dialog-body {
62 padding: 20px;
63}
64.rmc-dialog-footer {
65 border-top: 1px solid #e9e9e9;
66 padding: 10px 20px 10px 10px;
67 text-align: right;
68 border-radius: 0 0 5px 5px;
69}
70.rmc-dialog-zoom-enter,
71.rmc-dialog-zoom-appear {
72 opacity: 0;
73 -webkit-animation-duration: 0.3s;
74 animation-duration: 0.3s;
75 -webkit-animation-fill-mode: both;
76 animation-fill-mode: both;
77 -webkit-animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
78 animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
79 -webkit-animation-play-state: paused;
80 animation-play-state: paused;
81}
82.rmc-dialog-zoom-leave {
83 -webkit-animation-duration: 0.3s;
84 animation-duration: 0.3s;
85 -webkit-animation-fill-mode: both;
86 animation-fill-mode: both;
87 -webkit-animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
88 animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
89 -webkit-animation-play-state: paused;
90 animation-play-state: paused;
91}
92.rmc-dialog-zoom-enter.rmc-dialog-zoom-enter-active,
93.rmc-dialog-zoom-appear.rmc-dialog-zoom-appear-active {
94 -webkit-animation-name: rcDialogZoomIn;
95 animation-name: rcDialogZoomIn;
96 -webkit-animation-play-state: running;
97 animation-play-state: running;
98}
99.rmc-dialog-zoom-leave.rmc-dialog-zoom-leave-active {
100 -webkit-animation-name: rcDialogZoomOut;
101 animation-name: rcDialogZoomOut;
102 -webkit-animation-play-state: running;
103 animation-play-state: running;
104}
105@-webkit-keyframes rcDialogZoomIn {
106 0% {
107 opacity: 0;
108 -webkit-transform: scale(0, 0);
109 transform: scale(0, 0);
110 }
111 100% {
112 opacity: 1;
113 -webkit-transform: scale(1, 1);
114 transform: scale(1, 1);
115 }
116}
117@keyframes rcDialogZoomIn {
118 0% {
119 opacity: 0;
120 -webkit-transform: scale(0, 0);
121 transform: scale(0, 0);
122 }
123 100% {
124 opacity: 1;
125 -webkit-transform: scale(1, 1);
126 transform: scale(1, 1);
127 }
128}
129@-webkit-keyframes rcDialogZoomOut {
130 0% {
131 -webkit-transform: scale(1, 1);
132 transform: scale(1, 1);
133 }
134 100% {
135 opacity: 0;
136 -webkit-transform: scale(0, 0);
137 transform: scale(0, 0);
138 }
139}
140@keyframes rcDialogZoomOut {
141 0% {
142 -webkit-transform: scale(1, 1);
143 transform: scale(1, 1);
144 }
145 100% {
146 opacity: 0;
147 -webkit-transform: scale(0, 0);
148 transform: scale(0, 0);
149 }
150}
151@media (min-width: 768px) {
152 .rmc-dialog {
153 width: 600px;
154 margin: 30px auto;
155 }
156}
157.rmc-dialog-mask {
158 position: fixed;
159 top: 0;
160 right: 0;
161 left: 0;
162 bottom: 0;
163 background-color: #373737;
164 background-color: rgba(55, 55, 55, 0.6);
165 height: 100%;
166 filter: alpha(opacity=50);
167 z-index: 1050;
168}
169.rmc-dialog-mask-hidden {
170 display: none;
171}
172.rmc-dialog-fade-enter,
173.rmc-dialog-fade-appear {
174 opacity: 0;
175 -webkit-animation-duration: 0.3s;
176 animation-duration: 0.3s;
177 -webkit-animation-fill-mode: both;
178 animation-fill-mode: both;
179 -webkit-animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
180 animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
181 -webkit-animation-play-state: paused;
182 animation-play-state: paused;
183}
184.rmc-dialog-fade-leave {
185 -webkit-animation-duration: 0.3s;
186 animation-duration: 0.3s;
187 -webkit-animation-fill-mode: both;
188 animation-fill-mode: both;
189 -webkit-animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
190 animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
191 -webkit-animation-play-state: paused;
192 animation-play-state: paused;
193}
194.rmc-dialog-fade-enter.rmc-dialog-fade-enter-active,
195.rmc-dialog-fade-appear.rmc-dialog-fade-appear-active {
196 -webkit-animation-name: rcDialogFadeIn;
197 animation-name: rcDialogFadeIn;
198 -webkit-animation-play-state: running;
199 animation-play-state: running;
200}
201.rmc-dialog-fade-leave.rmc-dialog-fade-leave-active {
202 -webkit-animation-name: rcDialogFadeOut;
203 animation-name: rcDialogFadeOut;
204 -webkit-animation-play-state: running;
205 animation-play-state: running;
206}
207@-webkit-keyframes rcDialogFadeIn {
208 0% {
209 opacity: 0;
210 }
211 100% {
212 opacity: 1;
213 }
214}
215@keyframes rcDialogFadeIn {
216 0% {
217 opacity: 0;
218 }
219 100% {
220 opacity: 1;
221 }
222}
223@-webkit-keyframes rcDialogFadeOut {
224 0% {
225 opacity: 1;
226 }
227 100% {
228 opacity: 0;
229 }
230}
231@keyframes rcDialogFadeOut {
232 0% {
233 opacity: 1;
234 }
235 100% {
236 opacity: 0;
237 }
238}