@luizleon/sf.prefeiturasp.vuecomponents 0.0.43 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/components/button/Button.d.ts +77 -42
  2. package/dist/components/content/Content.d.ts +28 -36
  3. package/dist/components/drawer/Drawer.d.ts +54 -55
  4. package/dist/components/icon/Icon.d.ts +59 -38
  5. package/dist/components/internal/HeaderAvatar.d.ts +6 -0
  6. package/dist/components/internal/ScrollToTop.d.ts +2 -7
  7. package/dist/components/internal/ThemeToggle.d.ts +2 -11
  8. package/dist/components/layout/Layout.d.ts +20 -45
  9. package/dist/components/message/Message.d.ts +42 -37
  10. package/dist/components/navmenulink/NavMenuLink.d.ts +18 -35
  11. package/dist/components/tabnavigation/TabNavigation.d.ts +29 -42
  12. package/dist/components/tooltip/Tooltip.d.ts +21 -0
  13. package/dist/index.d.ts +4 -3
  14. package/dist/keycloak.d.ts +1 -1
  15. package/dist/services/dialogService.d.ts +16 -5
  16. package/dist/{lib.es.js → sf.prefeiturasp.vuecomponents.es.js} +2009 -1909
  17. package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -0
  18. package/dist/sf.prefeiturasp.vuecomponents.umd.js +82 -0
  19. package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -0
  20. package/dist/style.css +1 -1
  21. package/package.json +9 -10
  22. package/src/components/button/Button.d.ts +2 -18
  23. package/src/components/button/Button.vue +45 -2
  24. package/src/components/content/Content.d.ts +0 -8
  25. package/src/components/content/Content.vue +9 -1
  26. package/src/components/drawer/Drawer.d.ts +1 -6
  27. package/src/components/drawer/Drawer.vue +11 -3
  28. package/src/components/icon/Icon.d.ts +1 -16
  29. package/src/components/icon/Icon.vue +65 -22
  30. package/src/components/internal/HeaderAvatar.vue +4 -5
  31. package/src/components/layout/Layout.d.ts +1 -2
  32. package/src/components/layout/Layout.vue +6 -1
  33. package/src/components/message/Message.d.ts +1 -10
  34. package/src/components/message/Message.vue +28 -12
  35. package/src/components/navmenulink/NavMenuLink.d.ts +1 -7
  36. package/src/components/navmenulink/NavMenuLink.vue +10 -2
  37. package/src/components/tabnavigation/TabNavigation.d.ts +1 -9
  38. package/src/components/tabnavigation/TabNavigation.vue +9 -1
  39. package/src/components/tooltip/Tooltip.d.ts +23 -0
  40. package/src/components/tooltip/Tooltip.vue +91 -0
  41. package/src/index.ts +8 -6
  42. package/src/services/dialogService.ts +71 -25
  43. package/src/style/src/_mixins.scss +5 -0
  44. package/src/style/src/components/_icon.scss +7 -7
  45. package/src/style/src/components/_message.scss +1 -1
  46. package/src/style/src/components/_tooltip.scss +11 -12
  47. package/src/style/src/sweetalert/scss/_animations.scss +197 -197
  48. package/src/style/src/sweetalert/scss/_body.scss +45 -45
  49. package/src/style/src/sweetalert/scss/_core.scss +862 -862
  50. package/src/style/src/sweetalert/scss/_mixins.scss +16 -16
  51. package/src/style/src/sweetalert/scss/_theming.scss +8 -8
  52. package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -83
  53. package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -85
  54. package/src/style/src/sweetalert/scss/_toasts.scss +203 -203
  55. package/src/ts-helpers.d.ts +9 -9
  56. package/tsconfig.json +2 -2
  57. package/vite.config.js +5 -5
  58. package/dist/enum/cor.d.ts +0 -9
  59. package/dist/enum/index.d.ts +0 -2
  60. package/dist/enum/tamanho.d.ts +0 -5
  61. package/dist/lib.es.js.map +0 -1
  62. package/dist/lib.umd.js +0 -84
  63. package/dist/lib.umd.js.map +0 -1
  64. package/dist/ts-helpers.d.ts +0 -57
  65. package/src/enum/cor.ts +0 -9
  66. package/src/enum/index.ts +0 -2
  67. package/src/enum/tamanho.ts +0 -5
