mirror of
https://github.com/86Box/86box.github.io.git
synced 2026-02-22 01:25:35 -07:00
Add YouTube embed include for a future blog post
This commit is contained in:
6
_includes/youtube.html
Normal file
6
_includes/youtube.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="image">
|
||||
<iframe class="youtube" src="https://www.youtube-nocookie.com/embed/{{ include.video }}"><a href="https://www.youtube.com/watch?v={{ include.video }}">YouTube video</a></iframe>
|
||||
{% if include.description %}
|
||||
<div class="imagecaption">{{ include.description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -36,7 +36,7 @@ a, a:visited {
|
||||
}
|
||||
|
||||
/* Blog */
|
||||
figure.image {
|
||||
.image {
|
||||
text-align: center;
|
||||
}
|
||||
img.heading {
|
||||
@@ -72,6 +72,20 @@ code {
|
||||
padding-right: 3pt;
|
||||
-webkit-print-color-adjust: exact;
|
||||
}
|
||||
iframe {
|
||||
display: block;
|
||||
border: none;
|
||||
}
|
||||
iframe.youtube {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
width: 640px;
|
||||
height: 64px;
|
||||
padding-bottom: 8pt;
|
||||
}
|
||||
button.ytp-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Advanced features here, to avoid upsetting retro browsers. */
|
||||
tr:nth-child(odd) {
|
||||
|
||||
@@ -117,3 +117,10 @@ code {
|
||||
border-radius: 3pt; /* N/A on IE6 */
|
||||
padding: 0pt 3pt;
|
||||
}
|
||||
iframe {
|
||||
display: block;
|
||||
border: none;
|
||||
}
|
||||
iframe.youtube {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ div#socialold {
|
||||
}
|
||||
|
||||
/* Blog */
|
||||
figure.image {
|
||||
.image {
|
||||
text-align: center;
|
||||
}
|
||||
img.heading {
|
||||
@@ -212,3 +212,14 @@ code {
|
||||
padding-left: 3pt;
|
||||
padding-right: 3pt;
|
||||
}
|
||||
iframe {
|
||||
display: block;
|
||||
border: none;
|
||||
}
|
||||
iframe.youtube {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
width: 640px;
|
||||
height: 360px;
|
||||
padding-bottom: 8pt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user