app/assets/stylesheets/pages_core/admin/components/toast.css
.toast-wrapper {
position: fixed;
bottom: 0px;
width: 100%;
text-align: center;
overflow: hidden;
z-index: 200;
.toast {
display: inline-block;
background: var(--background-invert-color);
color: white;
margin: 20px auto 0px auto;
padding: 15px 30px;
min-width: 50%;
text-align: left;
animation-duration: 500ms;
animation-name: toast-appear;
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
animation-fill-mode: forwards;
&.error {
background: var(--red);
}
&.fadeout {
animation-duration: 300ms;
animation-name: toast-disappear;
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
}
}
@keyframes toast-appear {
from {
transform: translateZ(0px) translateY(60px);
}
to {
transform: translateZ(0px) translateY(0px);
}
}
@keyframes toast-disappear {
from {
transform: translateZ(0px) translateY(0px);
}
to {
transform: translateZ(0px) translateY(60px);
}
}