1
0
mirror of https://github.com/meineerde/holgerjust.de.git synced 2026-02-21 11:02:03 +00:00

Add facility to embed videos with dynamic scaling

This commit is contained in:
Holger Just 2016-11-20 16:07:47 +01:00
parent ad8220249d
commit 58417a3cd5

View File

@ -86,3 +86,18 @@ figcaption {
float: right;
text-align: right;
}
// From https://www.ostraining.com/blog/coding/responsive-videos/
.video-responsive {
overflow:hidden;
padding-bottom:56.25%;
position:relative;
height:0;
}
.video-responsive iframe {
left:0;
top:0;
height:100%;
width:100%;
position:absolute;
}