| @@ -18,9 +18,8 @@ | ||
| 18 | 18 | .eel-normal-video { |
| 19 | 19 | width: 100%; |
| 20 | 20 | max-width: 800px; |
| 21 | 21 | margin-bottom: 20px; |
| 22 | - display: block; | |
| 23 | 22 | } |
| 24 | 23 | |
| 25 | 24 | .eel-video-popup-overlay.active { |
| 26 | 25 | display: flex; |
| @@ -27,17 +26,17 @@ | ||
| 27 | 26 | } |
| 28 | 27 | |
| 29 | 28 | .eel-video-popup-content { |
| 30 | 29 | position: relative; |
| 31 | - width: 100%; | |
| 32 | - max-width: 1100px; | |
| 30 | + width: 90%; | |
| 31 | + max-width: 800px; | |
| 33 | 32 | background: #000; |
| 34 | - margin: 0 20px; | |
| 35 | 33 | } |
| 36 | 34 | |
| 37 | 35 | .eel-video-popup-iframe-wrapper { |
| 38 | 36 | position: relative; |
| 39 | - height: 700px; | |
| 37 | + padding-bottom: 56.25%; | |
| 38 | + height: 0; | |
| 40 | 39 | overflow: hidden; |
| 41 | 40 | } |
| 42 | 41 | |
| 43 | 42 | .eel-video-popup-iframe-wrapper iframe, |
| @@ -50,20 +49,13 @@ | ||
| 50 | 49 | } |
| 51 | 50 | |
| 52 | 51 | .eel-video-popup-close { |
| 53 | 52 | position: absolute; |
| 54 | - top: -15px; | |
| 55 | - right: -18px; | |
| 53 | + top: -30px; | |
| 54 | + right: 0; | |
| 56 | 55 | font-size: 30px; |
| 57 | 56 | color: #fff; |
| 58 | 57 | cursor: pointer; |
| 59 | - z-index: 1; | |
| 60 | - background: red; | |
| 61 | - border-radius: 50%; | |
| 62 | - width: 36px; | |
| 63 | - height: 36px; | |
| 64 | - display: grid; | |
| 65 | - place-content: center; | |
| 66 | 58 | } |
| 67 | 59 | |
| 68 | 60 | .eel-video-popup-btn { |
| 69 | 61 | border: none; |
| @@ -72,9 +64,8 @@ | ||
| 72 | 64 | padding: 0; |
| 73 | 65 | display: flex; |
| 74 | 66 | align-items: center; |
| 75 | 67 | gap: 8px; |
| 76 | - cursor: pointer; | |
| 77 | 68 | } |
| 78 | 69 | .eel-video-popup-btn svg, |
| 79 | 70 | .eel-video-popup-btn i { |
| 80 | 71 | height: 1em; |
| @@ -83,8 +74,14 @@ | ||
| 83 | 74 | .eel-video-popup-btn .eel-icon-wrap { |
| 84 | 75 | display: grid; |
| 85 | 76 | } |
| 86 | 77 | |
| 78 | +.eel-video-popup-wrapper iframe, | |
| 79 | +.eel-video-popup-wrapper video { | |
| 80 | + -o-object-fit: cover; | |
| 81 | + object-fit: cover; | |
| 82 | +} | |
| 83 | + | |
| 87 | 84 | .eel-vicon-hide-show .eel-video-popup-btn { |
| 88 | 85 | opacity: 0; |
| 89 | 86 | visibility: hidden; |
| 90 | 87 | transition: all ease-in-out 0.4s; |
| @@ -134,50 +131,5 @@ | ||
| 134 | 131 | |
| 135 | 132 | .eel-icon-wrap:hover .eel-overlay-play { |
| 136 | 133 | opacity: 1; |
| 137 | 134 | top: 0; |
| 138 | -} | |
| 139 | - | |
| 140 | -/* Video Wrapper */ | |
| 141 | -.eel-video-popup-wrapper { | |
| 142 | - position: relative; | |
| 143 | -} | |
| 144 | - | |
| 145 | -/* Overlay Image */ | |
| 146 | -.eel-video-overlay { | |
| 147 | - position: absolute; | |
| 148 | - width: 100%; | |
| 149 | - height: 100%; | |
| 150 | - background-position: center; | |
| 151 | - background-repeat: no-repeat; | |
| 152 | - cursor: pointer; | |
| 153 | - display: grid; | |
| 154 | - place-content: center; | |
| 155 | - z-index: 99; | |
| 156 | -} | |
| 157 | - | |
| 158 | -/* Overlay Icon */ | |
| 159 | -.eel-overlay-play-icon { | |
| 160 | - font-size: 25px; /* icon size */ | |
| 161 | - color: #fff; /* icon color */ | |
| 162 | - border: 4px solid #fff; | |
| 163 | - border-radius: 50%; | |
| 164 | - width: 90px; | |
| 165 | - height: 90px; | |
| 166 | - display: grid; | |
| 167 | - place-content: center; | |
| 168 | -} | |
| 169 | - | |
| 170 | -/* Hide overlay when video is playing */ | |
| 171 | -.eel-video-popup-wrapper video.playing + .eel-overlay-play-icon { | |
| 172 | - display: none; | |
| 173 | -} | |
| 174 | - | |
| 175 | -@media only screen and (max-width: 768px) { | |
| 176 | - .eel-video-popup-close { | |
| 177 | - top: 30px; | |
| 178 | - right: 10px; | |
| 179 | - } | |
| 180 | - .eel-video-popup-content { | |
| 181 | - margin: 0 10px; | |
| 182 | - } | |
| 183 | -} | |
| 135 | +}/*# sourceMappingURL=video.css.map */ | |