w-lab-app/src/components/widgets/ToastContainer/ToastContainer.module.scss
gofnnp 12836b372d main
done retaining funnel, edits compatibility & palms & home
2025-06-24 11:45:45 +04:00

69 lines
1.3 KiB
SCSS

.container {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 9995;
display: flex;
flex-direction: column;
gap: 12px;
max-width: 400px;
width: calc(100vw - 32px);
pointer-events: none;
}
.toastWrapper {
pointer-events: auto;
animation: slideIn 0.3s ease-out;
animation-fill-mode: both;
animation-delay: calc(var(--toast-index) * 0.1s);
&:not(:first-child) {
margin-top: calc(var(--toast-index) * -8px);
transform: scale(calc(1 - var(--toast-index) * 0.05));
opacity: calc(1 - var(--toast-index) * 0.2);
}
}
// .queueIndicator {
// background: rgba(0, 0, 0, 0.7);
// color: white;
// padding: 8px 16px;
// border-radius: 20px;
// font-size: 12px;
// text-align: center;
// pointer-events: auto;
// animation: fadeIn 0.3s ease-out;
// backdrop-filter: blur(10px);
// }
@keyframes slideIn {
from {
transform: translateY(100%) scale(0.8);
opacity: 0;
}
to {
transform: translateY(0) scale(1);
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 480px) {
.container {
bottom: 16px;
width: calc(100vw - 24px);
max-width: none;
}
}