Don't force iframe height to auto

Prevents truncating of YouTube embeds without needing a wrapper div.

(master version of 82f8951c96).

This also sets max-width: 100%; on video instead of width: 100% !important;.
This commit is contained in:
Nate Weaver 2020-07-02 04:43:22 -05:00
parent dc57981376
commit 014724e6a7
1 changed files with 6 additions and 7 deletions

View File

@ -171,23 +171,22 @@ code, pre {
padding: 0;
}
img, figure, iframe, div {
img, figure, video, div {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}
iframe {
max-width: 100%;
margin: 0 auto;
}
figure {
margin-bottom: 1em;
margin-top: 1em;
}
video {
width: 100% !important;
height: auto !important;
margin: 0 auto;
}
figcaption {
font-size: 14px;
line-height: 1.3em;