@@ -1,862 +1,862 @@
1
- @use "sass:math";
2
- @import "../../functions";
3
-
4
- .swal2-container {
5
- display: grid;
6
- position: fixed;
7
- z-index: 9999;
8
- top: 0;
9
- right: 0;
10
- bottom: 0;
11
- left: 0;
12
- box-sizing: border-box;
13
- grid-template-areas:
14
- "top-start top top-end"
15
- "center-start center center-end"
16
- "bottom-start bottom-center bottom-end";
17
- grid-template-rows:
18
- minmax(min-content, auto) minmax(min-content, auto)
19
- minmax(min-content, auto);
20
- height: 100%; // Safari
21
- padding: $swal2-container-padding;
22
- overflow-x: hidden;
23
- transition: $swal2-backdrop-transition;
24
-
25
- // sweetalert2/issues/905
26
- -webkit-overflow-scrolling: touch;
27
-
28
- &.swal2-backdrop-show,
29
- &.swal2-noanimation {
30
- background: $swal2-backdrop;
31
- }
32
-
33
- &.swal2-backdrop-hide {
34
- background: transparent !important;
35
- }
36
-
37
- &.swal2-top-start,
38
- &.swal2-center-start,
39
- &.swal2-bottom-start {
40
- grid-template-columns: minmax(0, 1fr) auto auto;
41
- }
42
-
43
- &.swal2-top,
44
- &.swal2-center,
45
- &.swal2-bottom {
46
- grid-template-columns: auto minmax(0, 1fr) auto;
47
- }
48
-
49
- &.swal2-top-end,
50
- &.swal2-center-end,
51
- &.swal2-bottom-end {
52
- grid-template-columns: auto auto minmax(0, 1fr);
53
- }
54
-
55
- &.swal2-top-start > .swal2-popup {
56
- align-self: start;
57
- }
58
-
59
- &.swal2-top > .swal2-popup {
60
- grid-column: 2;
61
- align-self: start;
62
- justify-self: center;
63
- }
64
-
65
- &.swal2-top-end > .swal2-popup,
66
- &.swal2-top-right > .swal2-popup {
67
- grid-column: 3;
68
- align-self: start;
69
- justify-self: end;
70
- }
71
-
72
- &.swal2-center-start > .swal2-popup,
73
- &.swal2-center-left > .swal2-popup {
74
- grid-row: 2;
75
- align-self: center;
76
- }
77
-
78
- &.swal2-center > .swal2-popup {
79
- grid-column: 2;
80
- grid-row: 2;
81
- align-self: center;
82
- justify-self: center;
83
- }
84
-
85
- &.swal2-center-end > .swal2-popup,
86
- &.swal2-center-right > .swal2-popup {
87
- grid-column: 3;
88
- grid-row: 2;
89
- align-self: center;
90
- justify-self: end;
91
- }
92
-
93
- &.swal2-bottom-start > .swal2-popup,
94
- &.swal2-bottom-left > .swal2-popup {
95
- grid-column: 1;
96
- grid-row: 3;
97
- align-self: end;
98
- }
99
-
100
- &.swal2-bottom > .swal2-popup {
101
- grid-column: 2;
102
- grid-row: 3;
103
- justify-self: center;
104
- align-self: end;
105
- }
106
-
107
- &.swal2-bottom-end > .swal2-popup,
108
- &.swal2-bottom-right > .swal2-popup {
109
- grid-column: 3;
110
- grid-row: 3;
111
- align-self: end;
112
- justify-self: end;
113
- }
114
-
115
- &.swal2-grow-row > .swal2-popup,
116
- &.swal2-grow-fullscreen > .swal2-popup {
117
- grid-column: 1/4;
118
- width: 100%;
119
- }
120
-
121
- &.swal2-grow-column > .swal2-popup,
122
- &.swal2-grow-fullscreen > .swal2-popup {
123
- grid-row: 1/4;
124
- align-self: stretch;
125
- }
126
-
127
- &.swal2-no-transition {
128
- transition: none !important;
129
- }
130
- }
131
-
132
- .swal2-popup {
133
- display: none;
134
- position: relative;
135
- box-sizing: border-box;
136
- grid-template-columns: minmax(0, 100%);
137
- width: $swal2-width;
138
- max-width: 100%;
139
- padding: $swal2-padding;
140
- border: $swal2-border;
141
- border-radius: $swal2-border-radius;
142
- background: $swal2-background;
143
- color: $swal2-color;
144
- font-family: $swal2-font;
145
- font-size: $swal2-font-size;
146
-
147
- &:focus {
148
- outline: none;
149
- }
150
-
151
- &.swal2-loading {
152
- overflow-y: hidden;
153
- }
154
- }
155
-
156
- .swal2-title {
157
- position: $swal2-title-position;
158
- max-width: $swal2-title-max-width;
159
- margin: $swal2-title-margin;
160
- padding: $swal2-title-padding;
161
- color: $swal2-title-color;
162
- font-size: $swal2-title-font-size;
163
- font-weight: $swal2-title-font-weight;
164
- text-align: $swal2-title-text-align;
165
- text-transform: none;
166
- word-wrap: break-word;
167
- }
168
-
169
- .swal2-actions {
170
- display: flex;
171
- z-index: 1; // prevent success icon from overlapping buttons
172
- box-sizing: border-box;
173
- flex-wrap: $swal2-actions-flex-wrap;
174
- align-items: $swal2-actions-align-items;
175
- justify-content: $swal2-actions-justify-content;
176
- width: $swal2-actions-width;
177
- margin: $swal2-actions-margin;
178
- padding: $swal2-actions-padding;
179
-
180
- &:not(.swal2-loading) {
181
- .swal2-styled {
182
- &[disabled] {
183
- opacity: 0.4;
184
- }
185
-
186
- &:hover {
187
- background-image: linear-gradient(
188
- $swal2-button-darken-hover,
189
- $swal2-button-darken-hover
190
- );
191
- }
192
-
193
- &:active {
194
- background-image: linear-gradient(
195
- $swal2-button-darken-active,
196
- $swal2-button-darken-active
197
- );
198
- }
199
- }
200
- }
201
- }
202
-
203
- .swal2-loader {
204
- display: none;
205
- align-items: $swal2-loader-align-items;
206
- justify-content: $swal2-loader-justify-content;
207
- width: $swal2-loader-width;
208
- height: $swal2-loader-height;
209
- margin: $swal2-loader-margin;
210
- animation: $swal2-loader-animation;
211
- border-width: $swal2-loader-border-width;
212
- border-style: $swal2-loader-border-style;
213
- border-radius: $swal2-loader-border-radius;
214
- border-color: $swal2-loader-border-color;
215
- }
216
-
217
- .swal2-styled {
218
- margin: $swal2-button-margin;
219
- padding: $swal2-button-padding;
220
- transition: $swal2-button-transition;
221
- box-shadow: $swal2-button-box-shadow;
222
- font-weight: $swal2-button-font-weight;
223
-
224
- &:not([disabled]) {
225
- cursor: pointer;
226
- }
227
-
228
- &.swal2-confirm {
229
- order: $swal2-confirm-button-order;
230
- border: $swal2-confirm-button-border;
231
- border-radius: $swal2-confirm-button-border-radius;
232
- background: initial;
233
- background-color: $swal2-confirm-button-background-color;
234
- color: $swal2-confirm-button-color;
235
- font-size: $swal2-confirm-button-font-size;
236
-
237
- &:focus {
238
- box-shadow: $swal2-confirm-button-focus-box-shadow;
239
- }
240
- }
241
-
242
- &.swal2-deny {
243
- order: $swal2-deny-button-order;
244
- border: $swal2-deny-button-border;
245
- border-radius: $swal2-deny-button-border-radius;
246
- background: initial;
247
- background-color: $swal2-deny-button-background-color;
248
- color: $swal2-deny-button-color;
249
- font-size: $swal2-deny-button-font-size;
250
-
251
- &:focus {
252
- box-shadow: $swal2-deny-button-focus-box-shadow;
253
- }
254
- }
255
-
256
- &.swal2-cancel {
257
- order: $swal2-cancel-button-order;
258
- border: $swal2-cancel-button-border;
259
- border-radius: $swal2-cancel-button-border-radius;
260
- background: initial;
261
- background-color: $swal2-cancel-button-background-color;
262
- color: $swal2-cancel-button-color;
263
- font-size: $swal2-cancel-button-font-size;
264
-
265
- &:focus {
266
- box-shadow: $swal2-cancel-button-focus-box-shadow;
267
- }
268
- }
269
-
270
- &.swal2-default-outline {
271
- &:focus {
272
- box-shadow: $swal2-button-focus-box-shadow;
273
- }
274
- }
275
-
276
- &:focus {
277
- outline: $swal2-button-focus-outline;
278
- }
279
-
280
- &::-moz-focus-inner {
281
- border: 0;
282
- }
283
- }
284
-
285
- .swal2-footer {
286
- justify-content: center;
287
- margin: $swal2-footer-margin;
288
- padding: $swal2-footer-padding;
289
- border-top: 1px solid $swal2-footer-border-color;
290
- color: $swal2-footer-color;
291
- font-size: $swal2-footer-font-size;
292
- }
293
-
294
- .swal2-timer-progress-bar-container {
295
- position: absolute;
296
- right: 0;
297
- bottom: 0;
298
- left: 0;
299
- grid-column: auto !important;
300
- overflow: hidden;
301
- border-bottom-right-radius: $swal2-border-radius;
302
- border-bottom-left-radius: $swal2-border-radius;
303
- }
304
-
305
- .swal2-timer-progress-bar {
306
- width: 100%;
307
- height: $swal2-timer-progress-bar-height;
308
- background: $swal2-timer-progress-bar-background;
309
- }
310
-
311
- .swal2-image {
312
- max-width: 100%;
313
- margin: $swal2-image-margin;
314
- }
315
-
316
- .swal2-close {
317
- position: $swal2-close-button-position;
318
- z-index: 2; // sweetalert2/issues/1617
319
- align-items: $swal2-close-button-align-items;
320
- justify-content: $swal2-close-button-justify-content;
321
- width: $swal2-close-button-width;
322
- height: $swal2-close-button-height;
323
- margin-top: $swal2-close-button-gap;
324
- margin-right: $swal2-close-button-gap;
325
- margin-bottom: -$swal2-close-button-height;
326
- padding: $swal2-close-button-padding;
327
- overflow: hidden;
328
- transition: $swal2-close-button-transition;
329
- border: $swal2-close-button-border;
330
- border-radius: $swal2-close-button-border-radius;
331
- outline: $swal2-close-button-outline;
332
- background: $swal2-close-button-background;
333
- color: $swal2-close-button-color;
334
- font-family: $swal2-close-button-font-family;
335
- font-family: monospace;
336
- font-size: $swal2-close-button-font-size;
337
- cursor: pointer;
338
- justify-self: $swal2-close-button-justify-self;
339
-
340
- &:hover {
341
- transform: $swal2-close-button-hover-transform;
342
- background: $swal2-close-button-hover-background;
343
- color: $swal2-close-button-hover-color;
344
- }
345
-
346
- &:focus {
347
- outline: $swal2-close-button-focus-outline;
348
- box-shadow: $swal2-close-button-focus-box-shadow;
349
- }
350
-
351
- &::-moz-focus-inner {
352
- border: 0;
353
- }
354
- }
355
-
356
- .swal2-html-container {
357
- z-index: 1; // prevent sucess icon overlapping the content
358
- justify-content: $swal2-html-container-justify-content;
359
- margin: $swal2-html-container-margin;
360
- padding: $swal2-html-container-padding;
361
- overflow: $swal2-html-container-overflow;
362
- color: $swal2-html-container-color;
363
- font-size: $swal2-html-container-font-size;
364
- font-weight: $swal2-html-container-font-weight;
365
- line-height: $swal2-html-container-line-height;
366
- text-align: $swal2-html-container-text-align;
367
- word-wrap: $swal2-html-container-word-wrap;
368
- word-break: $swal2-html-container-word-break;
369
- }
370
-
371
- .swal2-input,
372
- .swal2-file,
373
- .swal2-textarea,
374
- .swal2-select,
375
- .swal2-radio,
376
- .swal2-checkbox {
377
- margin: $swal2-input-margin;
378
- }
379
-
380
- .swal2-input,
381
- .swal2-file,
382
- .swal2-textarea {
383
- box-sizing: border-box;
384
- width: $swal2-input-width;
385
- transition: $swal2-input-transition;
386
- border: $swal2-input-border;
387
- border-radius: $swal2-input-border-radius;
388
- background: $swal2-input-background;
389
- box-shadow: $swal2-input-box-shadow;
390
- color: $swal2-input-color;
391
- font-size: $swal2-input-font-size;
392
-
393
- &.swal2-inputerror {
394
- border-color: $swal2-error !important;
395
- background-color: var(--error-hover-color);
396
- }
397
-
398
- &:focus {
399
- border: $swal2-input-focus-border;
400
- outline: $swal2-input-focus-outline;
401
- box-shadow: $swal2-input-focus-box-shadow;
402
- }
403
-
404
- &::placeholder {
405
- color: var(--secondary-color);
406
- }
407
- }
408
-
409
- .swal2-range {
410
- margin: $swal2-input-margin;
411
- background: $swal2-background;
412
-
413
- input {
414
- width: 80%;
415
- }
416
-
417
- output {
418
- width: 20%;
419
- color: $swal2-input-color;
420
- font-weight: 600;
421
- text-align: center;
422
- }
423
-
424
- input,
425
- output {
426
- height: $swal2-input-height;
427
- padding: 0;
428
- font-size: $swal2-input-font-size;
429
- line-height: $swal2-input-height;
430
- }
431
- }
432
-
433
- .swal2-input {
434
- height: $swal2-input-height;
435
- padding: $swal2-input-padding;
436
- }
437
-
438
- .swal2-file {
439
- width: 75%;
440
- margin-right: auto;
441
- margin-left: auto;
442
- background: $swal2-input-background;
443
- font-size: $swal2-input-font-size;
444
- }
445
-
446
- .swal2-textarea {
447
- height: $swal2-textarea-height;
448
- padding: $swal2-textarea-padding;
449
- }
450
-
451
- .swal2-select {
452
- min-width: 50%;
453
- max-width: 100%;
454
- padding: 0.375em 0.625em;
455
- background: $swal2-input-background;
456
- color: $swal2-input-color;
457
- font-size: $swal2-input-font-size;
458
- }
459
-
460
- .swal2-radio,
461
- .swal2-checkbox {
462
- align-items: center;
463
- justify-content: center;
464
- background: $swal2-background;
465
- color: $swal2-input-color;
466
-
467
- label {
468
- margin: 0 0.6em;
469
- font-size: $swal2-input-font-size;
470
- }
471
-
472
- input {
473
- flex-shrink: 0;
474
- margin: 0 0.4em;
475
- }
476
- }
477
-
478
- .swal2-input-label {
479
- display: flex;
480
- justify-content: $swal2-input-label-justify-content;
481
- margin: $swal2-input-label-margin;
482
- }
483
-
484
- .swal2-validation-message {
485
- align-items: $swal2-validation-message-align-items;
486
- justify-content: $swal2-validation-message-justify-content;
487
- margin: $swal2-validation-message-margin;
488
- padding: $swal2-validation-message-padding;
489
- overflow: hidden;
490
- background: $swal2-validation-message-background;
491
- color: $swal2-validation-message-color;
492
- font-size: $swal2-validation-message-font-size;
493
- font-weight: $swal2-validation-message-font-weight;
494
-
495
- &::before {
496
- content: "!";
497
- display: inline-block;
498
- width: 1.5em;
499
- min-width: 1.5em;
500
- height: 1.5em;
501
- margin: 0 0.625em;
502
- zoom: $swal2-validation-message-icon-zoom;
503
- border-radius: 50%;
504
- background-color: $swal2-validation-message-icon-background;
505
- color: $swal2-validation-message-icon-color;
506
- font-weight: 600;
507
- line-height: 1.5em;
508
- text-align: center;
509
- }
510
- }
511
-
512
- // https://stackoverflow.com/a/12335841/1331425
513
- @function strip-units($number) {
514
- @return math.div($number, ($number * 0 + 1));
515
- }
516
- $icon-zoom: math.div(strip-units($swal2-icon-size), 5);
517
-
518
- .swal2-icon {
519
- position: relative;
520
- box-sizing: content-box;
521
- justify-content: center;
522
- width: $swal2-icon-size;
523
- height: $swal2-icon-size;
524
- margin: $swal2-icon-margin;
525
- zoom: $swal2-icon-zoom;
526
- border: #{0.25em * $icon-zoom} solid transparent;
527
- border-radius: 50%;
528
- border-color: $swal2-icon-border-color;
529
- font-family: $swal2-icon-font-family;
530
- line-height: $swal2-icon-size;
531
- cursor: default;
532
- user-select: none;
533
-
534
- .swal2-icon-content {
535
- display: flex;
536
- align-items: center;
537
- font-size: $swal2-icon-font-size;
538
- }
539
-
540
- &.swal2-error {
541
- border-color: $swal2-error;
542
- color: $swal2-error;
543
-
544
- .swal2-x-mark {
545
- position: relative;
546
- flex-grow: 1;
547
-
548
- @if $icon-zoom != 1 {
549
- zoom: $icon-zoom;
550
- }
551
- }
552
-
553
- [class^="swal2-x-mark-line"] {
554
- display: block;
555
- position: absolute;
556
- top: 2.3125em;
557
- width: 2.9375em;
558
- height: 0.3125em;
559
- border-radius: 0.125em;
560
- background-color: $swal2-error;
561
-
562
- &[class$="left"] {
563
- left: 1.0625em;
564
- transform: rotate(45deg);
565
- }
566
-
567
- &[class$="right"] {
568
- right: 1em;
569
- transform: rotate(-45deg);
570
- }
571
- }
572
-
573
- // Error icon animation
574
- &.swal2-icon-show {
575
- @if $swal2-icon-animations {
576
- animation: swal2-animate-error-icon 0.5s;
577
-
578
- .swal2-x-mark {
579
- animation: swal2-animate-error-x-mark 0.5s;
580
- }
581
- }
582
- }
583
- }
584
-
585
- &.swal2-warning {
586
- border-color: var(--warn-color);
587
- background-color: var(--warn-hover-color);
588
- color: $swal2-warning;
589
-
590
- // Warning icon animation
591
- &.swal2-icon-show {
592
- @if $swal2-icon-animations {
593
- animation: swal2-animate-error-icon 0.5s;
594
-
595
- .swal2-icon-content {
596
- animation: swal2-animate-i-mark 0.5s;
597
- }
598
- }
599
- }
600
- }
601
-
602
- &.swal2-info {
603
- border-color: var(--info-color);
604
- background-color: var(--info-hover-color);
605
- color: $swal2-info;
606
-
607
- // Info icon animation
608
- &.swal2-icon-show {
609
- @if $swal2-icon-animations {
610
- animation: swal2-animate-error-icon 0.5s;
611
-
612
- .swal2-icon-content {
613
- animation: swal2-animate-i-mark 0.8s;
614
- }
615
- }
616
- }
617
- }
618
-
619
- &.swal2-question {
620
- border-color: var(--help-color);
621
- background-color: var(--help-hover-color);
622
- color: $swal2-question;
623
-
624
- // Question icon animation
625
- &.swal2-icon-show {
626
- @if $swal2-icon-animations {
627
- animation: swal2-animate-error-icon 0.5s;
628
-
629
- .swal2-icon-content {
630
- animation: swal2-animate-question-mark 0.8s;
631
- }
632
- }
633
- }
634
- }
635
-
636
- &.swal2-success {
637
- border-color: var(--success-color);
638
- background-color: var(--success-hover-color);
639
- color: $swal2-success;
640
-
641
- [class^="swal2-success-circular-line"] {
642
- // Emulate moving circular line
643
- position: absolute;
644
- width: 3.75em;
645
- height: 7.5em;
646
- transform: rotate(45deg);
647
- border-radius: 50%;
648
-
649
- &[class$="left"] {
650
- top: -0.4375em;
651
- left: -2.0635em;
652
- transform: rotate(-45deg);
653
- transform-origin: 3.75em 3.75em;
654
- border-radius: 7.5em 0 0 7.5em;
655
-
656
- @if $icon-zoom != 1 {
657
- zoom: $icon-zoom;
658
- }
659
- }
660
-
661
- &[class$="right"] {
662
- top: -0.6875em;
663
- left: 1.875em;
664
- transform: rotate(-45deg);
665
- transform-origin: 0 3.75em;
666
- border-radius: 0 7.5em 7.5em 0;
667
-
668
- @if $icon-zoom != 1 {
669
- zoom: $icon-zoom;
670
- }
671
- }
672
- }
673
-
674
- .swal2-success-ring {
675
- // Ring
676
- position: absolute;
677
- z-index: 2;
678
- top: -0.25em;
679
- left: -0.25em;
680
- box-sizing: content-box;
681
- width: 100%;
682
- height: 100%;
683
- border: 0.25em solid $swal2-success-border;
684
- border-radius: 50%;
685
-
686
- @if $icon-zoom != 1 {
687
- zoom: $icon-zoom;
688
- }
689
- }
690
-
691
- .swal2-success-fix {
692
- // Hide corners left from animation
693
- position: absolute;
694
- z-index: 1;
695
- top: 0.5em;
696
- left: 1.625em;
697
- width: 0.4375em;
698
- height: 5.625em;
699
- transform: rotate(-45deg);
700
-
701
- @if $icon-zoom != 1 {
702
- zoom: $icon-zoom;
703
- }
704
- }
705
-
706
- [class^="swal2-success-line"] {
707
- display: block;
708
- position: absolute;
709
- z-index: 2;
710
- height: 0.3125em;
711
- border-radius: 0.125em;
712
- background-color: $swal2-success;
713
-
714
- &[class$="tip"] {
715
- top: 2.875em;
716
- left: 0.8125em;
717
- width: 1.5625em;
718
- transform: rotate(45deg);
719
- }
720
-
721
- &[class$="long"] {
722
- top: 2.375em;
723
- right: 0.5em;
724
- width: 2.9375em;
725
- transform: rotate(-45deg);
726
- }
727
-
728
- @if $icon-zoom != 1 {
729
- zoom: $icon-zoom;
730
- }
731
- }
732
-
733
- // Success icon animation
734
- &.swal2-icon-show {
735
- @if $swal2-icon-animations {
736
- .swal2-success-line-tip {
737
- animation: swal2-animate-success-line-tip 0.75s;
738
- }
739
-
740
- .swal2-success-line-long {
741
- animation: swal2-animate-success-line-long 0.75s;
742
- }
743
-
744
- .swal2-success-circular-line-right {
745
- animation: swal2-rotate-success-circular-line 4.25s ease-in;
746
- }
747
- }
748
- }
749
- }
750
- }
751
-
752
- .swal2-progress-steps {
753
- flex-wrap: $swal2-progress-steps-flex-wrap;
754
- align-items: $swal2-progress-steps-align-items;
755
- max-width: $swal2-progress-steps-max-width;
756
- margin: $swal2-progress-steps-margin;
757
- padding: $swal2-progress-steps-padding;
758
- background: $swal2-progress-steps-background;
759
- font-weight: $swal2-progress-steps-font-weight;
760
-
761
- li {
762
- display: inline-block;
763
- position: relative;
764
- }
765
-
766
- .swal2-progress-step {
767
- z-index: 20;
768
- flex-shrink: 0;
769
- width: $swal2-progress-step-width;
770
- height: $swal2-progress-step-height;
771
- border-radius: $swal2-progress-step-border-radius;
772
- background: $swal2-active-step-background;
773
- color: $swal2-active-step-color;
774
- line-height: $swal2-progress-step-height;
775
- text-align: center;
776
-
777
- &.swal2-active-progress-step {
778
- background: $swal2-active-step-background;
779
-
780
- ~ .swal2-progress-step {
781
- background: $swal2-progress-step-background;
782
- color: $swal2-progress-step-color;
783
- }
784
-
785
- ~ .swal2-progress-step-line {
786
- background: $swal2-progress-step-background;
787
- }
788
- }
789
- }
790
-
791
- .swal2-progress-step-line {
792
- z-index: 10;
793
- flex-shrink: 0;
794
- width: $swal2-progress-steps-distance;
795
- height: 0.4em;
796
- margin: 0 -1px;
797
- background: $swal2-active-step-background;
798
- }
799
- }
800
-
801
- // github.com/sweetalert2/sweetalert2/issues/268
802
- [class^="swal2"] {
803
- -webkit-tap-highlight-color: transparent;
804
- }
805
-
806
- .swal2-show {
807
- animation: $swal2-show-animation;
808
- }
809
-
810
- .swal2-hide {
811
- animation: $swal2-hide-animation;
812
- }
813
-
814
- .swal2-noanimation {
815
- transition: none;
816
- }
817
-
818
- // Measure scrollbar width for padding body during modal show/hide
819
- .swal2-scrollbar-measure {
820
- position: absolute;
821
- top: -9999px;
822
- width: 50px;
823
- height: 50px;
824
- overflow: scroll;
825
- }
826
-
827
- // Right-to-left support
828
- .swal2-rtl {
829
- .swal2-close {
830
- margin-right: initial;
831
- margin-left: $swal2-close-button-gap;
832
- }
833
-
834
- .swal2-timer-progress-bar {
835
- right: 0;
836
- left: auto;
837
- }
838
- }
839
-
840
- .swal2-no-war {
841
- display: flex;
842
- position: fixed;
843
- z-index: 1061;
844
- top: 0;
845
- left: 0;
846
- align-items: center;
847
- justify-content: center;
848
- width: 100%;
849
- height: 3.375em;
850
- background: #20232a;
851
- color: #fff;
852
- text-align: center;
853
-
854
- a {
855
- color: #61dafb;
856
- text-decoration: none;
857
-
858
- &:hover {
859
- text-decoration: underline;
860
- }
861
- }
862
- }
1
+ @use "sass:math";
2
+ @import "../../functions";
3
+
4
+ .swal2-container {
5
+ display: grid;
6
+ position: fixed;
7
+ z-index: 9999;
8
+ top: 0;
9
+ right: 0;
10
+ bottom: 0;
11
+ left: 0;
12
+ box-sizing: border-box;
13
+ grid-template-areas:
14
+ "top-start top top-end"
15
+ "center-start center center-end"
16
+ "bottom-start bottom-center bottom-end";
17
+ grid-template-rows:
18
+ minmax(min-content, auto) minmax(min-content, auto)
19
+ minmax(min-content, auto);
20
+ height: 100%; // Safari
21
+ padding: $swal2-container-padding;
22
+ overflow-x: hidden;
23
+ transition: $swal2-backdrop-transition;
24
+
25
+ // sweetalert2/issues/905
26
+ -webkit-overflow-scrolling: touch;
27
+
28
+ &.swal2-backdrop-show,
29
+ &.swal2-noanimation {
30
+ background: $swal2-backdrop;
31
+ }
32
+
33
+ &.swal2-backdrop-hide {
34
+ background: transparent !important;
35
+ }
36
+
37
+ &.swal2-top-start,
38
+ &.swal2-center-start,
39
+ &.swal2-bottom-start {
40
+ grid-template-columns: minmax(0, 1fr) auto auto;
41
+ }
42
+
43
+ &.swal2-top,
44
+ &.swal2-center,
45
+ &.swal2-bottom {
46
+ grid-template-columns: auto minmax(0, 1fr) auto;
47
+ }
48
+
49
+ &.swal2-top-end,
50
+ &.swal2-center-end,
51
+ &.swal2-bottom-end {
52
+ grid-template-columns: auto auto minmax(0, 1fr);
53
+ }
54
+
55
+ &.swal2-top-start > .swal2-popup {
56
+ align-self: start;
57
+ }
58
+
59
+ &.swal2-top > .swal2-popup {
60
+ grid-column: 2;
61
+ align-self: start;
62
+ justify-self: center;
63
+ }
64
+
65
+ &.swal2-top-end > .swal2-popup,
66
+ &.swal2-top-right > .swal2-popup {
67
+ grid-column: 3;
68
+ align-self: start;
69
+ justify-self: end;
70
+ }
71
+
72
+ &.swal2-center-start > .swal2-popup,
73
+ &.swal2-center-left > .swal2-popup {
74
+ grid-row: 2;
75
+ align-self: center;
76
+ }
77
+
78
+ &.swal2-center > .swal2-popup {
79
+ grid-column: 2;
80
+ grid-row: 2;
81
+ align-self: center;
82
+ justify-self: center;
83
+ }
84
+
85
+ &.swal2-center-end > .swal2-popup,
86
+ &.swal2-center-right > .swal2-popup {
87
+ grid-column: 3;
88
+ grid-row: 2;
89
+ align-self: center;
90
+ justify-self: end;
91
+ }
92
+
93
+ &.swal2-bottom-start > .swal2-popup,
94
+ &.swal2-bottom-left > .swal2-popup {
95
+ grid-column: 1;
96
+ grid-row: 3;
97
+ align-self: end;
98
+ }
99
+
100
+ &.swal2-bottom > .swal2-popup {
101
+ grid-column: 2;
102
+ grid-row: 3;
103
+ justify-self: center;
104
+ align-self: end;
105
+ }
106
+
107
+ &.swal2-bottom-end > .swal2-popup,
108
+ &.swal2-bottom-right > .swal2-popup {
109
+ grid-column: 3;
110
+ grid-row: 3;
111
+ align-self: end;
112
+ justify-self: end;
113
+ }
114
+
115
+ &.swal2-grow-row > .swal2-popup,
116
+ &.swal2-grow-fullscreen > .swal2-popup {
117
+ grid-column: 1/4;
118
+ width: 100%;
119
+ }
120
+
121
+ &.swal2-grow-column > .swal2-popup,
122
+ &.swal2-grow-fullscreen > .swal2-popup {
123
+ grid-row: 1/4;
124
+ align-self: stretch;
125
+ }
126
+
127
+ &.swal2-no-transition {
128
+ transition: none !important;
129
+ }
130
+ }
131
+
132
+ .swal2-popup {
133
+ display: none;
134
+ position: relative;
135
+ box-sizing: border-box;
136
+ grid-template-columns: minmax(0, 100%);
137
+ width: $swal2-width;
138
+ max-width: 100%;
139
+ padding: $swal2-padding;
140
+ border: $swal2-border;
141
+ border-radius: $swal2-border-radius;
142
+ background: $swal2-background;
143
+ color: $swal2-color;
144
+ font-family: $swal2-font;
145
+ font-size: $swal2-font-size;
146
+
147
+ &:focus {
148
+ outline: none;
149
+ }
150
+
151
+ &.swal2-loading {
152
+ overflow-y: hidden;
153
+ }
154
+ }
155
+
156
+ .swal2-title {
157
+ position: $swal2-title-position;
158
+ max-width: $swal2-title-max-width;
159
+ margin: $swal2-title-margin;
160
+ padding: $swal2-title-padding;
161
+ color: $swal2-title-color;
162
+ font-size: $swal2-title-font-size;
163
+ font-weight: $swal2-title-font-weight;
164
+ text-align: $swal2-title-text-align;
165
+ text-transform: none;
166
+ word-wrap: break-word;
167
+ }
168
+
169
+ .swal2-actions {
170
+ display: flex;
171
+ z-index: 1; // prevent success icon from overlapping buttons
172
+ box-sizing: border-box;
173
+ flex-wrap: $swal2-actions-flex-wrap;
174
+ align-items: $swal2-actions-align-items;
175
+ justify-content: $swal2-actions-justify-content;
176
+ width: $swal2-actions-width;
177
+ margin: $swal2-actions-margin;
178
+ padding: $swal2-actions-padding;
179
+
180
+ &:not(.swal2-loading) {
181
+ .swal2-styled {
182
+ &[disabled] {
183
+ opacity: 0.4;
184
+ }
185
+
186
+ &:hover {
187
+ background-image: linear-gradient(
188
+ $swal2-button-darken-hover,
189
+ $swal2-button-darken-hover
190
+ );
191
+ }
192
+
193
+ &:active {
194
+ background-image: linear-gradient(
195
+ $swal2-button-darken-active,
196
+ $swal2-button-darken-active
197
+ );
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ .swal2-loader {
204
+ display: none;
205
+ align-items: $swal2-loader-align-items;
206
+ justify-content: $swal2-loader-justify-content;
207
+ width: $swal2-loader-width;
208
+ height: $swal2-loader-height;
209
+ margin: $swal2-loader-margin;
210
+ animation: $swal2-loader-animation;
211
+ border-width: $swal2-loader-border-width;
212
+ border-style: $swal2-loader-border-style;
213
+ border-radius: $swal2-loader-border-radius;
214
+ border-color: $swal2-loader-border-color;
215
+ }
216
+
217
+ .swal2-styled {
218
+ margin: $swal2-button-margin;
219
+ padding: $swal2-button-padding;
220
+ transition: $swal2-button-transition;
221
+ box-shadow: $swal2-button-box-shadow;
222
+ font-weight: $swal2-button-font-weight;
223
+
224
+ &:not([disabled]) {
225
+ cursor: pointer;
226
+ }
227
+
228
+ &.swal2-confirm {
229
+ order: $swal2-confirm-button-order;
230
+ border: $swal2-confirm-button-border;
231
+ border-radius: $swal2-confirm-button-border-radius;
232
+ background: initial;
233
+ background-color: $swal2-confirm-button-background-color;
234
+ color: $swal2-confirm-button-color;
235
+ font-size: $swal2-confirm-button-font-size;
236
+
237
+ &:focus {
238
+ box-shadow: $swal2-confirm-button-focus-box-shadow;
239
+ }
240
+ }
241
+
242
+ &.swal2-deny {
243
+ order: $swal2-deny-button-order;
244
+ border: $swal2-deny-button-border;
245
+ border-radius: $swal2-deny-button-border-radius;
246
+ background: initial;
247
+ background-color: $swal2-deny-button-background-color;
248
+ color: $swal2-deny-button-color;
249
+ font-size: $swal2-deny-button-font-size;
250
+
251
+ &:focus {
252
+ box-shadow: $swal2-deny-button-focus-box-shadow;
253
+ }
254
+ }
255
+
256
+ &.swal2-cancel {
257
+ order: $swal2-cancel-button-order;
258
+ border: $swal2-cancel-button-border;
259
+ border-radius: $swal2-cancel-button-border-radius;
260
+ background: initial;
261
+ background-color: $swal2-cancel-button-background-color;
262
+ color: $swal2-cancel-button-color;
263
+ font-size: $swal2-cancel-button-font-size;
264
+
265
+ &:focus {
266
+ box-shadow: $swal2-cancel-button-focus-box-shadow;
267
+ }
268
+ }
269
+
270
+ &.swal2-default-outline {
271
+ &:focus {
272
+ box-shadow: $swal2-button-focus-box-shadow;
273
+ }
274
+ }
275
+
276
+ &:focus {
277
+ outline: $swal2-button-focus-outline;
278
+ }
279
+
280
+ &::-moz-focus-inner {
281
+ border: 0;
282
+ }
283
+ }
284
+
285
+ .swal2-footer {
286
+ justify-content: center;
287
+ margin: $swal2-footer-margin;
288
+ padding: $swal2-footer-padding;
289
+ border-top: 1px solid $swal2-footer-border-color;
290
+ color: $swal2-footer-color;
291
+ font-size: $swal2-footer-font-size;
292
+ }
293
+
294
+ .swal2-timer-progress-bar-container {
295
+ position: absolute;
296
+ right: 0;
297
+ bottom: 0;
298
+ left: 0;
299
+ grid-column: auto !important;
300
+ overflow: hidden;
301
+ border-bottom-right-radius: $swal2-border-radius;
302
+ border-bottom-left-radius: $swal2-border-radius;
303
+ }
304
+
305
+ .swal2-timer-progress-bar {
306
+ width: 100%;
307
+ height: $swal2-timer-progress-bar-height;
308
+ background: $swal2-timer-progress-bar-background;
309
+ }
310
+
311
+ .swal2-image {
312
+ max-width: 100%;
313
+ margin: $swal2-image-margin;
314
+ }
315
+
316
+ .swal2-close {
317
+ position: $swal2-close-button-position;
318
+ z-index: 2; // sweetalert2/issues/1617
319
+ align-items: $swal2-close-button-align-items;
320
+ justify-content: $swal2-close-button-justify-content;
321
+ width: $swal2-close-button-width;
322
+ height: $swal2-close-button-height;
323
+ margin-top: $swal2-close-button-gap;
324
+ margin-right: $swal2-close-button-gap;
325
+ margin-bottom: -$swal2-close-button-height;
326
+ padding: $swal2-close-button-padding;
327
+ overflow: hidden;
328
+ transition: $swal2-close-button-transition;
329
+ border: $swal2-close-button-border;
330
+ border-radius: $swal2-close-button-border-radius;
331
+ outline: $swal2-close-button-outline;
332
+ background: $swal2-close-button-background;
333
+ color: $swal2-close-button-color;
334
+ font-family: $swal2-close-button-font-family;
335
+ font-family: monospace;
336
+ font-size: $swal2-close-button-font-size;
337
+ cursor: pointer;
338
+ justify-self: $swal2-close-button-justify-self;
339
+
340
+ &:hover {
341
+ transform: $swal2-close-button-hover-transform;
342
+ background: $swal2-close-button-hover-background;
343
+ color: $swal2-close-button-hover-color;
344
+ }
345
+
346
+ &:focus {
347
+ outline: $swal2-close-button-focus-outline;
348
+ box-shadow: $swal2-close-button-focus-box-shadow;
349
+ }
350
+
351
+ &::-moz-focus-inner {
352
+ border: 0;
353
+ }
354
+ }
355
+
356
+ .swal2-html-container {
357
+ z-index: 1; // prevent sucess icon overlapping the content
358
+ justify-content: $swal2-html-container-justify-content;
359
+ margin: $swal2-html-container-margin;
360
+ padding: $swal2-html-container-padding;
361
+ overflow: $swal2-html-container-overflow;
362
+ color: $swal2-html-container-color;
363
+ font-size: $swal2-html-container-font-size;
364
+ font-weight: $swal2-html-container-font-weight;
365
+ line-height: $swal2-html-container-line-height;
366
+ text-align: $swal2-html-container-text-align;
367
+ word-wrap: $swal2-html-container-word-wrap;
368
+ word-break: $swal2-html-container-word-break;
369
+ }
370
+
371
+ .swal2-input,
372
+ .swal2-file,
373
+ .swal2-textarea,
374
+ .swal2-select,
375
+ .swal2-radio,
376
+ .swal2-checkbox {
377
+ margin: $swal2-input-margin;
378
+ }
379
+
380
+ .swal2-input,
381
+ .swal2-file,
382
+ .swal2-textarea {
383
+ box-sizing: border-box;
384
+ width: $swal2-input-width;
385
+ transition: $swal2-input-transition;
386
+ border: $swal2-input-border;
387
+ border-radius: $swal2-input-border-radius;
388
+ background: $swal2-input-background;
389
+ box-shadow: $swal2-input-box-shadow;
390
+ color: $swal2-input-color;
391
+ font-size: $swal2-input-font-size;
392
+
393
+ &.swal2-inputerror {
394
+ border-color: $swal2-error !important;
395
+ background-color: var(--error-hover-color);
396
+ }
397
+
398
+ &:focus {
399
+ border: $swal2-input-focus-border;
400
+ outline: $swal2-input-focus-outline;
401
+ box-shadow: $swal2-input-focus-box-shadow;
402
+ }
403
+
404
+ &::placeholder {
405
+ color: var(--secondary-color);
406
+ }
407
+ }
408
+
409
+ .swal2-range {
410
+ margin: $swal2-input-margin;
411
+ background: $swal2-background;
412
+
413
+ input {
414
+ width: 80%;
415
+ }
416
+
417
+ output {
418
+ width: 20%;
419
+ color: $swal2-input-color;
420
+ font-weight: 600;
421
+ text-align: center;
422
+ }
423
+
424
+ input,
425
+ output {
426
+ height: $swal2-input-height;
427
+ padding: 0;
428
+ font-size: $swal2-input-font-size;
429
+ line-height: $swal2-input-height;
430
+ }
431
+ }
432
+
433
+ .swal2-input {
434
+ height: $swal2-input-height;
435
+ padding: $swal2-input-padding;
436
+ }
437
+
438
+ .swal2-file {
439
+ width: 75%;
440
+ margin-right: auto;
441
+ margin-left: auto;
442
+ background: $swal2-input-background;
443
+ font-size: $swal2-input-font-size;
444
+ }
445
+
446
+ .swal2-textarea {
447
+ height: $swal2-textarea-height;
448
+ padding: $swal2-textarea-padding;
449
+ }
450
+
451
+ .swal2-select {
452
+ min-width: 50%;
453
+ max-width: 100%;
454
+ padding: 0.375em 0.625em;
455
+ background: $swal2-input-background;
456
+ color: $swal2-input-color;
457
+ font-size: $swal2-input-font-size;
458
+ }
459
+
460
+ .swal2-radio,
461
+ .swal2-checkbox {
462
+ align-items: center;
463
+ justify-content: center;
464
+ background: $swal2-background;
465
+ color: $swal2-input-color;
466
+
467
+ label {
468
+ margin: 0 0.6em;
469
+ font-size: $swal2-input-font-size;
470
+ }
471
+
472
+ input {
473
+ flex-shrink: 0;
474
+ margin: 0 0.4em;
475
+ }
476
+ }
477
+
478
+ .swal2-input-label {
479
+ display: flex;
480
+ justify-content: $swal2-input-label-justify-content;
481
+ margin: $swal2-input-label-margin;
482
+ }
483
+
484
+ .swal2-validation-message {
485
+ align-items: $swal2-validation-message-align-items;
486
+ justify-content: $swal2-validation-message-justify-content;
487
+ margin: $swal2-validation-message-margin;
488
+ padding: $swal2-validation-message-padding;
489
+ overflow: hidden;
490
+ background: $swal2-validation-message-background;
491
+ color: $swal2-validation-message-color;
492
+ font-size: $swal2-validation-message-font-size;
493
+ font-weight: $swal2-validation-message-font-weight;
494
+
495
+ &::before {
496
+ content: "!";
497
+ display: inline-block;
498
+ width: 1.5em;
499
+ min-width: 1.5em;
500
+ height: 1.5em;
501
+ margin: 0 0.625em;
502
+ zoom: $swal2-validation-message-icon-zoom;
503
+ border-radius: 50%;
504
+ background-color: $swal2-validation-message-icon-background;
505
+ color: $swal2-validation-message-icon-color;
506
+ font-weight: 600;
507
+ line-height: 1.5em;
508
+ text-align: center;
509
+ }
510
+ }
511
+
512
+ // https://stackoverflow.com/a/12335841/1331425
513
+ @function strip-units($number) {
514
+ @return math.div($number, ($number * 0 + 1));
515
+ }
516
+ $icon-zoom: math.div(strip-units($swal2-icon-size), 5);
517
+
518
+ .swal2-icon {
519
+ position: relative;
520
+ box-sizing: content-box;
521
+ justify-content: center;
522
+ width: $swal2-icon-size;
523
+ height: $swal2-icon-size;
524
+ margin: $swal2-icon-margin;
525
+ zoom: $swal2-icon-zoom;
526
+ border: #{0.25em * $icon-zoom} solid transparent;
527
+ border-radius: 50%;
528
+ border-color: $swal2-icon-border-color;
529
+ font-family: $swal2-icon-font-family;
530
+ line-height: $swal2-icon-size;
531
+ cursor: default;
532
+ user-select: none;
533
+
534
+ .swal2-icon-content {
535
+ display: flex;
536
+ align-items: center;
537
+ font-size: $swal2-icon-font-size;
538
+ }
539
+
540
+ &.swal2-error {
541
+ border-color: $swal2-error;
542
+ color: $swal2-error;
543
+
544
+ .swal2-x-mark {
545
+ position: relative;
546
+ flex-grow: 1;
547
+
548
+ @if $icon-zoom != 1 {
549
+ zoom: $icon-zoom;
550
+ }
551
+ }
552
+
553
+ [class^="swal2-x-mark-line"] {
554
+ display: block;
555
+ position: absolute;
556
+ top: 2.3125em;
557
+ width: 2.9375em;
558
+ height: 0.3125em;
559
+ border-radius: 0.125em;
560
+ background-color: $swal2-error;
561
+
562
+ &[class$="left"] {
563
+ left: 1.0625em;
564
+ transform: rotate(45deg);
565
+ }
566
+
567
+ &[class$="right"] {
568
+ right: 1em;
569
+ transform: rotate(-45deg);
570
+ }
571
+ }
572
+
573
+ // Error icon animation
574
+ &.swal2-icon-show {
575
+ @if $swal2-icon-animations {
576
+ animation: swal2-animate-error-icon 0.5s;
577
+
578
+ .swal2-x-mark {
579
+ animation: swal2-animate-error-x-mark 0.5s;
580
+ }
581
+ }
582
+ }
583
+ }
584
+
585
+ &.swal2-warning {
586
+ border-color: var(--warn-color);
587
+ background-color: var(--warn-hover-color);
588
+ color: $swal2-warning;
589
+
590
+ // Warning icon animation
591
+ &.swal2-icon-show {
592
+ @if $swal2-icon-animations {
593
+ animation: swal2-animate-error-icon 0.5s;
594
+
595
+ .swal2-icon-content {
596
+ animation: swal2-animate-i-mark 0.5s;
597
+ }
598
+ }
599
+ }
600
+ }
601
+
602
+ &.swal2-info {
603
+ border-color: var(--info-color);
604
+ background-color: var(--info-hover-color);
605
+ color: $swal2-info;
606
+
607
+ // Info icon animation
608
+ &.swal2-icon-show {
609
+ @if $swal2-icon-animations {
610
+ animation: swal2-animate-error-icon 0.5s;
611
+
612
+ .swal2-icon-content {
613
+ animation: swal2-animate-i-mark 0.8s;
614
+ }
615
+ }
616
+ }
617
+ }
618
+
619
+ &.swal2-question {
620
+ border-color: var(--help-color);
621
+ background-color: var(--help-hover-color);
622
+ color: $swal2-question;
623
+
624
+ // Question icon animation
625
+ &.swal2-icon-show {
626
+ @if $swal2-icon-animations {
627
+ animation: swal2-animate-error-icon 0.5s;
628
+
629
+ .swal2-icon-content {
630
+ animation: swal2-animate-question-mark 0.8s;
631
+ }
632
+ }
633
+ }
634
+ }
635
+
636
+ &.swal2-success {
637
+ border-color: var(--success-color);
638
+ background-color: var(--success-hover-color);
639
+ color: $swal2-success;
640
+
641
+ [class^="swal2-success-circular-line"] {
642
+ // Emulate moving circular line
643
+ position: absolute;
644
+ width: 3.75em;
645
+ height: 7.5em;
646
+ transform: rotate(45deg);
647
+ border-radius: 50%;
648
+
649
+ &[class$="left"] {
650
+ top: -0.4375em;
651
+ left: -2.0635em;
652
+ transform: rotate(-45deg);
653
+ transform-origin: 3.75em 3.75em;
654
+ border-radius: 7.5em 0 0 7.5em;
655
+
656
+ @if $icon-zoom != 1 {
657
+ zoom: $icon-zoom;
658
+ }
659
+ }
660
+
661
+ &[class$="right"] {
662
+ top: -0.6875em;
663
+ left: 1.875em;
664
+ transform: rotate(-45deg);
665
+ transform-origin: 0 3.75em;
666
+ border-radius: 0 7.5em 7.5em 0;
667
+
668
+ @if $icon-zoom != 1 {
669
+ zoom: $icon-zoom;
670
+ }
671
+ }
672
+ }
673
+
674
+ .swal2-success-ring {
675
+ // Ring
676
+ position: absolute;
677
+ z-index: 2;
678
+ top: -0.25em;
679
+ left: -0.25em;
680
+ box-sizing: content-box;
681
+ width: 100%;
682
+ height: 100%;
683
+ border: 0.25em solid $swal2-success-border;
684
+ border-radius: 50%;
685
+
686
+ @if $icon-zoom != 1 {
687
+ zoom: $icon-zoom;
688
+ }
689
+ }
690
+
691
+ .swal2-success-fix {
692
+ // Hide corners left from animation
693
+ position: absolute;
694
+ z-index: 1;
695
+ top: 0.5em;
696
+ left: 1.625em;
697
+ width: 0.4375em;
698
+ height: 5.625em;
699
+ transform: rotate(-45deg);
700
+
701
+ @if $icon-zoom != 1 {
702
+ zoom: $icon-zoom;
703
+ }
704
+ }
705
+
706
+ [class^="swal2-success-line"] {
707
+ display: block;
708
+ position: absolute;
709
+ z-index: 2;
710
+ height: 0.3125em;
711
+ border-radius: 0.125em;
712
+ background-color: $swal2-success;
713
+
714
+ &[class$="tip"] {
715
+ top: 2.875em;
716
+ left: 0.8125em;
717
+ width: 1.5625em;
718
+ transform: rotate(45deg);
719
+ }
720
+
721
+ &[class$="long"] {
722
+ top: 2.375em;
723
+ right: 0.5em;
724
+ width: 2.9375em;
725
+ transform: rotate(-45deg);
726
+ }
727
+
728
+ @if $icon-zoom != 1 {
729
+ zoom: $icon-zoom;
730
+ }
731
+ }
732
+
733
+ // Success icon animation
734
+ &.swal2-icon-show {
735
+ @if $swal2-icon-animations {
736
+ .swal2-success-line-tip {
737
+ animation: swal2-animate-success-line-tip 0.75s;
738
+ }
739
+
740
+ .swal2-success-line-long {
741
+ animation: swal2-animate-success-line-long 0.75s;
742
+ }
743
+
744
+ .swal2-success-circular-line-right {
745
+ animation: swal2-rotate-success-circular-line 4.25s ease-in;
746
+ }
747
+ }
748
+ }
749
+ }
750
+ }
751
+
752
+ .swal2-progress-steps {
753
+ flex-wrap: $swal2-progress-steps-flex-wrap;
754
+ align-items: $swal2-progress-steps-align-items;
755
+ max-width: $swal2-progress-steps-max-width;
756
+ margin: $swal2-progress-steps-margin;
757
+ padding: $swal2-progress-steps-padding;
758
+ background: $swal2-progress-steps-background;
759
+ font-weight: $swal2-progress-steps-font-weight;
760
+
761
+ li {
762
+ display: inline-block;
763
+ position: relative;
764
+ }
765
+
766
+ .swal2-progress-step {
767
+ z-index: 20;
768
+ flex-shrink: 0;
769
+ width: $swal2-progress-step-width;
770
+ height: $swal2-progress-step-height;
771
+ border-radius: $swal2-progress-step-border-radius;
772
+ background: $swal2-active-step-background;
773
+ color: $swal2-active-step-color;
774
+ line-height: $swal2-progress-step-height;
775
+ text-align: center;
776
+
777
+ &.swal2-active-progress-step {
778
+ background: $swal2-active-step-background;
779
+
780
+ ~ .swal2-progress-step {
781
+ background: $swal2-progress-step-background;
782
+ color: $swal2-progress-step-color;
783
+ }
784
+
785
+ ~ .swal2-progress-step-line {
786
+ background: $swal2-progress-step-background;
787
+ }
788
+ }
789
+ }
790
+
791
+ .swal2-progress-step-line {
792
+ z-index: 10;
793
+ flex-shrink: 0;
794
+ width: $swal2-progress-steps-distance;
795
+ height: 0.4em;
796
+ margin: 0 -1px;
797
+ background: $swal2-active-step-background;
798
+ }
799
+ }
800
+
801
+ // github.com/sweetalert2/sweetalert2/issues/268
802
+ [class^="swal2"] {
803
+ -webkit-tap-highlight-color: transparent;
804
+ }
805
+
806
+ .swal2-show {
807
+ animation: $swal2-show-animation;
808
+ }
809
+
810
+ .swal2-hide {
811
+ animation: $swal2-hide-animation;
812
+ }
813
+
814
+ .swal2-noanimation {
815
+ transition: none;
816
+ }
817
+
818
+ // Measure scrollbar width for padding body during modal show/hide
819
+ .swal2-scrollbar-measure {
820
+ position: absolute;
821
+ top: -9999px;
822
+ width: 50px;
823
+ height: 50px;
824
+ overflow: scroll;
825
+ }
826
+
827
+ // Right-to-left support
828
+ .swal2-rtl {
829
+ .swal2-close {
830
+ margin-right: initial;
831
+ margin-left: $swal2-close-button-gap;
832
+ }
833
+
834
+ .swal2-timer-progress-bar {
835
+ right: 0;
836
+ left: auto;
837
+ }
838
+ }
839
+
840
+ .swal2-no-war {
841
+ display: flex;
842
+ position: fixed;
843
+ z-index: 1061;
844
+ top: 0;
845
+ left: 0;
846
+ align-items: center;
847
+ justify-content: center;
848
+ width: 100%;
849
+ height: 3.375em;
850
+ background: #20232a;
851
+ color: #fff;
852
+ text-align: center;
853
+
854
+ a {
855
+ color: #61dafb;
856
+ text-decoration: none;
857
+
858
+ &:hover {
859
+ text-decoration: underline;
860
+ }
861
+ }
862
+ }