Twenty Twelve: better gallery columns support, and CSS cleanup. Closes #21475, props philiparthurmoore and pdclark.

git-svn-id: http://core.svn.wordpress.org/trunk@21478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
lancewillett 2012-08-08 16:38:21 +00:00
parent e220162063
commit ab2b32c6a9
1 changed files with 13 additions and 10 deletions

View File

@ -345,18 +345,21 @@ img.wp-smiley,
.entry-content dl.gallery-item {
margin: 0;
}
.gallery-columns-4 .gallery-item img
.gallery-columns-5 .gallery-item img {
width: 100%;
.gallery-item a {
display: block;
width: 90%;
}
.gallery-columns-1 .gallery-item a {
max-width: 100%;
width: auto;
}
.gallery .gallery-icon img {
height: auto;
max-width: 90%;
padding: 5%;
}
.site-content .gallery-columns-4 .gallery-item {
width: 23%;
padding-right: 2%;
}
.site-content .gallery-columns-5 .gallery-item {
width: 18%;
padding-right: 2%;
.gallery-columns-1 .gallery-icon img {
padding: 3%;
}
/* Navigation */