File: /var/www/zaklada/html/lib/scss/core/_modal.scss
.modal-window {
position: fixed;
width: 100%;
height: 100%;
z-index: 1100;
left: 0;
top: 0;
background-color: rgba(0, 0, 0, 0.8);
display: none;
overflow: auto;
animation-duration: 0.2s;
// display: flex;
align-items: center;
justify-content: center;
&.visible {
display: flex;
}
.modal-inner {
position: relative;
max-width: 80%;
padding: 47px 35px 50px 35px;
background: $color-blue-dark;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
@media screen and (min-width: 768px) {
max-width: 827px;
padding: 100px 90px;
}
h1 {
font-weight: 600;
text-transform: none;
text-align: center;
color: $color-white;
font-size: rem(18);
margin-bottom: 30px;
@media screen and (min-width: 768px) {
margin-bottom: 65px;
font-size: rem(50);
}
}
p {
font-weight: 400;
text-align: center;
color: $color-white;
font-size: rem(16);
margin-bottom: 0px;
@media screen and (min-width: 768px) {
margin-bottom: 30px;
font-size: rem(19);
}
}
}
.close-modal {
position: absolute;
top: 20px;
right: 20px;
width: 25px;
height: 25px;
cursor: pointer;
z-index: 9;
&:before,
&:after {
content: "";
position: absolute;
width: 5px;
height: 18px;
left: 10px;
top: 4px;
background: $color-white;
}
&:before {
transform: rotate(45deg);
}
&:after {
transform: rotate(-45deg);
}
}
}