WordPress.org

Make WordPress Core

Changeset 21478


Ignore:
Timestamp:
08/08/12 16:38:21 (3 years ago)
Author:
lancewillett
Message:

Twenty Twelve: better gallery columns support, and CSS cleanup. Closes #21475, props philiparthurmoore and pdclark.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/style.css

    r21477 r21478  
    346346    margin: 0; 
    347347} 
    348 .gallery-columns-4 .gallery-item img 
    349 .gallery-columns-5 .gallery-item img { 
    350     width: 100%; 
     348.gallery-item a { 
     349    display: block; 
     350    width: 90%; 
     351} 
     352.gallery-columns-1 .gallery-item a { 
     353    max-width: 100%; 
     354    width: auto; 
     355} 
     356.gallery .gallery-icon img { 
    351357    height: auto; 
    352 } 
    353 .site-content .gallery-columns-4 .gallery-item { 
    354     width: 23%; 
    355     padding-right: 2%; 
    356 } 
    357 .site-content .gallery-columns-5 .gallery-item { 
    358     width: 18%; 
    359     padding-right: 2%; 
     358    max-width: 90%; 
     359    padding: 5%; 
     360} 
     361.gallery-columns-1 .gallery-icon img { 
     362    padding: 3%; 
    360363} 
    361364 
Note: See TracChangeset for help on using the changeset viewer.