From 34527674a0706589a31d572ac7219e7d7bfcbae4 Mon Sep 17 00:00:00 2001 From: Morgan Dawe Date: Tue, 10 Jan 2017 15:12:35 -0400 Subject: [PATCH] 7.x solr thumbnail (#663) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * øAdded max width to islandora image. * Added basic styling for solr driven thumbnails. * Added a max-height limit to thumbnails. * Updating comments. * Update islandora.objects.css --- css/islandora.objects.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/css/islandora.objects.css b/css/islandora.objects.css index cbd58d56..b7ea66c8 100644 --- a/css/islandora.objects.css +++ b/css/islandora.objects.css @@ -10,6 +10,17 @@ div.islandora-objects > div { display: inline-block; } +/* img styling (max-width) - Setting a max width to ensure a thumbnails width + * does not exceed that of its parent container (ex: 20%). + * + * img styling (max-height) - Avoid making assumptions on max height here, allowing auto + * height based on max-width of 100%. Consider overriding this file in your theme, + * or adding your own CSS to address a maximum thumbnail height. + */ +.islandora-object img { + max-width: 100%; +} + .islandora-objects-list-item { clear: both; width: 100%;