Summary Files Commits Branches @commit @diff @stats
path: root / src / media.less
diff options
context:
space:
mode:
Commit18d385b636db17c409fa0e36da15053e4f8354bf (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 09:18:11 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 09:18:11 +0800
Files0837aab5deec0e9a915af6fc283c4d751fc75ab3 /src/media.less
Spectre-Dark-Gruvbox-18d385b636db17c409fa0e36da15053e4f8354bf.tar
Spectre-Dark-Gruvbox-18d385b636db17c409fa0e36da15053e4f8354bf.tar.gz
Spectre-Dark-Gruvbox-18d385b636db17c409fa0e36da15053e4f8354bf.zip
Parent8fd6c598d692e690fee006a9ea2b57f3dcebc2e7 (diff)
Parentf3f78136d631892b9247bb345aa70a4d8812507c (diff)
Merge pull request #18 from picturepan2/master
merge master to gh-pages
1 files changed, 9 insertions, 9 deletions
-rw-r--r--src/media.less18
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
+}