Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit9ab261e4f7ae1d0c69c0b479745096f51df3d687 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 15:21:59 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 15:21:59 +0800
Files65074343e57c64db93530dd4584c0222f5321603 /src
Spectre-Dark-Gruvbox-9ab261e4f7ae1d0c69c0b479745096f51df3d687.tar
Spectre-Dark-Gruvbox-9ab261e4f7ae1d0c69c0b479745096f51df3d687.tar.gz
Spectre-Dark-Gruvbox-9ab261e4f7ae1d0c69c0b479745096f51df3d687.zip
Parent07e430545059b213fac058e1aafe147edf2268f5 (diff)
add 4:3 video ratio
1 files changed, 5 insertions, 1 deletions
-rw-r--r--src/media.less6
diff --git a/src/media.less b/src/media.less
index f27c068..c845aa2 100644
--- a/src/media.less
+++ b/src/media.less
@@ -7,10 +7,14 @@
.video-responsive {
height: 0;
overflow: hidden;
- padding-bottom: 56.25%; /* 16:9 */
+ padding-bottom: 56.25%; /* Default 16:9, you can calculate this value by dividing 9 by 16 */
padding-top: 3rem;
position: relative;
+ &.video-responsive-4-3 {
+ padding-bottom: 75%; /* 4:3 */
+ }
+
iframe,
object,
embed {