From 090cdbba48486edb484312f7a3a27b1e71657288 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 19 Mar 2013 22:35:38 +0000 Subject: [PATCH] Twenty Thirteen: provide max-width override for gallery thumbnails to collapse to two columns in small screens. Props kwight, fixes #23762. git-svn-id: https://develop.svn.wordpress.org/trunk@23759 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentythirteen/style.css | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index 8cd0672f07..0495d9fc90 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -3072,14 +3072,6 @@ footer.entry-meta { .format-audio .entry-content:before { display: none; } - - .single .gallery-columns-3 br { - display: none; - } - - .single .gallery-columns-3 .gallery-item:nth-of-type(3n) { - margin-right: 4px; - } } /* Mobile devices */ @@ -3095,6 +3087,7 @@ footer.entry-meta { .search .format-gallery .gallery-item { margin-bottom: 2%; margin-right: 2%; + max-width: none; width: 49%; } @@ -3115,12 +3108,7 @@ footer.entry-meta { width: 100%; } - .gallery-columns-3 .gallery-item, - .single .gallery-columns-3.gallery-size-thumbnail .gallery-item { - width: 32%; - } - - .single .gallery.gallery-columns-3 .gallery-item:nth-of-type(even), + .gallery-columns-3 .gallery-item:nth-of-type(3n), .gallery-columns-5 .gallery-item:nth-of-type(5n), .gallery-columns-7 .gallery-item:nth-of-type(7n), .gallery-columns-9 .gallery-item:nth-of-type(9n) { @@ -3134,8 +3122,7 @@ footer.entry-meta { .blog .format-gallery .gallery-item:nth-of-type(odd), .archive .format-gallery .gallery-item:nth-of-type(odd), .search .format-gallery .gallery-item:nth-of-type(odd), - .single .gallery .gallery-item:nth-of-type(even), - .single .gallery.gallery-columns-3 .gallery-item:nth-of-type(3n) { + .single .gallery .gallery-item:nth-of-type(even) { margin-right: 0; }