Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commitee51332b0d70db166af394fc9a7a2442a4dec8aa (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-09-11 15:26:18 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-09-11 15:26:18 +0800
Files8360abe5a0a7900abce4bc29c50eab0a8a909efb /src
Spectre-Dark-Gruvbox-ee51332b0d70db166af394fc9a7a2442a4dec8aa.tar
Spectre-Dark-Gruvbox-ee51332b0d70db166af394fc9a7a2442a4dec8aa.tar.gz
Spectre-Dark-Gruvbox-ee51332b0d70db166af394fc9a7a2442a4dec8aa.zip
Parentd8064d06254576af99228df650d13d05f771f09e (diff)
Fix responsive video #280
1 files changed, 9 insertions, 4 deletions
-rw-r--r--src/_media.scss13
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;