Opened 15 months ago
Closed 14 months ago
#20083 closed defect (bug) (maybelater)
Twenty Twelve Gallery CSS
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | 2nd-opinion |
| 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)
Note: See
TracTickets for help on using
tickets.
