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:
parent
ce7a93c235
commit
3e3ec01c63
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user