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.

Built from https://develop.svn.wordpress.org/trunk@41888


git-svn-id: http://core.svn.wordpress.org/trunk@41722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
David A. Kennedy 2017-10-17 22:50:51 +00:00
parent bd9d1d9178
commit b6539fb5a0
2 changed files with 9 additions and 1 deletions

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;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.9-beta2-41887';
$wp_version = '4.9-beta2-41888';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.