recipes/backend/scss/toast.scss
Greg Burri 8be2aa0129 - CSS for modal dialog
- User can click outside modal dialog to close it
2025-05-01 00:48:51 +02:00

51 lines
No EOL
694 B
SCSS

@use 'constants' as consts;
@use 'mixins';
#toasts {
position: fixed;
z-index: 1;
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: consts.$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;
}
}