Make WordPress Core

Changeset 58823


Ignore:
Timestamp:
07/29/2024 09:30:34 AM (5 months ago)
Author:
karmatosed
Message:

Twenty Seventeen: Fixes floated images having an extra space when the first image.

The first image when floated in content had extra spacing. This was only for the first image in testing so the solution focuses on that.

Props kjellr, sabernhardt, hmbashar, shailu25.
Fixes #46785.

File:
1 edited

Legend:

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

    r58634 r58823  
    5454
    5555.wp-block-image figure.alignleft {
     56    margin-top: 0;
    5657    margin-right: 1.5em;
    5758}
    5859
    5960.wp-block-image figure.alignright {
     61    margin-top: 0;
    6062    margin-left: 1.5em;
    6163}
     
    6971    -webkit-box-shadow: none;
    7072    box-shadow: none;
     73}
     74
     75.entry-content > .wp-block-image:first-child figure.alignleft,
     76.entry-content > .wp-block-image:first-child figure.alignright {
     77    margin-top: 1.5em;
    7178}
    7279
Note: See TracChangeset for help on using the changeset viewer.