|
| 1 | +.c-toast { |
| 2 | + padding-top: 0; |
| 3 | + padding-bottom: 0; |
| 4 | + |
| 5 | + .Toastify__toast-body { |
| 6 | + margin-top: 8px; |
| 7 | + margin-bottom: 8px; |
| 8 | + } |
| 9 | + |
| 10 | + &.Toastify__toast { |
| 11 | + @include font-style(); |
| 12 | + border-radius: $border-radius-small; |
| 13 | + border-width: 1px; |
| 14 | + border-style: solid; |
| 15 | + box-shadow: none; |
| 16 | + min-height: 1px; |
| 17 | + |
| 18 | + .c-toast-content { |
| 19 | + display: flex; |
| 20 | + |
| 21 | + &__icon-container { |
| 22 | + &__icon { |
| 23 | + vertical-align: middle; |
| 24 | + margin-right: 8px; |
| 25 | + } |
| 26 | + } |
| 27 | + |
| 28 | + &__body { |
| 29 | + padding-top: 3px; |
| 30 | + } |
| 31 | + } |
| 32 | + |
| 33 | + .Toastify__progress-bar { |
| 34 | + filter: alpha(0.5); |
| 35 | + } |
| 36 | + |
| 37 | + &--success { |
| 38 | + background-color: get-color-status("success-light"); |
| 39 | + color: get-color-status("success-dark"); |
| 40 | + border-color: get-color-status("success"); |
| 41 | + |
| 42 | + .Toastify__progress-bar { |
| 43 | + background-color: get-color-status("success"); |
| 44 | + } |
| 45 | + |
| 46 | + .c-toast-content { |
| 47 | + &__icon-container { |
| 48 | + &__icon { |
| 49 | + path { |
| 50 | + fill: get-color-status("success"); |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + } |
| 55 | + } |
| 56 | + |
| 57 | + &--error { |
| 58 | + background-color: get-color-status("error-light"); |
| 59 | + color: get-color-status("error-dark"); |
| 60 | + border-color: get-color-status("error"); |
| 61 | + |
| 62 | + .Toastify__progress-bar { |
| 63 | + background-color: get-color-status("error"); |
| 64 | + } |
| 65 | + |
| 66 | + .c-toast-content { |
| 67 | + &__icon-container { |
| 68 | + &__icon { |
| 69 | + path { |
| 70 | + fill: get-color-status("error"); |
| 71 | + } |
| 72 | + } |
| 73 | + } |
| 74 | + } |
| 75 | + } |
| 76 | + |
| 77 | + &--warning { |
| 78 | + background-color: get-color-status("warning-light"); |
| 79 | + color: get-color-status("warning-dark"); |
| 80 | + border-color: get-color-status("warning"); |
| 81 | + |
| 82 | + .Toastify__progress-bar { |
| 83 | + background-color: get-color-status("warning"); |
| 84 | + } |
| 85 | + |
| 86 | + .c-toast-content { |
| 87 | + &__icon-container { |
| 88 | + &__icon { |
| 89 | + path { |
| 90 | + fill: get-color-status("warning"); |
| 91 | + } |
| 92 | + } |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | + |
| 97 | + &--info { |
| 98 | + background-color: get-color-status("info-light"); |
| 99 | + color: get-color-status("info-dark"); |
| 100 | + border-color: get-color-status("info"); |
| 101 | + |
| 102 | + .Toastify__progress-bar { |
| 103 | + background-color: get-color-status("info"); |
| 104 | + } |
| 105 | + |
| 106 | + .c-toast-content { |
| 107 | + &__icon-container { |
| 108 | + &__icon { |
| 109 | + path { |
| 110 | + fill: get-color-status("info"); |
| 111 | + } |
| 112 | + } |
| 113 | + } |
| 114 | + } |
| 115 | + } |
| 116 | + } |
| 117 | +} |
0 commit comments