File: /var/www/zaklada/html/lib/scss/core/_modal-video.scss
$animation-speed: 0.3s;
$animation-function: ease-out;
$backdrop-color: rgba(0, 0, 0, 0.8);
$modal-bg-color: #333;
@keyframes modal-video {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes modal-video-inner {
from {
transform: translate(0, 100px);
}
to {
transform: translate(0, 0);
}
}
.modal-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: $backdrop-color;
z-index: 1000000;
cursor: pointer;
opacity: 1;
animation-timing-function: $animation-function;
animation-duration: $animation-speed;
animation-name: modal-video;
transition: opacity $animation-speed $animation-function;
}
.modal-video-close {
opacity: 0;
& .modal-video-movie-wrap {
transform: translate(0, 100px);
}
}
.modal-video-body {
max-width: 940px;
width: 100%;
height: 100%;
margin: 0 auto;
display: table;
padding: 50px;
}
.modal-video-inner {
display: table-cell;
vertical-align: middle;
width: 100%;
height: 100%;
}
.modal-video-movie-wrap {
width: 100%;
height: 0;
position: relative;
padding-bottom: 56.25%;
background-color: $modal-bg-color;
animation-timing-function: $animation-function;
animation-duration: $animation-speed;
animation-name: modal-video-inner;
transform: translate(0, 0);
transition: transform $animation-speed $animation-function;
& iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
.modal-video-close-btn {
position: absolute;
z-index: 2;
top: 0;
right: -35px;
display: inline-block;
width: 30px;
height: 30px;
overflow: hidden;
border: none;
background: transparent;
cursor: pointer;
&:before,
&:after {
content: "";
position: absolute;
width: 5px;
height: 18px;
left: 10px;
top: 4px;
background: $color-white;
}
&:before {
transform: rotate(45deg);
}
&:after {
transform: rotate(-45deg);
}
@media screen and (min-width: 768px) {
top: -27px;
right: -30px;
}
}