Don't force iframe height to auto
Prevents truncating of YouTube embeds without needing a wrapper div. (master version of 82f8951c9647b245a956cc1f7a20a1742f60de31). This also sets max-width: 100%; on video instead of width: 100% !important;.
This commit is contained in:
parent
dc57981376
commit
014724e6a7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user