Skip to content
Permalink
Browse files

7.x solr thumbnail (Islandora#663)

* ø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
  • Loading branch information...
MorganDawe authored and dannylamb committed Jan 10, 2017
1 parent 0bb0444 commit 34527674a0706589a31d572ac7219e7d7bfcbae4
Showing with 11 additions and 0 deletions.
  1. +11 −0 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%;

0 comments on commit 3452767

Please sign in to comment.
You can’t perform that action at this time.