WordPress.org

Make WordPress Core

Changeset 23759


Ignore:
Timestamp:
03/19/2013 10:35:38 PM (7 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: provide max-width override for gallery thumbnails to collapse to two columns in small screens. Props kwight, fixes #23762.

File:
1 edited

Legend:

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

    r23756 r23759  
    30733073        display: none;
    30743074    }
    3075 
    3076     .single .gallery-columns-3 br {
    3077         display: none;
    3078     }
    3079 
    3080     .single .gallery-columns-3 .gallery-item:nth-of-type(3n) {
    3081         margin-right: 4px;
    3082     }
    30833075}
    30843076
     
    30963088        margin-bottom: 2%;
    30973089        margin-right: 2%;
     3090        max-width: none;
    30983091        width: 49%;
    30993092    }
     
    31163109    }
    31173110
    3118     .gallery-columns-3 .gallery-item,
    3119     .single .gallery-columns-3.gallery-size-thumbnail .gallery-item {
    3120         width: 32%;
    3121     }
    3122 
    3123     .single .gallery.gallery-columns-3 .gallery-item:nth-of-type(even),
     3111    .gallery-columns-3 .gallery-item:nth-of-type(3n),
    31243112    .gallery-columns-5 .gallery-item:nth-of-type(5n),
    31253113    .gallery-columns-7 .gallery-item:nth-of-type(7n),
     
    31353123    .archive .format-gallery .gallery-item:nth-of-type(odd),
    31363124    .search .format-gallery .gallery-item:nth-of-type(odd),
    3137     .single .gallery .gallery-item:nth-of-type(even),
    3138     .single .gallery.gallery-columns-3 .gallery-item:nth-of-type(3n) {
     3125    .single .gallery .gallery-item:nth-of-type(even) {
    31393126        margin-right: 0;
    31403127    }
Note: See TracChangeset for help on using the changeset viewer.