Make WordPress Core

Ticket #52545: 52545.diff

File 52545.diff, 551 bytes (added by melchoyce, 4 years ago)

Add height:auto to image block, and remove the left/right margin being inherited by browser defaults so image bocks can be full-width.

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

     
    5050
    5151/* Image */
    5252
    53 .wp-block-image figure {
    54         margin-bottom: 24px;
     53.wp-block-image {
     54        margin-inline-start: 0;
     55        margin-inline-end: 0;
    5556}
    5657
    5758.wp-block-image figcaption {
     
    6566        margin: 0;
    6667}
    6768
     69.wp-block-image img {
     70        height: auto;
     71}
     72
    6873/* Gallery */
    6974
    7075.wp-block-gallery {