Browse Source

7.x solr thumbnail (#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
pull/669/head
Morgan Dawe 8 years ago committed by dannylamb
parent
commit
34527674a0
  1. 11
      css/islandora.objects.css

11
css/islandora.objects.css

@ -10,6 +10,17 @@ div.islandora-objects > div {
display: inline-block; 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 { .islandora-objects-list-item {
clear: both; clear: both;
width: 100%; width: 100%;

Loading…
Cancel
Save