add youtube support
This commit is contained in:
parent
7f8942f638
commit
1813b8b1ca
@ -477,3 +477,21 @@ video.responsive-video {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.youtube-container {
|
||||||
|
position: relative;
|
||||||
|
padding-bottom: 56.25%;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.youtube-container iframe, .youtube-container object, .youtube-container embed {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
height: 77%;
|
||||||
|
width: 77%;
|
||||||
|
margin-left: 11.5%;
|
||||||
|
margin-right: 11.5%;
|
||||||
|
}
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
<section class="bordered-picture">
|
||||||
|
<div class="youtube-container">
|
||||||
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ video_id }}" frameborder="0" allowfullscreen></iframe>
|
||||||
|
</div>
|
||||||
|
</section>
|
Loading…
x
Reference in New Issue
Block a user