File: /var/www/quadcode-site/src/style/components/modal.scss
.modal {
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(15px);
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: .4s ease-in-out;
.container {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
&.active {
opacity: 1;
pointer-events: all;
}
&__content {
position: relative;
width: 600px;
padding: 55px 35px;
background-color: $white;
border-radius: 16px;
@include breakpoint-down('tabM') {
padding: 40px 25px;
}
}
&__close {
position: absolute;
top: 24px;
right: 24px;
cursor: pointer;
@include breakpoint-down('tabM') {
top: 16px;
right: 16px;
}
}
}
.modal-gallery {
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(15px);
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: .4s ease-in-out;
@include breakpoint-down('tabM') {
display: none;
}
&__close {
position: absolute;
right: 0;
top: -125px;
@include breakpoint-down('deskL') {
top: -133px;
}
@include breakpoint-down('deskM') {
top: -65px;
}
@include breakpoint-down('deskS') {
top: 0;
}
img {
transition: .4s ease-in-out;
will-change: transform;
}
&:hover {
img {
transform: scale(1.1);
}
}
}
&__content {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.container {
height: 61%;
@include breakpoint-down('deskL') {
max-height: 521px;
height: 100%;
}
@include breakpoint-down('deskS') {
max-height: 341px;
position: unset;
}
}
}
&--active {
opacity: 1;
pointer-events: all;
}
&__swiper {
height: 100%;
}
}
.modal-video {
background: rgba(0, 0, 0, 0.65);
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: .4s ease-in-out;
&::before {
display: block;
content: '';
width: 100%;
height: 100%;
backdrop-filter: blur(15px);
position: absolute;
top: 0;
left: 0;
}
@include breakpoint-down('tabM') {
display: none;
}
&__close {
position: absolute;
right: 0;
top: -125px;
@include breakpoint-down('deskL') {
top: -133px;
}
@include breakpoint-down('deskM') {
top: -65px;
}
@include breakpoint-down('deskS') {
top: 0;
}
img {
transition: .4s ease-in-out;
will-change: transform;
}
&:hover {
img {
transform: scale(1.1);
}
}
}
&__content {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.container {
height: 61%;
@include breakpoint-down('deskL') {
max-height: 521px;
height: 100%;
}
@include breakpoint-down('deskS') {
max-height: 341px;
position: unset;
}
}
}
&--active {
opacity: 1;
pointer-events: all;
}
}