_accordion.scss
3 months ago
_badge.scss
5 years ago
_buttons.scss
3 months ago
_card.scss
5 years ago
_entries-views.scss
1 month ago
_evf-header-skeleton.scss
3 months ago
_evf-pro-upsell.scss
1 month ago
_forms.scss
5 years ago
_table.scss
1 month ago
_toast.scss
5 months ago
_toast.scss
127 lines
| 1 | // ----------------------------------------------------- |
| 2 | // Toast Variables |
| 3 | // ----------------------------------------------------- |
| 4 | $toast-width: 320px; |
| 5 | $toast-bg: #323232; |
| 6 | $toast-color: #fff; |
| 7 | $toast-radius: 6px; |
| 8 | $toast-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); |
| 9 | $toast-padding: 12px 16px; |
| 10 | $toast-gap: 12px; |
| 11 | $toast-z: 99999; |
| 12 | $toast-duration: 0.25s; |
| 13 | |
| 14 | // Colors for types |
| 15 | $toast-success: #22c55e; |
| 16 | $toast-error: #ef4444; |
| 17 | $toast-warning: #f97316; |
| 18 | $toast-info: #6366f1; |
| 19 | |
| 20 | // ----------------------------------------------------- |
| 21 | // Hide EVF bulk action notice — JS shows it as toast |
| 22 | // ----------------------------------------------------- |
| 23 | #setting-error-bulk_action { |
| 24 | display: none !important; |
| 25 | } |
| 26 | |
| 27 | // ----------------------------------------------------- |
| 28 | // Container — bottom center |
| 29 | // ----------------------------------------------------- |
| 30 | #evf-toast-container { |
| 31 | position: fixed; |
| 32 | bottom: 30px; |
| 33 | left: 50%; |
| 34 | transform: translateX(-50%); |
| 35 | display: flex; |
| 36 | flex-direction: column; |
| 37 | align-items: center; |
| 38 | gap: $toast-gap; |
| 39 | z-index: $toast-z; |
| 40 | } |
| 41 | |
| 42 | // ----------------------------------------------------- |
| 43 | // Toast Box |
| 44 | // ----------------------------------------------------- |
| 45 | .evf-toast { |
| 46 | position: relative; |
| 47 | width: $toast-width; |
| 48 | max-width: 95vw; |
| 49 | background: $toast-bg; |
| 50 | color: $toast-color; |
| 51 | padding: $toast-padding; |
| 52 | border-radius: $toast-radius; |
| 53 | box-shadow: $toast-shadow; |
| 54 | |
| 55 | opacity: 0; |
| 56 | transform: translateY(16px); |
| 57 | transition: |
| 58 | opacity $toast-duration ease, |
| 59 | transform $toast-duration ease; |
| 60 | |
| 61 | &.is-visible { |
| 62 | opacity: 1; |
| 63 | transform: translateY(0); |
| 64 | } |
| 65 | |
| 66 | // Toast close button |
| 67 | .evf-toast-close { |
| 68 | position: absolute; |
| 69 | right: 8px; |
| 70 | top: 6px; |
| 71 | background: transparent; |
| 72 | border: none; |
| 73 | font-size: 18px; |
| 74 | color: inherit; |
| 75 | cursor: pointer; |
| 76 | line-height: 1; |
| 77 | |
| 78 | &:hover { |
| 79 | opacity: 0.8; |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // ----------------------------------------------------- |
| 85 | // Toast Types |
| 86 | // ----------------------------------------------------- |
| 87 | .evf-toast-success { |
| 88 | background: $toast-success; |
| 89 | } |
| 90 | |
| 91 | .evf-toast-error { |
| 92 | background: $toast-error; |
| 93 | } |
| 94 | |
| 95 | .evf-toast-warning { |
| 96 | background: $toast-warning; |
| 97 | } |
| 98 | |
| 99 | .evf-toast-info { |
| 100 | background: $toast-info; |
| 101 | } |
| 102 | |
| 103 | // ----------------------------------------------------- |
| 104 | // Animations |
| 105 | // ----------------------------------------------------- |
| 106 | @keyframes toast-fade-in { |
| 107 | 0% { |
| 108 | opacity: 0; |
| 109 | transform: translateY(16px); |
| 110 | } |
| 111 | 100% { |
| 112 | opacity: 1; |
| 113 | transform: translateY(0); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | @keyframes toast-fade-out { |
| 118 | 0% { |
| 119 | opacity: 1; |
| 120 | transform: translateY(0); |
| 121 | } |
| 122 | 100% { |
| 123 | opacity: 0; |
| 124 | transform: translateY(16px); |
| 125 | } |
| 126 | } |
| 127 |