Browse Source

Alter "islandora_objects" to match the collection display by default.

pull/604/head
Adam Vessey 10 years ago
parent
commit
510b6b2d32
  1. 49
      css/islandora.objects.css
  2. 2
      theme/islandora-objects-grid.tpl.php

49
css/islandora.objects.css

@ -2,11 +2,26 @@
* @file
* Styles for rendering grids/lists of objects.
*/
.islandora-objects-display-switch {
float: right;
.islandora-objects-list-item {
clear: both;
width: 100%;
}
.islandora-objects-grid-item {
display: inline-block;
.islandora-objects-list-item dl dt {
clear: left;
float: left;
padding: 3px 0 0;
text-align: center;
width: 100px;
}
.islandora-objects-list-item dl dd {
margin: 0 0 0 130px;
}
/*Grid - Displays grid using dl formatted inline */
.islandora-objects-grid dl {
width: 20%;
min-width: 100px;
min-height: 180px;
@ -18,22 +33,16 @@
*display: inline;
_height: 180px;
}
.islandora-objects-list-item {
padding-bottom: 1.5em;
border-bottom: 1px solid #ddd;
}
.islandora-objects-list-item .islandora-object-thumb {
clear: left;
float: left;
padding: 3px 0 0;
text-align: center;
width: 100px;
.islandora-objects-grid-item {
display: inline;
}
.islandora-objects-list-item .islandora-object-caption, .islandora-objects-list-item .islandora-object-description {
margin: 0 0 0 130px;
padding-top: 2px;
padding-bottom: 2px;
.islandora-objects-grid dd {
margin: 0;
padding: 0;
}
.islandora-object-thumb img {
width: 100%;
.islandora-objects-display-switch {
float: right;
}

2
theme/islandora-objects-grid.tpl.php

@ -7,7 +7,7 @@
?>
<div class="islandora-objects-grid clearfix">
<?php foreach($objects as $object): ?>
<div class="islandora-objects-grid-item clearfix">
<div class="islandora-objects-grid-item">
<dl class="islandora-object <?php print $object['class']; ?>">
<dt class="islandora-object-thumb"><?php print $object['thumb']; ?></dt>
<dd class="islandora-object-caption"><?php print $object['link']; ?></dd>

Loading…
Cancel
Save