laconic.com/src/components/common/modal/modal.module.scss
2022-06-09 12:29:12 +02:00

42 lines
633 B
SCSS

@import '~/css/helpers';
.modal {
@include respond-to('mobile') {
min-width: unset;
width: 90vw;
}
min-width: tovw(700px, 'default', 700px);
background-color: unset;
position: fixed;
top: 50%;
left: 50%;
width: 50vw;
transform: translate(-50%, -50%);
padding: 0;
margin: 0;
animation: fadein 1200ms;
&__bg {
position: fixed;
top: 0;
right: 0;
width: 100vw;
height: 100vh;
background-color: rgb(0 0 0 / 0.5);
z-index: 50;
backdrop-filter: blur(2px);
animation: fadein 800ms;
}
}
@keyframes fadein {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}