From f3f78136d631892b9247bb345aa70a4d8812507c Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 18 Apr 2016 22:59:52 +0800 Subject: cleanup code & sort CSS properties alphabetically --- src/media.less | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/media.less') diff --git a/src/media.less b/src/media.less index a3e055e..f27c068 100644 --- a/src/media.less +++ b/src/media.less @@ -1,28 +1,28 @@ // Media .img-responsive { display: block; - max-width: 100%; height: auto; + max-width: 100%; } .video-responsive { - position: relative; height: 0; - padding-top: 3rem; - padding-bottom: 56.25%; /* 16:9 */ overflow: hidden; + padding-bottom: 56.25%; /* 16:9 */ + padding-top: 3rem; + position: relative; iframe, object, embed { + height: 100%; + left: 0; position: absolute; top: 0; - left: 0; width: 100%; - height: 100%; } video { - width: 100%; - max-width: 100%; height: auto; + max-width: 100%; + width: 100%; } -} \ No newline at end of file +} -- cgit v1.3.1-26-gb76a