Skip to content

Commit b186659

Browse files
updating embed youtube for a single HTML file
1 parent 7052651 commit b186659

File tree

3 files changed

+27
-29
lines changed

3 files changed

+27
-29
lines changed

_includes/Youtube/styles.css

-18
This file was deleted.

_includes/Youtube/youtube.html

-11
This file was deleted.

_includes/youtube.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<div class="embed-container">
2+
<iframe
3+
width="640"
4+
height="390"
5+
src="https://www.youtube.com/embed/{{ include.id }}"
6+
frameborder="0"
7+
allowfullscreen
8+
></iframe>
9+
</div>
10+
<style>
11+
.embed-container {
12+
position: relative;
13+
padding-bottom: 56.25%;
14+
height: 0;
15+
overflow: hidden;
16+
max-width: 100%;
17+
}
18+
.embed-container iframe,
19+
.embed-container object,
20+
.embed-container embed {
21+
position: absolute;
22+
top: 0;
23+
left: 0;
24+
width: 100%;
25+
height: 100%;
26+
}
27+
</style>

0 commit comments

Comments
 (0)