feat: add self-hosted video
| | |
| | | max-height: 30vh; |
| | | } |
| | | } |
| | | |
| | | //------------------------------------------------------------------------------- |
| | | // Videos - shout out to my bud https://twitter.com/manuelmoreale for the Ninja skills |
| | | //------------------------------------------------------------------------------- |
| | | |
| | | // YouTube |
| | | |
| | | .split-video { |
| | | overflow:hidden; |
| | | position:relative; |
| | | line-height:0; |
| | | } |
| | | |
| | | .video-wrap{ |
| | | position:absolute; |
| | | top:50%; |
| | | left:50%; |
| | | transform:translate(-50%,-50%); |
| | | } |
| | | |
| | | .video-container { |
| | | position:relative; |
| | | overflow:hidden; |
| | | height: 56.25vw; |
| | | width: 100vw; |
| | | @media (max-aspect-ratio:16/9) { |
| | | height: 100vh; |
| | | width: 177.7777777778vh; // this is for the ration 16:9 |
| | | } |
| | | } |
| | | |
| | | .video-container iframe, |
| | | .video-container object, |
| | | .video-container embed { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | // Self-Hosted |
| | | |
| | | video.video { |
| | | object-fit : cover; |
| | | object-position : 50% 50%; |
| | | width : 100%; |
| | | height : 100%; |
| | | } |
| | | |
| | | @media (min-width: $bp-smallish) { |
| | | video.video { |
| | | height: 100vh; |
| | | } |
| | | } |
| | |
| | | <div class="split-image split-video"> |
| | | <div class="image split-video"> |
| | | |
| | | <!-- YouTube Video --> |
| | | {{ if .Site.Params.visual.video.youtubeId }} |