From 7fd6f21b3d449adafd01624e57b49a4862ceba62 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Wed, 25 Oct 2017 02:17:47 +0000 Subject: [PATCH] Bundled Themes: Make sure new gallery widgets look good in themes Twenty Ten: Reduces image size and removes image borders for galleries in widget areas. Twenty Eleven: Reduces image size and removes image borders for galleries in widget areas. Twenty Twelve: Reduces image size for some gallery sizes in widget areas. Twenty Thirteen: Ensure proper clearing for images, hide captions for some gallery column combos and ensure good display for galleries in widget areas. Twenty Fourteen: Ensure proper clearing for images and hide captions for some gallery column combos for galleries in widget areas. Twenty Seventeen: Hide captions for some gallery column combos for galleries in widget areas. Props joyously, williampatton, davidakennedy, melchoyce, crunnells. Fixes #41969. Built from https://develop.svn.wordpress.org/trunk@42019 git-svn-id: http://core.svn.wordpress.org/trunk@41853 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/style.css b/style.css index 4e559ac27..e7eb66a4e 100644 --- a/style.css +++ b/style.css @@ -1465,6 +1465,18 @@ a.comment-edit-link:hover { margin: 0; } +.widget-area .gallery-columns-2.gallery-size-full .gallery-icon img, +.widget-area .gallery-columns-3.gallery-size-full .gallery-icon img, +.widget-area .gallery-columns-4.gallery-size-full .gallery-icon img, +.widget-area .gallery-columns-5.gallery-size-full .gallery-icon img, +.widget-area .gallery-columns-6 .gallery-icon img, +.widget-area .gallery-columns-7 .gallery-icon img, +.widget-area .gallery-columns-8 .gallery-icon img, +.widget-area .gallery-columns-9 .gallery-icon img { + height: auto; + max-width: 80%; +} + /* =Plugins ----------------------------------------------- */