Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#20083 closed defect (bug) (maybelater)

Twenty Twelve Gallery CSS

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

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
15 years ago

  • Component Themes → Bundled Theme

#2 @nacin
15 years ago

  • Milestone Awaiting Review
  • Resolution → maybelater
  • Status new → closed
Note: See TracTickets for help on using tickets.