Make WordPress Core

Changeset 18134


Ignore:
Timestamp:
06/03/2011 09:38:47 PM (14 years ago)
Author:
iandstewart
Message:

Twenty Eleven: style 4-column galleries -- Props mfields -- and remove unneeded !important rules; Fixes #17564

File:
1 edited

Legend:

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

    r18132 r18134  
    884884    top: 7px;
    885885}
    886 .gallery {
    887     margin: 0 auto 1.625em !important;
     886#content .gallery {
     887    margin: 0 auto 1.625em;
    888888}
    889889#content .gallery a img {
     
    893893    display: block;
    894894    margin: 0 auto 1.625em;
     895}
     896#content .gallery-columns-4 .gallery-item {
     897    width:23%;
     898    padding-right:2%;
     899}
     900#content .gallery-columns-4 .gallery-item img {
     901    width:100%;
     902    height:auto;
    895903}
    896904
     
    22682276    }
    22692277    /* No need to float footer widgets at this size */
    2270     #supplementary .widget-area {
    2271         float: none !important;
    2272         margin-right: 0 !important;
    2273         width: auto !important;
     2278    #colophon #supplementary .widget-area {
     2279        float: none;
     2280        margin-right: 0;
     2281        width: auto;
    22742282    }
    22752283    /* No need to float 404 widgets at this size */
     
    23352343    #respond .comment-form-email .required {
    23362344        left: 95%;
     2345    }
     2346    #content .gallery-columns-3 .gallery-item {
     2347        width:31%;
     2348        padding-right:2%;
     2349    }
     2350    #content .gallery-columns-3 .gallery-item img {
     2351        width:100%;
     2352        height:auto;
     2353    }
     2354}
     2355@media (max-width: 450px) {
     2356    #content .gallery-columns-2 .gallery-item {
     2357        width:45%;
     2358        padding-right:4%;
     2359    }
     2360    #content .gallery-columns-2 .gallery-item img {
     2361        width:100%;
     2362        height:auto;
    23372363    }
    23382364}
Note: See TracChangeset for help on using the changeset viewer.