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:
parent
ad8220249d
commit
58417a3cd5
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user