| 1 |
@keyframes modal-video { |
| 2 |
from { |
| 3 |
opacity: 0; |
| 4 |
} |
| 5 |
to { |
| 6 |
opacity: 1; |
| 7 |
} |
| 8 |
} |
| 9 |
@keyframes modal-video-inner { |
| 10 |
from { |
| 11 |
transform: translate(0, 100px); |
| 12 |
} |
| 13 |
to { |
| 14 |
transform: translate(0, 0); |
| 15 |
} |
| 16 |
} |
| 17 |
.modal-video { |
| 18 |
position: fixed; |
| 19 |
top: 0; |
| 20 |
left: auto; |
| 21 |
right: 0; |
| 22 |
width: calc(100% - 160px); |
| 23 |
height: 100%; |
| 24 |
background-color: rgba(0, 0, 0, 0.5); |
| 25 |
z-index: 1000000; |
| 26 |
cursor: pointer; |
| 27 |
opacity: 1; |
| 28 |
animation-timing-function: ease-out; |
| 29 |
animation-duration: 0.3s; |
| 30 |
animation-name: modal-video; |
| 31 |
-webkit-transition: opacity 0.3s ease-out; |
| 32 |
-moz-transition: opacity 0.3s ease-out; |
| 33 |
-ms-transition: opacity 0.3s ease-out; |
| 34 |
-o-transition: opacity 0.3s ease-out; |
| 35 |
transition: opacity 0.3s ease-out; |
| 36 |
} |
| 37 |
.modal-video-close { |
| 38 |
opacity: 0; |
| 39 |
} |
| 40 |
.modal-video-close .modal-video-movie-wrap { |
| 41 |
-webkit-transform: translate(0, 100px); |
| 42 |
-moz-transform: translate(0, 100px); |
| 43 |
-ms-transform: translate(0, 100px); |
| 44 |
-o-transform: translate(0, 100px); |
| 45 |
transform: translate(0, 100px); |
| 46 |
} |
| 47 |
.modal-video-body { |
| 48 |
max-width: 1800px; |
| 49 |
width: 100%; |
| 50 |
height: 100%; |
| 51 |
margin: 0 auto; |
| 52 |
box-sizing: border-box; |
| 53 |
display: table; |
| 54 |
padding: 10%; |
| 55 |
} |
| 56 |
.modal-video-inner { |
| 57 |
display: table-cell; |
| 58 |
vertical-align: middle; |
| 59 |
width: 100%; |
| 60 |
height: 100%; |
| 61 |
} |
| 62 |
.modal-video-movie-wrap { |
| 63 |
width: 100%; |
| 64 |
height: 0; |
| 65 |
position: relative; |
| 66 |
padding-bottom: 56.25%; |
| 67 |
background-color: #333; |
| 68 |
animation-timing-function: ease-out; |
| 69 |
animation-duration: 0.3s; |
| 70 |
animation-name: modal-video-inner; |
| 71 |
-webkit-transform: translate(0, 0); |
| 72 |
-moz-transform: translate(0, 0); |
| 73 |
-ms-transform: translate(0, 0); |
| 74 |
-o-transform: translate(0, 0); |
| 75 |
transform: translate(0, 0); |
| 76 |
-webkit-transition: -webkit-transform 0.3s ease-out; |
| 77 |
-moz-transition: -moz-transform 0.3s ease-out; |
| 78 |
-ms-transition: -ms-transform 0.3s ease-out; |
| 79 |
-o-transition: -o-transform 0.3s ease-out; |
| 80 |
transition: transform 0.3s ease-out; |
| 81 |
} |
| 82 |
.modal-video-movie-wrap iframe { |
| 83 |
position: absolute; |
| 84 |
top: 0; |
| 85 |
left: 0; |
| 86 |
width: 100%; |
| 87 |
height: 100%; |
| 88 |
} |
| 89 |
.modal-video-close-btn { |
| 90 |
position: absolute; |
| 91 |
z-index: 2; |
| 92 |
top: -35px; |
| 93 |
right: -35px; |
| 94 |
display: inline-block; |
| 95 |
width: 35px; |
| 96 |
height: 35px; |
| 97 |
overflow: hidden; |
| 98 |
border: none; |
| 99 |
background: transparent; |
| 100 |
cursor: pointer; |
| 101 |
} |
| 102 |
.modal-video-close-btn:before { |
| 103 |
transform: rotate(45deg); |
| 104 |
} |
| 105 |
.modal-video-close-btn:after { |
| 106 |
transform: rotate(-45deg); |
| 107 |
} |
| 108 |
.modal-video-close-btn:before, |
| 109 |
.modal-video-close-btn:after { |
| 110 |
content: ""; |
| 111 |
position: absolute; |
| 112 |
height: 2px; |
| 113 |
width: 100%; |
| 114 |
top: 50%; |
| 115 |
left: 0; |
| 116 |
margin-top: -1px; |
| 117 |
background: #fff; |
| 118 |
border-radius: 5px; |
| 119 |
margin-top: -6px; |
| 120 |
} |
| 121 |
.modal-video *:focus { |
| 122 |
outline: 0; |
| 123 |
} |
| 124 |
@media screen and (max-width: 996px) { |
| 125 |
.modal-video { |
| 126 |
width: calc(100% - 36px); |
| 127 |
} |
| 128 |
} |
| 129 |
@media screen and (max-width: 782px) { |
| 130 |
.modal-video { |
| 131 |
width: 100%; |
| 132 |
} |
| 133 |
} |
| 134 |
|