WordPress.org

Make WordPress Core

Ticket #22227: 22227.2.diff

File 22227.2.diff, 535 bytes (added by DrewAPicture, 2 years ago)

Caption same width as anchored image.

  • wp-content/themes/twentytwelve/style.css

     
    358358.entry-content dl.gallery-item { 
    359359        margin: 0; 
    360360} 
     361.gallery-item a, 
     362.gallery-caption { 
     363        width: 90%; 
     364} 
    361365.gallery-item a { 
    362366        display: block; 
    363         width: 90%; 
    364367} 
     368.gallery-caption a { 
     369        display: inline; 
     370} 
    365371.gallery-columns-1 .gallery-item a { 
    366372        max-width: 100%; 
    367373        width: auto;