| @@ -26,16 +26,17 @@ | ||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | .eel-video-popup-content { |
| 29 | 29 | position: relative; |
| 30 | - width: 100%; | |
| 31 | - max-width: 1100px; | |
| 30 | + width: 90%; | |
| 31 | + max-width: 800px; | |
| 32 | 32 | background: #000; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | .eel-video-popup-iframe-wrapper { |
| 36 | 36 | position: relative; |
| 37 | - height: 700px; | |
| 37 | + padding-bottom: 56.25%; | |
| 38 | + height: 0; | |
| 38 | 39 | overflow: hidden; |
| 39 | 40 | } |
| 40 | 41 | |
| 41 | 42 | .eel-video-popup-iframe-wrapper iframe, |
| @@ -48,9 +49,9 @@ | ||
| 48 | 49 | } |
| 49 | 50 | |
| 50 | 51 | .eel-video-popup-close { |
| 51 | 52 | position: absolute; |
| 52 | - top: -45px; | |
| 53 | + top: -30px; | |
| 53 | 54 | right: 0; |
| 54 | 55 | font-size: 30px; |
| 55 | 56 | color: #fff; |
| 56 | 57 | cursor: pointer; |
| @@ -73,8 +74,14 @@ | ||
| 73 | 74 | .eel-video-popup-btn .eel-icon-wrap { |
| 74 | 75 | display: grid; |
| 75 | 76 | } |
| 76 | 77 | |
| 78 | +.eel-video-popup-wrapper iframe, | |
| 79 | +.eel-video-popup-wrapper video { | |
| 80 | + -o-object-fit: cover; | |
| 81 | + object-fit: cover; | |
| 82 | +} | |
| 83 | + | |
| 77 | 84 | .eel-vicon-hide-show .eel-video-popup-btn { |
| 78 | 85 | opacity: 0; |
| 79 | 86 | visibility: hidden; |
| 80 | 87 | transition: all ease-in-out 0.4s; |
| @@ -124,40 +131,5 @@ | ||
| 124 | 131 | |
| 125 | 132 | .eel-icon-wrap:hover .eel-overlay-play { |
| 126 | 133 | opacity: 1; |
| 127 | 134 | top: 0; |
| 128 | -} | |
| 129 | - | |
| 130 | -/* Video Wrapper */ | |
| 131 | -.eel-video-popup-wrapper { | |
| 132 | - position: relative; | |
| 133 | -} | |
| 134 | - | |
| 135 | -/* Overlay Image */ | |
| 136 | -.eel-video-overlay { | |
| 137 | - position: absolute; | |
| 138 | - width: 100%; | |
| 139 | - height: 100%; | |
| 140 | - background-position: center; | |
| 141 | - background-repeat: no-repeat; | |
| 142 | - cursor: pointer; | |
| 143 | - display: grid; | |
| 144 | - place-content: center; | |
| 145 | - z-index: 99; | |
| 146 | -} | |
| 147 | - | |
| 148 | -/* Overlay Icon */ | |
| 149 | -.eel-overlay-play-icon { | |
| 150 | - font-size: 25px; /* icon size */ | |
| 151 | - color: #fff; /* icon color */ | |
| 152 | - border: 4px solid #fff; | |
| 153 | - border-radius: 50%; | |
| 154 | - width: 90px; | |
| 155 | - height: 90px; | |
| 156 | - display: grid; | |
| 157 | - place-content: center; | |
| 158 | -} | |
| 159 | - | |
| 160 | -/* Hide overlay when video is playing */ | |
| 161 | -.eel-video-popup-wrapper video.playing + .eel-overlay-play-icon { | |
| 162 | - display: none; | |
| 163 | -} | |
| 135 | +}/*# sourceMappingURL=video.css.map */ | |