Twenty Thirteen: show portrait images correctly in gallery post formats. Props obenland, fixes #23649.

git-svn-id: https://develop.svn.wordpress.org/trunk@23652 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett
2013-03-08 17:01:33 +00:00
parent 36d826c002
commit f3a271cde8

View File

@@ -1523,10 +1523,19 @@ footer.entry-meta {
.search .format-gallery .gallery-item img {
height: 100%;
max-height: 148px;
max-width: 1000%;
max-width: none;
width: auto;
}
.blog .format-gallery .gallery-item .portrait img,
.archive .format-gallery .gallery-item .portrait img,
.search .format-gallery .gallery-item .portrait img {
height: auto;
max-height: none;
max-width: 148px;
width: 100%;
}
.blog .format-gallery .gallery-item:first-child,
.archive .format-gallery .gallery-item:first-child,
.search .format-gallery .gallery-item:first-child {
@@ -1540,6 +1549,13 @@ footer.entry-meta {
max-height: 300px;
}
.blog .format-gallery .gallery-item:first-child .portrait img,
.archive .format-gallery .gallery-item:first-child .portrait img,
.search .format-gallery .gallery-item:first-child .portrait img {
max-height: none;
max-width: 300px;
}
.blog .format-gallery .gallery-item .gallery-icon,
.archive .format-gallery .gallery-item .gallery-icon,
.search .format-gallery .gallery-item .gallery-icon {