sweet-alert 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require ./sweet-alert
3
+ */
@@ -0,0 +1,605 @@
1
+ @import url(//fonts.googleapis.com/css?family=Open+Sans:400,600,700,300);
2
+ .sweet-overlay {
3
+ background-color: rgba(0, 0, 0, 0.4);
4
+ position: fixed;
5
+ left: 0;
6
+ right: 0;
7
+ top: 0;
8
+ bottom: 0;
9
+ display: none;
10
+ z-index: 1000; }
11
+
12
+ .sweet-alert {
13
+ background-color: white;
14
+ font-family: 'Open Sans', sans-serif;
15
+ width: 478px;
16
+ padding: 17px;
17
+ border-radius: 5px;
18
+ text-align: center;
19
+ position: fixed;
20
+ left: 50%;
21
+ top: 50%;
22
+ margin-left: -256px;
23
+ margin-top: -200px;
24
+ overflow: hidden;
25
+ display: none;
26
+ z-index: 2000; }
27
+ @media all and (max-width: 540px) {
28
+ .sweet-alert {
29
+ width: auto;
30
+ margin-left: 0;
31
+ margin-right: 0;
32
+ left: 15px;
33
+ right: 15px; } }
34
+ .sweet-alert h2 {
35
+ color: #575757;
36
+ font-size: 30px;
37
+ text-align: center;
38
+ font-weight: 600;
39
+ text-transform: none;
40
+ position: relative; }
41
+ .sweet-alert p {
42
+ color: #797979;
43
+ font-size: 16px;
44
+ text-align: center;
45
+ font-weight: 300;
46
+ position: relative;
47
+ margin: 0;
48
+ line-height: normal; }
49
+ .sweet-alert button {
50
+ background-color: #AEDEF4;
51
+ color: white;
52
+ border: none;
53
+ box-shadow: none;
54
+ font-size: 17px;
55
+ font-weight: 500;
56
+ border-radius: 5px;
57
+ padding: 10px 32px;
58
+ margin: 26px 5px 0 5px;
59
+ cursor: pointer; }
60
+ .sweet-alert button:focus {
61
+ outline: none;
62
+ box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
63
+ .sweet-alert button:hover {
64
+ background-color: #a1d9f2; }
65
+ .sweet-alert button:active {
66
+ background-color: #81ccee; }
67
+ .sweet-alert button.cancel {
68
+ background-color: #D0D0D0; }
69
+ .sweet-alert button.cancel:hover {
70
+ background-color: #c8c8c8; }
71
+ .sweet-alert button.cancel:active {
72
+ background-color: #b6b6b6; }
73
+ .sweet-alert button.cancel:focus {
74
+ box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
75
+ .sweet-alert button::-moz-focus-inner {
76
+ border: 0; }
77
+ .sweet-alert[data-has-cancel-button=false] button {
78
+ box-shadow: none !important; }
79
+ .sweet-alert .icon {
80
+ width: 80px;
81
+ height: 80px;
82
+ border: 4px solid gray;
83
+ border-radius: 50%;
84
+ margin: 20px auto;
85
+ position: relative;
86
+ box-sizing: content-box; }
87
+ .sweet-alert .icon.error {
88
+ border-color: #F27474; }
89
+ .sweet-alert .icon.error .x-mark {
90
+ position: relative;
91
+ display: block; }
92
+ .sweet-alert .icon.error .line {
93
+ position: absolute;
94
+ height: 5px;
95
+ width: 47px;
96
+ background-color: #F27474;
97
+ display: block;
98
+ top: 37px;
99
+ border-radius: 2px; }
100
+ .sweet-alert .icon.error .line.left {
101
+ -webkit-transform: rotate(45deg);
102
+ transform: rotate(45deg);
103
+ left: 17px; }
104
+ .sweet-alert .icon.error .line.right {
105
+ -webkit-transform: rotate(-45deg);
106
+ transform: rotate(-45deg);
107
+ right: 16px; }
108
+ .sweet-alert .icon.warning {
109
+ border-color: #F8BB86; }
110
+ .sweet-alert .icon.warning .body {
111
+ position: absolute;
112
+ width: 5px;
113
+ height: 47px;
114
+ left: 50%;
115
+ top: 10px;
116
+ border-radius: 2px;
117
+ margin-left: -2px;
118
+ background-color: #F8BB86; }
119
+ .sweet-alert .icon.warning .dot {
120
+ position: absolute;
121
+ width: 7px;
122
+ height: 7px;
123
+ border-radius: 50%;
124
+ margin-left: -3px;
125
+ left: 50%;
126
+ bottom: 10px;
127
+ background-color: #F8BB86; }
128
+ .sweet-alert .icon.info {
129
+ border-color: #C9DAE1; }
130
+ .sweet-alert .icon.info::before {
131
+ content: "";
132
+ position: absolute;
133
+ width: 5px;
134
+ height: 29px;
135
+ left: 50%;
136
+ bottom: 17px;
137
+ border-radius: 2px;
138
+ margin-left: -2px;
139
+ background-color: #C9DAE1; }
140
+ .sweet-alert .icon.info::after {
141
+ content: "";
142
+ position: absolute;
143
+ width: 7px;
144
+ height: 7px;
145
+ border-radius: 50%;
146
+ margin-left: -3px;
147
+ top: 19px;
148
+ background-color: #C9DAE1; }
149
+ .sweet-alert .icon.success {
150
+ border-color: #A5DC86; }
151
+ .sweet-alert .icon.success::before, .sweet-alert .icon.success::after {
152
+ content: '';
153
+ border-radius: 50%;
154
+ position: absolute;
155
+ width: 60px;
156
+ height: 120px;
157
+ background: white;
158
+ -webkit-transform: rotate(45deg);
159
+ transform: rotate(45deg); }
160
+ .sweet-alert .icon.success::before {
161
+ border-radius: 120px 0 0 120px;
162
+ top: -7px;
163
+ left: -33px;
164
+ -webkit-transform: rotate(-45deg);
165
+ transform: rotate(-45deg);
166
+ -webkit-transform-origin: 60px 60px;
167
+ transform-origin: 60px 60px; }
168
+ .sweet-alert .icon.success::after {
169
+ border-radius: 0 120px 120px 0;
170
+ top: -11px;
171
+ left: 30px;
172
+ -webkit-transform: rotate(-45deg);
173
+ transform: rotate(-45deg);
174
+ -webkit-transform-origin: 0px 60px;
175
+ transform-origin: 0px 60px; }
176
+ .sweet-alert .icon.success .placeholder {
177
+ width: 80px;
178
+ height: 80px;
179
+ border: 4px solid rgba(165, 220, 134, 0.2);
180
+ border-radius: 50%;
181
+ box-sizing: content-box;
182
+ position: absolute;
183
+ left: -4px;
184
+ top: -4px;
185
+ z-index: 2; }
186
+ .sweet-alert .icon.success .fix {
187
+ width: 5px;
188
+ height: 90px;
189
+ background-color: white;
190
+ position: absolute;
191
+ left: 28px;
192
+ top: 8px;
193
+ z-index: 1;
194
+ -webkit-transform: rotate(-45deg);
195
+ transform: rotate(-45deg); }
196
+ .sweet-alert .icon.success .line {
197
+ height: 5px;
198
+ background-color: #A5DC86;
199
+ display: block;
200
+ border-radius: 2px;
201
+ position: absolute;
202
+ z-index: 2; }
203
+ .sweet-alert .icon.success .line.tip {
204
+ width: 25px;
205
+ left: 14px;
206
+ top: 46px;
207
+ -webkit-transform: rotate(45deg);
208
+ transform: rotate(45deg); }
209
+ .sweet-alert .icon.success .line.long {
210
+ width: 47px;
211
+ right: 8px;
212
+ top: 38px;
213
+ -webkit-transform: rotate(-45deg);
214
+ transform: rotate(-45deg); }
215
+ .sweet-alert .icon.custom {
216
+ background-size: contain;
217
+ border-radius: 0;
218
+ border: none;
219
+ background-position: center center;
220
+ background-repeat: no-repeat; }
221
+
222
+ /*
223
+ * Animations
224
+ */
225
+ @-webkit-keyframes showSweetAlert {
226
+ 0% {
227
+ transform: scale(0.7);
228
+ -webkit-transform: scale(0.7); }
229
+ 45% {
230
+ transform: scale(1.05);
231
+ -webkit-transform: scale(1.05); }
232
+ 80% {
233
+ transform: scale(0.95);
234
+ -webkit-tranform: scale(0.95); }
235
+ 100% {
236
+ transform: scale(1);
237
+ -webkit-transform: scale(1); } }
238
+ @-moz-keyframes showSweetAlert {
239
+ 0% {
240
+ transform: scale(0.7);
241
+ -webkit-transform: scale(0.7); }
242
+ 45% {
243
+ transform: scale(1.05);
244
+ -webkit-transform: scale(1.05); }
245
+ 80% {
246
+ transform: scale(0.95);
247
+ -webkit-tranform: scale(0.95); }
248
+ 100% {
249
+ transform: scale(1);
250
+ -webkit-transform: scale(1); } }
251
+ @keyframes showSweetAlert {
252
+ 0% {
253
+ transform: scale(0.7);
254
+ -webkit-transform: scale(0.7); }
255
+ 45% {
256
+ transform: scale(1.05);
257
+ -webkit-transform: scale(1.05); }
258
+ 80% {
259
+ transform: scale(0.95);
260
+ -webkit-tranform: scale(0.95); }
261
+ 100% {
262
+ transform: scale(1);
263
+ -webkit-transform: scale(1); } }
264
+ @-webkit-keyframes hideSweetAlert {
265
+ 0% {
266
+ transform: scale(1);
267
+ -webkit-transform: scale(1); }
268
+ 100% {
269
+ transform: scale(0.5);
270
+ -webkit-transform: scale(0.5); } }
271
+ @-moz-keyframes hideSweetAlert {
272
+ 0% {
273
+ transform: scale(1);
274
+ -webkit-transform: scale(1); }
275
+ 100% {
276
+ transform: scale(0.5);
277
+ -webkit-transform: scale(0.5); } }
278
+ @keyframes hideSweetAlert {
279
+ 0% {
280
+ transform: scale(1);
281
+ -webkit-transform: scale(1); }
282
+ 100% {
283
+ transform: scale(0.5);
284
+ -webkit-transform: scale(0.5); } }
285
+ .showSweetAlert {
286
+ -webkit-animation: showSweetAlert 0.3s;
287
+ -moz-animation: showSweetAlert 0.3s;
288
+ animation: showSweetAlert 0.3s; }
289
+
290
+ .hideSweetAlert {
291
+ -webkit-animation: hideSweetAlert 0.2s;
292
+ -moz-animation: hideSweetAlert 0.2s;
293
+ animation: hideSweetAlert 0.2s; }
294
+
295
+ @-webkit-keyframes animateSuccessTip {
296
+ 0% {
297
+ width: 0;
298
+ left: 1px;
299
+ top: 19px; }
300
+ 54% {
301
+ width: 0;
302
+ left: 1px;
303
+ top: 19px; }
304
+ 70% {
305
+ width: 50px;
306
+ left: -8px;
307
+ top: 37px; }
308
+ 84% {
309
+ width: 17px;
310
+ left: 21px;
311
+ top: 48px; }
312
+ 100% {
313
+ width: 25px;
314
+ left: 14px;
315
+ top: 45px; } }
316
+ @-moz-keyframes animateSuccessTip {
317
+ 0% {
318
+ width: 0;
319
+ left: 1px;
320
+ top: 19px; }
321
+ 54% {
322
+ width: 0;
323
+ left: 1px;
324
+ top: 19px; }
325
+ 70% {
326
+ width: 50px;
327
+ left: -8px;
328
+ top: 37px; }
329
+ 84% {
330
+ width: 17px;
331
+ left: 21px;
332
+ top: 48px; }
333
+ 100% {
334
+ width: 25px;
335
+ left: 14px;
336
+ top: 45px; } }
337
+ @keyframes animateSuccessTip {
338
+ 0% {
339
+ width: 0;
340
+ left: 1px;
341
+ top: 19px; }
342
+ 54% {
343
+ width: 0;
344
+ left: 1px;
345
+ top: 19px; }
346
+ 70% {
347
+ width: 50px;
348
+ left: -8px;
349
+ top: 37px; }
350
+ 84% {
351
+ width: 17px;
352
+ left: 21px;
353
+ top: 48px; }
354
+ 100% {
355
+ width: 25px;
356
+ left: 14px;
357
+ top: 45px; } }
358
+ @-webkit-keyframes animateSuccessLong {
359
+ 0% {
360
+ width: 0;
361
+ right: 46px;
362
+ top: 54px; }
363
+ 65% {
364
+ width: 0;
365
+ right: 46px;
366
+ top: 54px; }
367
+ 84% {
368
+ width: 55px;
369
+ right: 0px;
370
+ top: 35px; }
371
+ 100% {
372
+ width: 47px;
373
+ right: 8px;
374
+ top: 38px; } }
375
+ @-moz-keyframes animateSuccessLong {
376
+ 0% {
377
+ width: 0;
378
+ right: 46px;
379
+ top: 54px; }
380
+ 65% {
381
+ width: 0;
382
+ right: 46px;
383
+ top: 54px; }
384
+ 84% {
385
+ width: 55px;
386
+ right: 0px;
387
+ top: 35px; }
388
+ 100% {
389
+ width: 47px;
390
+ right: 8px;
391
+ top: 38px; } }
392
+ @keyframes animateSuccessLong {
393
+ 0% {
394
+ width: 0;
395
+ right: 46px;
396
+ top: 54px; }
397
+ 65% {
398
+ width: 0;
399
+ right: 46px;
400
+ top: 54px; }
401
+ 84% {
402
+ width: 55px;
403
+ right: 0px;
404
+ top: 35px; }
405
+ 100% {
406
+ width: 47px;
407
+ right: 8px;
408
+ top: 38px; } }
409
+ @-webkit-keyframes rotatePlaceholder {
410
+ 0% {
411
+ transform: rotate(-45deg);
412
+ -webkit-transform: rotate(-45deg); }
413
+ 5% {
414
+ transform: rotate(-45deg);
415
+ -webkit-transform: rotate(-45deg); }
416
+ 12% {
417
+ transform: rotate(-405deg);
418
+ -webkit-transform: rotate(-405deg); }
419
+ 100% {
420
+ transform: rotate(-405deg);
421
+ -webkit-transform: rotate(-405deg); } }
422
+ @-moz-keyframes rotatePlaceholder {
423
+ 0% {
424
+ transform: rotate(-45deg);
425
+ -webkit-transform: rotate(-45deg); }
426
+ 5% {
427
+ transform: rotate(-45deg);
428
+ -webkit-transform: rotate(-45deg); }
429
+ 12% {
430
+ transform: rotate(-405deg);
431
+ -webkit-transform: rotate(-405deg); }
432
+ 100% {
433
+ transform: rotate(-405deg);
434
+ -webkit-transform: rotate(-405deg); } }
435
+ @keyframes rotatePlaceholder {
436
+ 0% {
437
+ transform: rotate(-45deg);
438
+ -webkit-transform: rotate(-45deg); }
439
+ 5% {
440
+ transform: rotate(-45deg);
441
+ -webkit-transform: rotate(-45deg); }
442
+ 12% {
443
+ transform: rotate(-405deg);
444
+ -webkit-transform: rotate(-405deg); }
445
+ 100% {
446
+ transform: rotate(-405deg);
447
+ -webkit-transform: rotate(-405deg); } }
448
+ .animateSuccessTip {
449
+ -webkit-animation: animateSuccessTip 0.75s;
450
+ -moz-animation: animateSuccessTip 0.75s;
451
+ animation: animateSuccessTip 0.75s; }
452
+
453
+ .animateSuccessLong {
454
+ -webkit-animation: animateSuccessLong 0.75s;
455
+ -moz-animation: animateSuccessLong 0.75s;
456
+ animation: animateSuccessLong 0.75s; }
457
+
458
+ .icon.success.animate::after {
459
+ -webkit-animation: rotatePlaceholder 4.25s ease-in;
460
+ -moz-animation: rotatePlaceholder 4.25s ease-in;
461
+ animation: rotatePlaceholder 4.25s ease-in; }
462
+
463
+ @-webkit-keyframes animateErrorIcon {
464
+ 0% {
465
+ transform: rotateX(100deg);
466
+ -webkit-transform: rotateX(100deg);
467
+ opacity: 0; }
468
+ 100% {
469
+ transform: rotateX(0deg);
470
+ -webkit-transform: rotateX(0deg);
471
+ opacity: 1; } }
472
+ @-moz-keyframes animateErrorIcon {
473
+ 0% {
474
+ transform: rotateX(100deg);
475
+ -webkit-transform: rotateX(100deg);
476
+ opacity: 0; }
477
+ 100% {
478
+ transform: rotateX(0deg);
479
+ -webkit-transform: rotateX(0deg);
480
+ opacity: 1; } }
481
+ @keyframes animateErrorIcon {
482
+ 0% {
483
+ transform: rotateX(100deg);
484
+ -webkit-transform: rotateX(100deg);
485
+ opacity: 0; }
486
+ 100% {
487
+ transform: rotateX(0deg);
488
+ -webkit-transform: rotateX(0deg);
489
+ opacity: 1; } }
490
+ .animateErrorIcon {
491
+ -webkit-animation: animateErrorIcon 0.5s;
492
+ -moz-animation: animateErrorIcon 0.5s;
493
+ animation: animateErrorIcon 0.5s; }
494
+
495
+ @-webkit-keyframes animateXMark {
496
+ 0% {
497
+ transform: scale(0.4);
498
+ -webkit-transform: scale(0.4);
499
+ margin-top: 26px;
500
+ opacity: 0; }
501
+ 50% {
502
+ transform: scale(0.4);
503
+ -webkit-transform: scale(0.4);
504
+ margin-top: 26px;
505
+ opacity: 0; }
506
+ 80% {
507
+ transform: scale(1.15);
508
+ -webkit-transform: scale(1.15);
509
+ margin-top: -6px; }
510
+ 100% {
511
+ transform: scale(1);
512
+ -webkit-transform: scale(1);
513
+ margin-top: 0;
514
+ opacity: 1; } }
515
+ @-moz-keyframes animateXMark {
516
+ 0% {
517
+ transform: scale(0.4);
518
+ -webkit-transform: scale(0.4);
519
+ margin-top: 26px;
520
+ opacity: 0; }
521
+ 50% {
522
+ transform: scale(0.4);
523
+ -webkit-transform: scale(0.4);
524
+ margin-top: 26px;
525
+ opacity: 0; }
526
+ 80% {
527
+ transform: scale(1.15);
528
+ -webkit-transform: scale(1.15);
529
+ margin-top: -6px; }
530
+ 100% {
531
+ transform: scale(1);
532
+ -webkit-transform: scale(1);
533
+ margin-top: 0;
534
+ opacity: 1; } }
535
+ @keyframes animateXMark {
536
+ 0% {
537
+ transform: scale(0.4);
538
+ -webkit-transform: scale(0.4);
539
+ margin-top: 26px;
540
+ opacity: 0; }
541
+ 50% {
542
+ transform: scale(0.4);
543
+ -webkit-transform: scale(0.4);
544
+ margin-top: 26px;
545
+ opacity: 0; }
546
+ 80% {
547
+ transform: scale(1.15);
548
+ -webkit-transform: scale(1.15);
549
+ margin-top: -6px; }
550
+ 100% {
551
+ transform: scale(1);
552
+ -webkit-transform: scale(1);
553
+ margin-top: 0;
554
+ opacity: 1; } }
555
+ .animateXMark {
556
+ -webkit-animation: animateXMark 0.5s;
557
+ -moz-animation: animateXMark 0.5s;
558
+ animation: animateXMark 0.5s; }
559
+
560
+ /*@include keyframes(simpleRotate) {
561
+ 0% { transform: rotateY(0deg); }
562
+ 100% { transform: rotateY(-360deg); }
563
+ }
564
+ .simpleRotate {
565
+ @include animation('simpleRotate 0.75s');
566
+ }*/
567
+ @-webkit-keyframes pulseWarning {
568
+ 0% {
569
+ border-color: #F8D486; }
570
+ 100% {
571
+ border-color: #F8BB86; } }
572
+ @-moz-keyframes pulseWarning {
573
+ 0% {
574
+ border-color: #F8D486; }
575
+ 100% {
576
+ border-color: #F8BB86; } }
577
+ @keyframes pulseWarning {
578
+ 0% {
579
+ border-color: #F8D486; }
580
+ 100% {
581
+ border-color: #F8BB86; } }
582
+ .pulseWarning {
583
+ -webkit-animation: pulseWarning 0.75s infinite alternate;
584
+ -moz-animation: pulseWarning 0.75s infinite alternate;
585
+ animation: pulseWarning 0.75s infinite alternate; }
586
+
587
+ @-webkit-keyframes pulseWarningIns {
588
+ 0% {
589
+ background-color: #F8D486; }
590
+ 100% {
591
+ background-color: #F8BB86; } }
592
+ @-moz-keyframes pulseWarningIns {
593
+ 0% {
594
+ background-color: #F8D486; }
595
+ 100% {
596
+ background-color: #F8BB86; } }
597
+ @keyframes pulseWarningIns {
598
+ 0% {
599
+ background-color: #F8D486; }
600
+ 100% {
601
+ background-color: #F8BB86; } }
602
+ .pulseWarningIns {
603
+ -webkit-animation: pulseWarningIns 0.75s infinite alternate;
604
+ -moz-animation: pulseWarningIns 0.75s infinite alternate;
605
+ animation: pulseWarningIns 0.75s infinite alternate; }