From ee51332b0d70db166af394fc9a7a2442a4dec8aa Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 11 Sep 2017 15:26:18 +0800 Subject: Fix responsive video #280 --- src/_media.scss | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/_media.scss b/src/_media.scss index 9b6aa1d..4029e4c 100644 --- a/src/_media.scss +++ b/src/_media.scss @@ -1,4 +1,5 @@ // Media +// Image responsive .img-responsive { display: block; height: auto; @@ -40,11 +41,14 @@ top: 0; width: 100%; } +} - video { - height: auto; - max-width: 100%; - width: 100%; +video.video-responsive { + height: auto; + max-width: 100%; + + &::before { + content: none; } } @@ -60,6 +64,7 @@ } } +// Figure .figure { margin: 0 0 $layout-spacing 0; -- cgit v1.3.1-23-gd82d