fix index theme's yt embed

Signed-off-by: natto1784 <natto@weirdnatto.in>
This commit is contained in:
2022-11-18 10:23:53 +05:30
parent a8d10f8bfc
commit a0791f8aec
2 changed files with 14 additions and 6 deletions

View File

@@ -58,11 +58,17 @@
max-width: 300px; max-width: 300px;
} }
.videoofnow { .videoofnow {
display: block; max-width: 100%;
margin-left: auto; position: relative;
margin-right: auto; height: 0;
max-width: 500px; padding-bottom: 56.25%
max-height: 300px; }
.videoofnow iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
} }
.quoteofnow { .quoteofnow {
text-align: center; text-align: center;

View File

@@ -42,7 +42,9 @@
<br> <br>
<div class="quoteofnow">{{ settings.quoteofnow }}</div> <div class="quoteofnow">{{ settings.quoteofnow }}</div>
<br> <br>
<iframe class ="videoofnow" width="560" height="315" src="{{ settings.videoofnow }}"></iframe> <div class="videoofnow">
<iframe src="{{ settings.videoofnow }}" />
</div>
<br> <br>
</div> </div>
<div class="ban"> <div class="ban">