WordPress.org

Make WordPress Core

Changeset 41888


Ignore:
Timestamp:
10/17/2017 10:49:17 PM (3 years ago)
Author:
davidakennedy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/style.css

    r41842 r41888  
    28212821}
    28222822
     2823/* Remove bottom on embeds that wrapped in paragraphs via wpautop. */
     2824
     2825p > embed:only-child,
     2826p > iframe:only-child,
     2827p > object:only-child {
     2828    margin-bottom: 0;
     2829}
     2830
    28232831.wp-caption,
    28242832.gallery-caption {
Note: See TracChangeset for help on using the changeset viewer.