recipes/backend/scss/toast.scss

51 lines
No EOL
693 B
SCSS

@use 'constants' as consts;
@use 'mixins';
#toasts {
position: fixed;
z-index: 6;
left: 50%;
top: 15px;
transform: translate(-50%, 0%);
display: flex;
flex-direction: column;
.toast {
display: none;
width: fit-content;
align-self: center;
@include mixins.popup;
margin: var(--margin);
.content {
display: inline-block;
}
img {
vertical-align: text-bottom;
}
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeout {
from {
opacity: 1;
}
to {
opacity: 0;
}
}