feat(): add support for responsive iframes

This commit is contained in:
kendo5731
2016-02-01 22:44:21 +01:00
parent 384accc987
commit 721c05de4d
5 changed files with 862 additions and 43 deletions

View File

@@ -13,6 +13,7 @@ body {
font-family: 'Source Code Pro';
background-color: $bg-color;
color: $text-color;
overflow-x: hidden;
&>.container-fluid {
@extend .no-padding-left-and-right;
}
@@ -107,3 +108,18 @@ a {
}
}
}
.video-wrapper {
position: relative;
padding-bottom: 56.25%;
padding-top: 10px;
height: 0;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}