rough_swal 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +8 -0
- data/.travis.yml +23 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +173 -0
- data/MIT-LICENSE +20 -0
- data/README.md +134 -0
- data/Rakefile +4 -0
- data/app/assets/javascripts/sweetalert.min.js +1 -0
- data/app/assets/stylesheets/sweetalert.css +715 -0
- data/lib/rough_swal/version.rb +3 -0
- data/lib/rough_swal.rb +202 -0
- data/lib/tasks/rough_swal_tasks.rake +4 -0
- data/rough_swal.gemspec +31 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +14 -0
- data/spec/dummy/app/assets/javascripts/sweetalert.min.js +1 -0
- data/spec/dummy/app/assets/stylesheets/application.css +16 -0
- data/spec/dummy/app/assets/stylesheets/sweetalert.css +715 -0
- data/spec/dummy/app/controllers/alerts_controller.rb +44 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/alerts/index.html.erb +11 -0
- data/spec/dummy/app/views/alerts/templater.html.erb +1 -0
- data/spec/dummy/app/views/alerts/templater.json.erb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +42 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.def.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +9 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +64 -0
- data/spec/requests/alerts_request_spec.rb +126 -0
- data/spec/spec_helper.rb +95 -0
- metadata +234 -0
@@ -0,0 +1,715 @@
|
|
1
|
+
body.stop-scrolling {
|
2
|
+
height: 100%;
|
3
|
+
overflow: hidden; }
|
4
|
+
|
5
|
+
.sweet-overlay {
|
6
|
+
background-color: black;
|
7
|
+
/* IE8 */
|
8
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
|
9
|
+
/* IE8 */
|
10
|
+
background-color: rgba(0, 0, 0, 0.4);
|
11
|
+
position: fixed;
|
12
|
+
left: 0;
|
13
|
+
right: 0;
|
14
|
+
top: 0;
|
15
|
+
bottom: 0;
|
16
|
+
display: none;
|
17
|
+
z-index: 10000; }
|
18
|
+
|
19
|
+
.sweet-alert {
|
20
|
+
background-color: white;
|
21
|
+
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
22
|
+
width: 478px;
|
23
|
+
padding: 17px;
|
24
|
+
border-radius: 5px;
|
25
|
+
text-align: center;
|
26
|
+
position: fixed;
|
27
|
+
left: 50%;
|
28
|
+
top: 50%;
|
29
|
+
margin-left: -256px;
|
30
|
+
margin-top: -200px;
|
31
|
+
overflow: hidden;
|
32
|
+
display: none;
|
33
|
+
z-index: 99999; }
|
34
|
+
@media all and (max-width: 540px) {
|
35
|
+
.sweet-alert {
|
36
|
+
width: auto;
|
37
|
+
margin-left: 0;
|
38
|
+
margin-right: 0;
|
39
|
+
left: 15px;
|
40
|
+
right: 15px; } }
|
41
|
+
.sweet-alert h2 {
|
42
|
+
color: #575757;
|
43
|
+
font-size: 30px;
|
44
|
+
text-align: center;
|
45
|
+
font-weight: 600;
|
46
|
+
text-transform: none;
|
47
|
+
position: relative;
|
48
|
+
margin: 25px 0;
|
49
|
+
padding: 0;
|
50
|
+
line-height: 40px;
|
51
|
+
display: block; }
|
52
|
+
.sweet-alert p {
|
53
|
+
color: #797979;
|
54
|
+
font-size: 16px;
|
55
|
+
text-align: center;
|
56
|
+
font-weight: 300;
|
57
|
+
position: relative;
|
58
|
+
text-align: inherit;
|
59
|
+
float: none;
|
60
|
+
margin: 0;
|
61
|
+
padding: 0;
|
62
|
+
line-height: normal; }
|
63
|
+
.sweet-alert fieldset {
|
64
|
+
border: none;
|
65
|
+
position: relative; }
|
66
|
+
.sweet-alert .sa-error-container {
|
67
|
+
background-color: #f1f1f1;
|
68
|
+
margin-left: -17px;
|
69
|
+
margin-right: -17px;
|
70
|
+
overflow: hidden;
|
71
|
+
padding: 0 10px;
|
72
|
+
max-height: 0;
|
73
|
+
webkit-transition: padding 0.15s, max-height 0.15s;
|
74
|
+
transition: padding 0.15s, max-height 0.15s; }
|
75
|
+
.sweet-alert .sa-error-container.show {
|
76
|
+
padding: 10px 0;
|
77
|
+
max-height: 100px;
|
78
|
+
webkit-transition: padding 0.2s, max-height 0.2s;
|
79
|
+
transition: padding 0.25s, max-height 0.25s; }
|
80
|
+
.sweet-alert .sa-error-container .icon {
|
81
|
+
display: inline-block;
|
82
|
+
width: 24px;
|
83
|
+
height: 24px;
|
84
|
+
border-radius: 50%;
|
85
|
+
background-color: #ea7d7d;
|
86
|
+
color: white;
|
87
|
+
line-height: 24px;
|
88
|
+
text-align: center;
|
89
|
+
margin-right: 3px; }
|
90
|
+
.sweet-alert .sa-error-container p {
|
91
|
+
display: inline-block; }
|
92
|
+
.sweet-alert .sa-input-error {
|
93
|
+
position: absolute;
|
94
|
+
top: 29px;
|
95
|
+
right: 26px;
|
96
|
+
width: 20px;
|
97
|
+
height: 20px;
|
98
|
+
opacity: 0;
|
99
|
+
-webkit-transform: scale(0.5);
|
100
|
+
transform: scale(0.5);
|
101
|
+
-webkit-transform-origin: 50% 50%;
|
102
|
+
transform-origin: 50% 50%;
|
103
|
+
-webkit-transition: all 0.1s;
|
104
|
+
transition: all 0.1s; }
|
105
|
+
.sweet-alert .sa-input-error::before, .sweet-alert .sa-input-error::after {
|
106
|
+
content: "";
|
107
|
+
width: 20px;
|
108
|
+
height: 6px;
|
109
|
+
background-color: #f06e57;
|
110
|
+
border-radius: 3px;
|
111
|
+
position: absolute;
|
112
|
+
top: 50%;
|
113
|
+
margin-top: -4px;
|
114
|
+
left: 50%;
|
115
|
+
margin-left: -9px; }
|
116
|
+
.sweet-alert .sa-input-error::before {
|
117
|
+
-webkit-transform: rotate(-45deg);
|
118
|
+
transform: rotate(-45deg); }
|
119
|
+
.sweet-alert .sa-input-error::after {
|
120
|
+
-webkit-transform: rotate(45deg);
|
121
|
+
transform: rotate(45deg); }
|
122
|
+
.sweet-alert .sa-input-error.show {
|
123
|
+
opacity: 1;
|
124
|
+
-webkit-transform: scale(1);
|
125
|
+
transform: scale(1); }
|
126
|
+
.sweet-alert input {
|
127
|
+
width: 100%;
|
128
|
+
box-sizing: border-box;
|
129
|
+
border-radius: 3px;
|
130
|
+
border: 1px solid #d7d7d7;
|
131
|
+
height: 43px;
|
132
|
+
margin-top: 10px;
|
133
|
+
margin-bottom: 17px;
|
134
|
+
font-size: 18px;
|
135
|
+
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
|
136
|
+
padding: 0 12px;
|
137
|
+
display: none;
|
138
|
+
-webkit-transition: all 0.3s;
|
139
|
+
transition: all 0.3s; }
|
140
|
+
.sweet-alert input:focus {
|
141
|
+
outline: none;
|
142
|
+
box-shadow: 0px 0px 3px #c4e6f5;
|
143
|
+
border: 1px solid #b4dbed; }
|
144
|
+
.sweet-alert input:focus::-moz-placeholder {
|
145
|
+
transition: opacity 0.3s 0.03s ease;
|
146
|
+
opacity: 0.5; }
|
147
|
+
.sweet-alert input:focus:-ms-input-placeholder {
|
148
|
+
transition: opacity 0.3s 0.03s ease;
|
149
|
+
opacity: 0.5; }
|
150
|
+
.sweet-alert input:focus::-webkit-input-placeholder {
|
151
|
+
transition: opacity 0.3s 0.03s ease;
|
152
|
+
opacity: 0.5; }
|
153
|
+
.sweet-alert input::-moz-placeholder {
|
154
|
+
color: #bdbdbd; }
|
155
|
+
.sweet-alert input:-ms-input-placeholder {
|
156
|
+
color: #bdbdbd; }
|
157
|
+
.sweet-alert input::-webkit-input-placeholder {
|
158
|
+
color: #bdbdbd; }
|
159
|
+
.sweet-alert.show-input input {
|
160
|
+
display: block; }
|
161
|
+
.sweet-alert button {
|
162
|
+
background-color: #AEDEF4;
|
163
|
+
color: white;
|
164
|
+
border: none;
|
165
|
+
box-shadow: none;
|
166
|
+
font-size: 17px;
|
167
|
+
font-weight: 500;
|
168
|
+
-webkit-border-radius: 4px;
|
169
|
+
border-radius: 5px;
|
170
|
+
padding: 10px 32px;
|
171
|
+
margin: 26px 5px 0 5px;
|
172
|
+
cursor: pointer; }
|
173
|
+
.sweet-alert button:focus {
|
174
|
+
outline: none;
|
175
|
+
box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
|
176
|
+
.sweet-alert button:hover {
|
177
|
+
background-color: #a1d9f2; }
|
178
|
+
.sweet-alert button:active {
|
179
|
+
background-color: #81ccee; }
|
180
|
+
.sweet-alert button.cancel {
|
181
|
+
background-color: #D0D0D0; }
|
182
|
+
.sweet-alert button.cancel:hover {
|
183
|
+
background-color: #c8c8c8; }
|
184
|
+
.sweet-alert button.cancel:active {
|
185
|
+
background-color: #b6b6b6; }
|
186
|
+
.sweet-alert button.cancel:focus {
|
187
|
+
box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
|
188
|
+
.sweet-alert button::-moz-focus-inner {
|
189
|
+
border: 0; }
|
190
|
+
.sweet-alert[data-has-cancel-button=false] button {
|
191
|
+
box-shadow: none !important; }
|
192
|
+
.sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
|
193
|
+
padding-bottom: 40px; }
|
194
|
+
.sweet-alert .sa-icon {
|
195
|
+
width: 80px;
|
196
|
+
height: 80px;
|
197
|
+
border: 4px solid gray;
|
198
|
+
-webkit-border-radius: 40px;
|
199
|
+
border-radius: 40px;
|
200
|
+
border-radius: 50%;
|
201
|
+
margin: 20px auto;
|
202
|
+
padding: 0;
|
203
|
+
position: relative;
|
204
|
+
box-sizing: content-box; }
|
205
|
+
.sweet-alert .sa-icon.sa-error {
|
206
|
+
border-color: #F27474; }
|
207
|
+
.sweet-alert .sa-icon.sa-error .sa-x-mark {
|
208
|
+
position: relative;
|
209
|
+
display: block; }
|
210
|
+
.sweet-alert .sa-icon.sa-error .sa-line {
|
211
|
+
position: absolute;
|
212
|
+
height: 5px;
|
213
|
+
width: 47px;
|
214
|
+
background-color: #F27474;
|
215
|
+
display: block;
|
216
|
+
top: 37px;
|
217
|
+
border-radius: 2px; }
|
218
|
+
.sweet-alert .sa-icon.sa-error .sa-line.sa-left {
|
219
|
+
-webkit-transform: rotate(45deg);
|
220
|
+
transform: rotate(45deg);
|
221
|
+
left: 17px; }
|
222
|
+
.sweet-alert .sa-icon.sa-error .sa-line.sa-right {
|
223
|
+
-webkit-transform: rotate(-45deg);
|
224
|
+
transform: rotate(-45deg);
|
225
|
+
right: 16px; }
|
226
|
+
.sweet-alert .sa-icon.sa-warning {
|
227
|
+
border-color: #F8BB86; }
|
228
|
+
.sweet-alert .sa-icon.sa-warning .sa-body {
|
229
|
+
position: absolute;
|
230
|
+
width: 5px;
|
231
|
+
height: 47px;
|
232
|
+
left: 50%;
|
233
|
+
top: 10px;
|
234
|
+
-webkit-border-radius: 2px;
|
235
|
+
border-radius: 2px;
|
236
|
+
margin-left: -2px;
|
237
|
+
background-color: #F8BB86; }
|
238
|
+
.sweet-alert .sa-icon.sa-warning .sa-dot {
|
239
|
+
position: absolute;
|
240
|
+
width: 7px;
|
241
|
+
height: 7px;
|
242
|
+
-webkit-border-radius: 50%;
|
243
|
+
border-radius: 50%;
|
244
|
+
margin-left: -3px;
|
245
|
+
left: 50%;
|
246
|
+
bottom: 10px;
|
247
|
+
background-color: #F8BB86; }
|
248
|
+
.sweet-alert .sa-icon.sa-info {
|
249
|
+
border-color: #C9DAE1; }
|
250
|
+
.sweet-alert .sa-icon.sa-info::before {
|
251
|
+
content: "";
|
252
|
+
position: absolute;
|
253
|
+
width: 5px;
|
254
|
+
height: 29px;
|
255
|
+
left: 50%;
|
256
|
+
bottom: 17px;
|
257
|
+
border-radius: 2px;
|
258
|
+
margin-left: -2px;
|
259
|
+
background-color: #C9DAE1; }
|
260
|
+
.sweet-alert .sa-icon.sa-info::after {
|
261
|
+
content: "";
|
262
|
+
position: absolute;
|
263
|
+
width: 7px;
|
264
|
+
height: 7px;
|
265
|
+
border-radius: 50%;
|
266
|
+
margin-left: -3px;
|
267
|
+
top: 19px;
|
268
|
+
background-color: #C9DAE1; }
|
269
|
+
.sweet-alert .sa-icon.sa-success {
|
270
|
+
border-color: #A5DC86; }
|
271
|
+
.sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
|
272
|
+
content: '';
|
273
|
+
-webkit-border-radius: 40px;
|
274
|
+
border-radius: 40px;
|
275
|
+
border-radius: 50%;
|
276
|
+
position: absolute;
|
277
|
+
width: 60px;
|
278
|
+
height: 120px;
|
279
|
+
background: white;
|
280
|
+
-webkit-transform: rotate(45deg);
|
281
|
+
transform: rotate(45deg); }
|
282
|
+
.sweet-alert .sa-icon.sa-success::before {
|
283
|
+
-webkit-border-radius: 120px 0 0 120px;
|
284
|
+
border-radius: 120px 0 0 120px;
|
285
|
+
top: -7px;
|
286
|
+
left: -33px;
|
287
|
+
-webkit-transform: rotate(-45deg);
|
288
|
+
transform: rotate(-45deg);
|
289
|
+
-webkit-transform-origin: 60px 60px;
|
290
|
+
transform-origin: 60px 60px; }
|
291
|
+
.sweet-alert .sa-icon.sa-success::after {
|
292
|
+
-webkit-border-radius: 0 120px 120px 0;
|
293
|
+
border-radius: 0 120px 120px 0;
|
294
|
+
top: -11px;
|
295
|
+
left: 30px;
|
296
|
+
-webkit-transform: rotate(-45deg);
|
297
|
+
transform: rotate(-45deg);
|
298
|
+
-webkit-transform-origin: 0px 60px;
|
299
|
+
transform-origin: 0px 60px; }
|
300
|
+
.sweet-alert .sa-icon.sa-success .sa-placeholder {
|
301
|
+
width: 80px;
|
302
|
+
height: 80px;
|
303
|
+
border: 4px solid rgba(165, 220, 134, 0.2);
|
304
|
+
-webkit-border-radius: 40px;
|
305
|
+
border-radius: 40px;
|
306
|
+
border-radius: 50%;
|
307
|
+
box-sizing: content-box;
|
308
|
+
position: absolute;
|
309
|
+
left: -4px;
|
310
|
+
top: -4px;
|
311
|
+
z-index: 2; }
|
312
|
+
.sweet-alert .sa-icon.sa-success .sa-fix {
|
313
|
+
width: 5px;
|
314
|
+
height: 90px;
|
315
|
+
background-color: white;
|
316
|
+
position: absolute;
|
317
|
+
left: 28px;
|
318
|
+
top: 8px;
|
319
|
+
z-index: 1;
|
320
|
+
-webkit-transform: rotate(-45deg);
|
321
|
+
transform: rotate(-45deg); }
|
322
|
+
.sweet-alert .sa-icon.sa-success .sa-line {
|
323
|
+
height: 5px;
|
324
|
+
background-color: #A5DC86;
|
325
|
+
display: block;
|
326
|
+
border-radius: 2px;
|
327
|
+
position: absolute;
|
328
|
+
z-index: 2; }
|
329
|
+
.sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
|
330
|
+
width: 25px;
|
331
|
+
left: 14px;
|
332
|
+
top: 46px;
|
333
|
+
-webkit-transform: rotate(45deg);
|
334
|
+
transform: rotate(45deg); }
|
335
|
+
.sweet-alert .sa-icon.sa-success .sa-line.sa-long {
|
336
|
+
width: 47px;
|
337
|
+
right: 8px;
|
338
|
+
top: 38px;
|
339
|
+
-webkit-transform: rotate(-45deg);
|
340
|
+
transform: rotate(-45deg); }
|
341
|
+
.sweet-alert .sa-icon.sa-custom {
|
342
|
+
background-size: contain;
|
343
|
+
border-radius: 0;
|
344
|
+
border: none;
|
345
|
+
background-position: center center;
|
346
|
+
background-repeat: no-repeat; }
|
347
|
+
|
348
|
+
/*
|
349
|
+
* Animations
|
350
|
+
*/
|
351
|
+
@-webkit-keyframes showSweetAlert {
|
352
|
+
0% {
|
353
|
+
transform: scale(0.7);
|
354
|
+
-webkit-transform: scale(0.7); }
|
355
|
+
45% {
|
356
|
+
transform: scale(1.05);
|
357
|
+
-webkit-transform: scale(1.05); }
|
358
|
+
80% {
|
359
|
+
transform: scale(0.95);
|
360
|
+
-webkit-transform: scale(0.95); }
|
361
|
+
100% {
|
362
|
+
transform: scale(1);
|
363
|
+
-webkit-transform: scale(1); } }
|
364
|
+
|
365
|
+
@keyframes showSweetAlert {
|
366
|
+
0% {
|
367
|
+
transform: scale(0.7);
|
368
|
+
-webkit-transform: scale(0.7); }
|
369
|
+
45% {
|
370
|
+
transform: scale(1.05);
|
371
|
+
-webkit-transform: scale(1.05); }
|
372
|
+
80% {
|
373
|
+
transform: scale(0.95);
|
374
|
+
-webkit-transform: scale(0.95); }
|
375
|
+
100% {
|
376
|
+
transform: scale(1);
|
377
|
+
-webkit-transform: scale(1); } }
|
378
|
+
|
379
|
+
@-webkit-keyframes hideSweetAlert {
|
380
|
+
0% {
|
381
|
+
transform: scale(1);
|
382
|
+
-webkit-transform: scale(1); }
|
383
|
+
100% {
|
384
|
+
transform: scale(0.5);
|
385
|
+
-webkit-transform: scale(0.5); } }
|
386
|
+
|
387
|
+
@keyframes hideSweetAlert {
|
388
|
+
0% {
|
389
|
+
transform: scale(1);
|
390
|
+
-webkit-transform: scale(1); }
|
391
|
+
100% {
|
392
|
+
transform: scale(0.5);
|
393
|
+
-webkit-transform: scale(0.5); } }
|
394
|
+
|
395
|
+
@-webkit-keyframes slideFromTop {
|
396
|
+
0% {
|
397
|
+
top: 0%; }
|
398
|
+
100% {
|
399
|
+
top: 50%; } }
|
400
|
+
|
401
|
+
@keyframes slideFromTop {
|
402
|
+
0% {
|
403
|
+
top: 0%; }
|
404
|
+
100% {
|
405
|
+
top: 50%; } }
|
406
|
+
|
407
|
+
@-webkit-keyframes slideToTop {
|
408
|
+
0% {
|
409
|
+
top: 50%; }
|
410
|
+
100% {
|
411
|
+
top: 0%; } }
|
412
|
+
|
413
|
+
@keyframes slideToTop {
|
414
|
+
0% {
|
415
|
+
top: 50%; }
|
416
|
+
100% {
|
417
|
+
top: 0%; } }
|
418
|
+
|
419
|
+
@-webkit-keyframes slideFromBottom {
|
420
|
+
0% {
|
421
|
+
top: 70%; }
|
422
|
+
100% {
|
423
|
+
top: 50%; } }
|
424
|
+
|
425
|
+
@keyframes slideFromBottom {
|
426
|
+
0% {
|
427
|
+
top: 70%; }
|
428
|
+
100% {
|
429
|
+
top: 50%; } }
|
430
|
+
|
431
|
+
@-webkit-keyframes slideToBottom {
|
432
|
+
0% {
|
433
|
+
top: 50%; }
|
434
|
+
100% {
|
435
|
+
top: 70%; } }
|
436
|
+
|
437
|
+
@keyframes slideToBottom {
|
438
|
+
0% {
|
439
|
+
top: 50%; }
|
440
|
+
100% {
|
441
|
+
top: 70%; } }
|
442
|
+
|
443
|
+
.showSweetAlert[data-animation=pop] {
|
444
|
+
-webkit-animation: showSweetAlert 0.3s;
|
445
|
+
animation: showSweetAlert 0.3s; }
|
446
|
+
|
447
|
+
.showSweetAlert[data-animation=none] {
|
448
|
+
-webkit-animation: none;
|
449
|
+
animation: none; }
|
450
|
+
|
451
|
+
.showSweetAlert[data-animation=slide-from-top] {
|
452
|
+
-webkit-animation: slideFromTop 0.3s;
|
453
|
+
animation: slideFromTop 0.3s; }
|
454
|
+
|
455
|
+
.showSweetAlert[data-animation=slide-from-bottom] {
|
456
|
+
-webkit-animation: slideFromBottom 0.3s;
|
457
|
+
animation: slideFromBottom 0.3s; }
|
458
|
+
|
459
|
+
.hideSweetAlert[data-animation=pop] {
|
460
|
+
-webkit-animation: hideSweetAlert 0.2s;
|
461
|
+
animation: hideSweetAlert 0.2s; }
|
462
|
+
|
463
|
+
.hideSweetAlert[data-animation=none] {
|
464
|
+
-webkit-animation: none;
|
465
|
+
animation: none; }
|
466
|
+
|
467
|
+
.hideSweetAlert[data-animation=slide-from-top] {
|
468
|
+
-webkit-animation: slideToTop 0.4s;
|
469
|
+
animation: slideToTop 0.4s; }
|
470
|
+
|
471
|
+
.hideSweetAlert[data-animation=slide-from-bottom] {
|
472
|
+
-webkit-animation: slideToBottom 0.3s;
|
473
|
+
animation: slideToBottom 0.3s; }
|
474
|
+
|
475
|
+
@-webkit-keyframes animateSuccessTip {
|
476
|
+
0% {
|
477
|
+
width: 0;
|
478
|
+
left: 1px;
|
479
|
+
top: 19px; }
|
480
|
+
54% {
|
481
|
+
width: 0;
|
482
|
+
left: 1px;
|
483
|
+
top: 19px; }
|
484
|
+
70% {
|
485
|
+
width: 50px;
|
486
|
+
left: -8px;
|
487
|
+
top: 37px; }
|
488
|
+
84% {
|
489
|
+
width: 17px;
|
490
|
+
left: 21px;
|
491
|
+
top: 48px; }
|
492
|
+
100% {
|
493
|
+
width: 25px;
|
494
|
+
left: 14px;
|
495
|
+
top: 45px; } }
|
496
|
+
|
497
|
+
@keyframes animateSuccessTip {
|
498
|
+
0% {
|
499
|
+
width: 0;
|
500
|
+
left: 1px;
|
501
|
+
top: 19px; }
|
502
|
+
54% {
|
503
|
+
width: 0;
|
504
|
+
left: 1px;
|
505
|
+
top: 19px; }
|
506
|
+
70% {
|
507
|
+
width: 50px;
|
508
|
+
left: -8px;
|
509
|
+
top: 37px; }
|
510
|
+
84% {
|
511
|
+
width: 17px;
|
512
|
+
left: 21px;
|
513
|
+
top: 48px; }
|
514
|
+
100% {
|
515
|
+
width: 25px;
|
516
|
+
left: 14px;
|
517
|
+
top: 45px; } }
|
518
|
+
|
519
|
+
@-webkit-keyframes animateSuccessLong {
|
520
|
+
0% {
|
521
|
+
width: 0;
|
522
|
+
right: 46px;
|
523
|
+
top: 54px; }
|
524
|
+
65% {
|
525
|
+
width: 0;
|
526
|
+
right: 46px;
|
527
|
+
top: 54px; }
|
528
|
+
84% {
|
529
|
+
width: 55px;
|
530
|
+
right: 0px;
|
531
|
+
top: 35px; }
|
532
|
+
100% {
|
533
|
+
width: 47px;
|
534
|
+
right: 8px;
|
535
|
+
top: 38px; } }
|
536
|
+
|
537
|
+
@keyframes animateSuccessLong {
|
538
|
+
0% {
|
539
|
+
width: 0;
|
540
|
+
right: 46px;
|
541
|
+
top: 54px; }
|
542
|
+
65% {
|
543
|
+
width: 0;
|
544
|
+
right: 46px;
|
545
|
+
top: 54px; }
|
546
|
+
84% {
|
547
|
+
width: 55px;
|
548
|
+
right: 0px;
|
549
|
+
top: 35px; }
|
550
|
+
100% {
|
551
|
+
width: 47px;
|
552
|
+
right: 8px;
|
553
|
+
top: 38px; } }
|
554
|
+
|
555
|
+
@-webkit-keyframes rotatePlaceholder {
|
556
|
+
0% {
|
557
|
+
transform: rotate(-45deg);
|
558
|
+
-webkit-transform: rotate(-45deg); }
|
559
|
+
5% {
|
560
|
+
transform: rotate(-45deg);
|
561
|
+
-webkit-transform: rotate(-45deg); }
|
562
|
+
12% {
|
563
|
+
transform: rotate(-405deg);
|
564
|
+
-webkit-transform: rotate(-405deg); }
|
565
|
+
100% {
|
566
|
+
transform: rotate(-405deg);
|
567
|
+
-webkit-transform: rotate(-405deg); } }
|
568
|
+
|
569
|
+
@keyframes rotatePlaceholder {
|
570
|
+
0% {
|
571
|
+
transform: rotate(-45deg);
|
572
|
+
-webkit-transform: rotate(-45deg); }
|
573
|
+
5% {
|
574
|
+
transform: rotate(-45deg);
|
575
|
+
-webkit-transform: rotate(-45deg); }
|
576
|
+
12% {
|
577
|
+
transform: rotate(-405deg);
|
578
|
+
-webkit-transform: rotate(-405deg); }
|
579
|
+
100% {
|
580
|
+
transform: rotate(-405deg);
|
581
|
+
-webkit-transform: rotate(-405deg); } }
|
582
|
+
|
583
|
+
.animateSuccessTip {
|
584
|
+
-webkit-animation: animateSuccessTip 0.75s;
|
585
|
+
animation: animateSuccessTip 0.75s; }
|
586
|
+
|
587
|
+
.animateSuccessLong {
|
588
|
+
-webkit-animation: animateSuccessLong 0.75s;
|
589
|
+
animation: animateSuccessLong 0.75s; }
|
590
|
+
|
591
|
+
.sa-icon.sa-success.animate::after {
|
592
|
+
-webkit-animation: rotatePlaceholder 4.25s ease-in;
|
593
|
+
animation: rotatePlaceholder 4.25s ease-in; }
|
594
|
+
|
595
|
+
@-webkit-keyframes animateErrorIcon {
|
596
|
+
0% {
|
597
|
+
transform: rotateX(100deg);
|
598
|
+
-webkit-transform: rotateX(100deg);
|
599
|
+
opacity: 0; }
|
600
|
+
100% {
|
601
|
+
transform: rotateX(0deg);
|
602
|
+
-webkit-transform: rotateX(0deg);
|
603
|
+
opacity: 1; } }
|
604
|
+
|
605
|
+
@keyframes animateErrorIcon {
|
606
|
+
0% {
|
607
|
+
transform: rotateX(100deg);
|
608
|
+
-webkit-transform: rotateX(100deg);
|
609
|
+
opacity: 0; }
|
610
|
+
100% {
|
611
|
+
transform: rotateX(0deg);
|
612
|
+
-webkit-transform: rotateX(0deg);
|
613
|
+
opacity: 1; } }
|
614
|
+
|
615
|
+
.animateErrorIcon {
|
616
|
+
-webkit-animation: animateErrorIcon 0.5s;
|
617
|
+
animation: animateErrorIcon 0.5s; }
|
618
|
+
|
619
|
+
@-webkit-keyframes animateXMark {
|
620
|
+
0% {
|
621
|
+
transform: scale(0.4);
|
622
|
+
-webkit-transform: scale(0.4);
|
623
|
+
margin-top: 26px;
|
624
|
+
opacity: 0; }
|
625
|
+
50% {
|
626
|
+
transform: scale(0.4);
|
627
|
+
-webkit-transform: scale(0.4);
|
628
|
+
margin-top: 26px;
|
629
|
+
opacity: 0; }
|
630
|
+
80% {
|
631
|
+
transform: scale(1.15);
|
632
|
+
-webkit-transform: scale(1.15);
|
633
|
+
margin-top: -6px; }
|
634
|
+
100% {
|
635
|
+
transform: scale(1);
|
636
|
+
-webkit-transform: scale(1);
|
637
|
+
margin-top: 0;
|
638
|
+
opacity: 1; } }
|
639
|
+
|
640
|
+
@keyframes animateXMark {
|
641
|
+
0% {
|
642
|
+
transform: scale(0.4);
|
643
|
+
-webkit-transform: scale(0.4);
|
644
|
+
margin-top: 26px;
|
645
|
+
opacity: 0; }
|
646
|
+
50% {
|
647
|
+
transform: scale(0.4);
|
648
|
+
-webkit-transform: scale(0.4);
|
649
|
+
margin-top: 26px;
|
650
|
+
opacity: 0; }
|
651
|
+
80% {
|
652
|
+
transform: scale(1.15);
|
653
|
+
-webkit-transform: scale(1.15);
|
654
|
+
margin-top: -6px; }
|
655
|
+
100% {
|
656
|
+
transform: scale(1);
|
657
|
+
-webkit-transform: scale(1);
|
658
|
+
margin-top: 0;
|
659
|
+
opacity: 1; } }
|
660
|
+
|
661
|
+
.animateXMark {
|
662
|
+
-webkit-animation: animateXMark 0.5s;
|
663
|
+
animation: animateXMark 0.5s; }
|
664
|
+
|
665
|
+
@-webkit-keyframes pulseWarning {
|
666
|
+
0% {
|
667
|
+
border-color: #F8D486; }
|
668
|
+
100% {
|
669
|
+
border-color: #F8BB86; } }
|
670
|
+
|
671
|
+
@keyframes pulseWarning {
|
672
|
+
0% {
|
673
|
+
border-color: #F8D486; }
|
674
|
+
100% {
|
675
|
+
border-color: #F8BB86; } }
|
676
|
+
|
677
|
+
.pulseWarning {
|
678
|
+
-webkit-animation: pulseWarning 0.75s infinite alternate;
|
679
|
+
animation: pulseWarning 0.75s infinite alternate; }
|
680
|
+
|
681
|
+
@-webkit-keyframes pulseWarningIns {
|
682
|
+
0% {
|
683
|
+
background-color: #F8D486; }
|
684
|
+
100% {
|
685
|
+
background-color: #F8BB86; } }
|
686
|
+
|
687
|
+
@keyframes pulseWarningIns {
|
688
|
+
0% {
|
689
|
+
background-color: #F8D486; }
|
690
|
+
100% {
|
691
|
+
background-color: #F8BB86; } }
|
692
|
+
|
693
|
+
.pulseWarningIns {
|
694
|
+
-webkit-animation: pulseWarningIns 0.75s infinite alternate;
|
695
|
+
animation: pulseWarningIns 0.75s infinite alternate; }
|
696
|
+
|
697
|
+
/* Internet Explorer 9 has some special quirks that are fixed here */
|
698
|
+
/* The icons are not animated. */
|
699
|
+
/* This file is automatically merged into sweet-alert.min.js through Gulp */
|
700
|
+
/* Error icon */
|
701
|
+
.sweet-alert .sa-icon.sa-error .sa-line.sa-left {
|
702
|
+
-ms-transform: rotate(45deg) \9; }
|
703
|
+
|
704
|
+
.sweet-alert .sa-icon.sa-error .sa-line.sa-right {
|
705
|
+
-ms-transform: rotate(-45deg) \9; }
|
706
|
+
|
707
|
+
/* Success icon */
|
708
|
+
.sweet-alert .sa-icon.sa-success {
|
709
|
+
border-color: transparent\9; }
|
710
|
+
|
711
|
+
.sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
|
712
|
+
-ms-transform: rotate(45deg) \9; }
|
713
|
+
|
714
|
+
.sweet-alert .sa-icon.sa-success .sa-line.sa-long {
|
715
|
+
-ms-transform: rotate(-45deg) \9; }
|