Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#20083 closed defect (bug) (maybelater)

Twenty Twelve Gallery CSS

Reported by: cais's profile cais Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: 2nd-opinion
Focuses: Cc:

Description

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; }

Change History (2)

#1 @SergeyBiryukov
14 years ago

  • Component changed from Themes to Bundled Theme

#2 @nacin
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.