From adcbebd7b640e7c206ab4c8c60b1bc3afac49a6e Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Mon, 4 Sep 2017 12:25:31 +0200 Subject: [PATCH] Videos: Keep a 16:9 aspect ratio --- src/styles/_project.sass | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/styles/_project.sass b/src/styles/_project.sass index df08e174..82c6ec72 100644 --- a/src/styles/_project.sass +++ b/src/styles/_project.sass @@ -1039,8 +1039,18 @@ section.node-preview &.video background-color: black - min-height: 320px position: relative + padding-bottom: 56.25% + padding-top: 35px + height: 0 + overflow: hidden + + .video-js + position: absolute + top: 0 + left: 0 + width: 100% + height: 100% .video-dummy min-height: 320px