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

git-svn-id: http://core.svn.wordpress.org/trunk@23652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-03-08 17:01:33 +00:00
parent 9c1c3f2bc5
commit 39223fde2a
1 changed files with 17 additions and 1 deletions

View File

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