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:
parent
cbab8df511
commit
de5b71edf8
23
style.css
23
style.css
|
@ -345,18 +345,21 @@ img.wp-smiley,
|
||||||
.entry-content dl.gallery-item {
|
.entry-content dl.gallery-item {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.gallery-columns-4 .gallery-item img
|
.gallery-item a {
|
||||||
.gallery-columns-5 .gallery-item img {
|
display: block;
|
||||||
width: 100%;
|
width: 90%;
|
||||||
|
}
|
||||||
|
.gallery-columns-1 .gallery-item a {
|
||||||
|
max-width: 100%;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
.gallery .gallery-icon img {
|
||||||
height: auto;
|
height: auto;
|
||||||
|
max-width: 90%;
|
||||||
|
padding: 5%;
|
||||||
}
|
}
|
||||||
.site-content .gallery-columns-4 .gallery-item {
|
.gallery-columns-1 .gallery-icon img {
|
||||||
width: 23%;
|
padding: 3%;
|
||||||
padding-right: 2%;
|
|
||||||
}
|
|
||||||
.site-content .gallery-columns-5 .gallery-item {
|
|
||||||
width: 18%;
|
|
||||||
padding-right: 2%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Navigation */
|
/* Navigation */
|
||||||
|
|
Loading…
Reference in New Issue