Make WordPress Core

Ticket #56412: 56412.diff

File 56412.diff, 1.2 KB (added by sabernhardt, 15 months ago)

reset CSS margin and max-width for images and captions in a gallery

  • src/wp-content/themes/twentysixteen/css/blocks.css

     
    5858                margin-left: 0;
    5959                margin-right: -40%;
    6060        }
     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%;
     66        }
    6167}
    6268
    6369/* Gallery */
  • src/wp-content/themes/twentysixteen/style.css

     
    36143614                max-width: 140%;
    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,
    36193620        body:not(.search-results) article:not(.type-page) table img.below-entry-meta {