| 1 |
.toastContainer { |
| 2 |
display: flex; |
| 3 |
position: fixed; |
| 4 |
font-family: 'Open Sans', sans-serif; |
| 5 |
max-width: 42rem; |
| 6 |
border-radius: var(--givewp-rounded-4); |
| 7 |
box-shadow: 0 0.25rem 0.5rem 0 rgba(14, 14, 14, 0.15); |
| 8 |
background-color: #fff; |
| 9 |
align-items: center; |
| 10 |
justify-content: space-between; |
| 11 |
color: var(--grey-900, #0E0E0E); |
| 12 |
z-index: 999; |
| 13 |
|
| 14 |
> div { |
| 15 |
padding: var(--givewp-spacing-3); |
| 16 |
} |
| 17 |
|
| 18 |
.icon { |
| 19 |
> * { |
| 20 |
margin-bottom: -3px; |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
&.success { |
| 25 |
border: 1px solid #08A657; |
| 26 |
background: linear-gradient(0deg, #F2FFF9, #F2FFF9), |
| 27 |
linear-gradient(0deg, #08A657, #08A657); |
| 28 |
} |
| 29 |
|
| 30 |
&.error { |
| 31 |
|
| 32 |
} |
| 33 |
|
| 34 |
&.warning { |
| 35 |
|
| 36 |
} |
| 37 |
|
| 38 |
&.info { |
| 39 |
|
| 40 |
} |
| 41 |
|
| 42 |
&.topLeft { |
| 43 |
top: var(--givewp-spacing-15); |
| 44 |
left: var(--givewp-spacing-6); |
| 45 |
animation: slideRight 300ms ease-in; |
| 46 |
} |
| 47 |
|
| 48 |
&.topRight { |
| 49 |
top: var(--givewp-spacing-15); |
| 50 |
right: var(--givewp-spacing-6); |
| 51 |
animation: slideLeft 300ms ease-in; |
| 52 |
} |
| 53 |
|
| 54 |
&.bottomLeft { |
| 55 |
bottom: var(--givewp-spacing-15); |
| 56 |
left: var(--givewp-spacing-6); |
| 57 |
animation: slideRight 300ms ease-in; |
| 58 |
} |
| 59 |
|
| 60 |
&.bottomRight { |
| 61 |
bottom: var(--givewp-spacing-15); |
| 62 |
right: var(--givewp-spacing-6); |
| 63 |
animation: slideLeft 300ms ease-in; |
| 64 |
} |
| 65 |
|
| 66 |
|
| 67 |
.content { |
| 68 |
flex-grow: 4; |
| 69 |
} |
| 70 |
|
| 71 |
.closeIconSize { |
| 72 |
width: 16px !important; |
| 73 |
height: 16px !important; |
| 74 |
} |
| 75 |
|
| 76 |
.close { |
| 77 |
all: unset; |
| 78 |
cursor: pointer; |
| 79 |
padding-top: 4px; |
| 80 |
} |
| 81 |
} |
| 82 |
|
| 83 |
@keyframes slideRight { |
| 84 |
0% { |
| 85 |
left: -500px; |
| 86 |
} |
| 87 |
100% { |
| 88 |
left: var(--givewp-spacing-10); |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
@keyframes slideLeft { |
| 93 |
0% { |
| 94 |
right: -500px; |
| 95 |
} |
| 96 |
100% { |
| 97 |
right: var(--givewp-spacing-10); |
| 98 |
} |
| 99 |
} |
| 100 |
|