From 89ac9f4928d38c2dd96094a1b36e224f165ba84b Mon Sep 17 00:00:00 2001 From: Shilo Date: Mon, 10 Jun 2019 08:55:23 +0300 Subject: [PATCH] Tweak: Added 9:16 Aspect ration for vertical videos support closes #7051 --- assets/dev/scss/global/_aspect_ratio.scss | 7 +++++++ includes/widgets/video.php | 1 + 2 files changed, 8 insertions(+) diff --git a/assets/dev/scss/global/_aspect_ratio.scss b/assets/dev/scss/global/_aspect_ratio.scss index 66829bdeefb3..25167a65bee2 100644 --- a/assets/dev/scss/global/_aspect_ratio.scss +++ b/assets/dev/scss/global/_aspect_ratio.scss @@ -34,6 +34,13 @@ padding-bottom: 100%; } } + + &916 { + + .elementor-fit-aspect-ratio { + padding-bottom: 177.8%; + } + } } .elementor-fit-aspect-ratio { diff --git a/includes/widgets/video.php b/includes/widgets/video.php index 3bf0d9ee88bd..794000ac8bb9 100644 --- a/includes/widgets/video.php +++ b/includes/widgets/video.php @@ -578,6 +578,7 @@ protected function _register_controls() { '43' => '4:3', '32' => '3:2', '11' => '1:1', + '916' => '9:16', ], 'default' => '169', 'prefix_class' => 'elementor-aspect-ratio-',