Make WordPress Core

Changeset 55227


Ignore:
Timestamp:
02/06/2023 08:24:59 AM (13 months ago)
Author:
audrasjb
Message:

Twenty Sixteen: Fix Gallery block images alignement.

This changeset fixes an alignment issue that has been present since the gallery block markup was changed in WordPress 6.0.

Props silicium23, zoonini, sabernhardt, bgoewert, ira2910, tahminar27.
Fixes #56412.

Location:
trunk/src/wp-content/themes/twentysixteen
Files:
2 edited

Legend:

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

    r55114 r55227  
    5858        margin-left: 0;
    5959        margin-right: -40%;
     60    }
     61
     62    body:not(.search-results) article:not(.type-page) .wp-block-gallery .wp-block-image img.below-entry-meta,
     63    body:not(.search-results) article:not(.type-page) .wp-block-gallery .wp-block-image figcaption.below-entry-meta {
     64        margin: 0;
     65        max-width: 100%;
    6066    }
    6167}
  • trunk/src/wp-content/themes/twentysixteen/style.css

    r54492 r55227  
    36153615    }
    36163616
     3617    body:not(.search-results) article:not(.type-page) .gallery-item img.below-entry-meta,
    36173618    body:not(.search-results) article:not(.type-page) figure.below-entry-meta img.below-entry-meta,
    36183619    body:not(.search-results) article:not(.type-page) table figure.below-entry-meta,
Note: See TracChangeset for help on using the changeset viewer.