Skip to content

Commit

Permalink
Twenty Sixteen: Fix Gallery block images alignement.
Browse files Browse the repository at this point in the history
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.


git-svn-id: https://develop.svn.wordpress.org/trunk@55227 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Feb 6, 2023
1 parent 3524ab9 commit 1a028cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wp-content/themes/twentysixteen/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ p.has-drop-cap:not(:focus)::first-letter {
margin-left: 0;
margin-right: -40%;
}

body:not(.search-results) article:not(.type-page) .wp-block-gallery .wp-block-image img.below-entry-meta,
body:not(.search-results) article:not(.type-page) .wp-block-gallery .wp-block-image figcaption.below-entry-meta {
margin: 0;
max-width: 100%;
}
}

/* Gallery */
Expand Down
1 change: 1 addition & 0 deletions src/wp-content/themes/twentysixteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3614,6 +3614,7 @@ p > video {
max-width: 140%;
}

body:not(.search-results) article:not(.type-page) .gallery-item img.below-entry-meta,
body:not(.search-results) article:not(.type-page) figure.below-entry-meta img.below-entry-meta,
body:not(.search-results) article:not(.type-page) table figure.below-entry-meta,
body:not(.search-results) article:not(.type-page) table img.below-entry-meta {
Expand Down

0 comments on commit 1a028cc

Please sign in to comment.