From 510b6b2d323afe0e0e4b0f858cf11ee14aa6233b Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Mon, 13 Apr 2015 11:14:29 -0300 Subject: [PATCH] Alter "islandora_objects" to match the collection display by default. --- css/islandora.objects.css | 49 ++++++++++++++++------------ theme/islandora-objects-grid.tpl.php | 2 +- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/css/islandora.objects.css b/css/islandora.objects.css index 5e03d3f7..ff34dca8 100644 --- a/css/islandora.objects.css +++ b/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; } diff --git a/theme/islandora-objects-grid.tpl.php b/theme/islandora-objects-grid.tpl.php index e6d7e140..10007a32 100644 --- a/theme/islandora-objects-grid.tpl.php +++ b/theme/islandora-objects-grid.tpl.php @@ -7,7 +7,7 @@ ?>
-
+