Twenty Seventeen: Fix double bottom-margins below embeds

Corrects an issue where both the containing paragraph and embed had bottom margins, causing unwanted extra space.

Props westonruter.

Fixes #42118.


git-svn-id: https://develop.svn.wordpress.org/trunk@41888 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
David A. Kennedy 2017-10-17 22:49:17 +00:00
parent ce7a93c235
commit 3e3ec01c63

View File

@ -2820,6 +2820,14 @@ object {
max-width: 100%;
}
/* Remove bottom on embeds that wrapped in paragraphs via wpautop. */
p > embed:only-child,
p > iframe:only-child,
p > object:only-child {
margin-bottom: 0;
}
.wp-caption,
.gallery-caption {
color: #666;