Browse Source

fixed css bug for thumbnail display

pull/111/head
krisbulman 13 years ago
parent
commit
1125498ff2
  1. 17
      islandora_basic_collection/css/islandora_basic_collection.theme.css
  2. 9
      islandora_basic_collection/islandora-basic-collection.tpl.php

17
islandora_basic_collection/css/islandora_basic_collection.theme.css

@ -5,21 +5,24 @@
Purpose of the stylesheet follows. Purpose of the stylesheet follows.
*/ */
/* islandora-basic-collection STYLES*/
.islandora-basic-collection { .islandora-basic-collection {
width: 100%; margin: 1.5em auto;
margin: 0 auto;
overflow: hidden; overflow: hidden;
width: 96%;
} }
dl.islandora-basic-collection-object dl.islandora-basic-collection-object
{ {
width: 20%; width: 20%;
min-width: 100px; min-width: 100px;
text-align: center; min-height: 180px;
float: left; display: -moz-inline-stack;
margin: 2% 2% 50px 2%; display: inline-block;
vertical-align: top;
margin: 1.5em 2%;
zoom: 1;
*display: inline;
_height: 180px;
} }
.islandora-basic-collection-object dt img { .islandora-basic-collection-object dt img {

9
islandora_basic_collection/islandora-basic-collection.tpl.php

@ -22,11 +22,14 @@
*/ */
?> ?>
<?php drupal_set_title($islandora_object->label); ?> <?php drupal_set_title($islandora_object->label); ?>
<div class="islandora-basic-collection-wrapper">
<div class="islandora-basic-collection clearfix"> <div class="islandora-basic-collection clearfix">
<?php foreach($associated_objects_array as $key => $value): ?> <?php foreach($associated_objects_array as $key => $value): ?>
<dl class="islandora-basic-collection-object"> <dl class="islandora-basic-collection-object <?php print $value['class']; ?>">
<dt class="<?php print $value['class']; ?>"><?php print $value['thumb_link']; ?></dt> <dt class="islandora-basic-collection-thumb"><?php print $value['thumb_link']; ?></dt>
<dd class="<?php print $value['class']; ?>"><?php print $value['title_link']; ?></dd> <dd class="islandora-basic-collection-caption"><?php print $value['title_link']; ?></dd>
</dl> </dl>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
</div>
Loading…
Cancel
Save