[wp-trac] [WordPress Trac] #20083: Twenty Twelve Gallery CSS

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 20 15:12:35 UTC 2012


#20083: Twenty Twelve Gallery CSS
--------------------------+-----------------------------
 Reporter:  cais          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:
 Severity:  normal        |   Keywords:  2nd-opinion
--------------------------+-----------------------------
 Just having a look over the theme and noticed it may need some tweaks to
 the CSS handling the default gallery shortcode ... this is commonly
 overlooked once you get past four (4) columns.

 Instead of submitting a formal patch file I will simply add some suggested
 values below:


 {{{

 /* Gallery columns up to four (4) are handled by default in the theme.
  * Five (5) or more columns requires a maximum width be set for the image
  * thumbnail; also note the height is set to 'auto' to maintain a square
 shape,
  * or 1:1 aspect ratio.
  **/
 .gallery-columns-5 img { height: auto; max-width: 119px; }
 .gallery-columns-6 img { height: auto; max-width: 95px; }
 .gallery-columns-7 img { height: auto; max-width: 82px; }
 .gallery-columns-8 img { height: auto; max-width: 70px; }
 .gallery-columns-9 img { height: auto; max-width: 63px; }
 .gallery-columns-10 img { height: auto; max-width: 57px; }

 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20083>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list