From 39223fde2acaa02cebce0a35c661464a33313c35 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 8 Mar 2013 17:01:33 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentythirteen/style.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index 1c3fd6197a..103a19e710 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -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 {