From 43ff94495001014a4423d2989a855a3a8444ed32 Mon Sep 17 00:00:00 2001 From: krisbulman Date: Fri, 1 Jun 2012 13:49:10 -0300 Subject: [PATCH 1/2] updated basic image display --- .../css/islandora_basic_image.theme.css | 33 +++++++++++-------- .../islandora-basic-image.tpl.php | 20 ++++++----- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/islandora_basic_image/css/islandora_basic_image.theme.css b/islandora_basic_image/css/islandora_basic_image.theme.css index 93a8db89..f62b37bf 100644 --- a/islandora_basic_image/css/islandora_basic_image.theme.css +++ b/islandora_basic_image/css/islandora_basic_image.theme.css @@ -1,14 +1,22 @@ /* Document : islandora_basic_collection.theme Created on : May 23, 2012, 11:23:56 AM - Description: - Purpose of the stylesheet follows. + Description: The basic image page is a simple flexible layout page + that breaks down to two columns when 2 sidebars are visible */ -.islandora-basic-image-content, -.islandora-basic-image-sidebar { - display: inline; - position: relative; +.islandora-basic-image-content { + background-color: #F2F2F2; + border: 1px solid #ddd; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + padding: 15px; +} + +.islandora-basic-image-content img { + margin: 0; + display: block; } .islandora-basic-image-metadata { @@ -42,9 +50,6 @@ dl.islandora-basic-image-fields { border-top:0; } -.islandora-basic-image-sidebar, -.islandora-basic-image-sidebar, -body.one-sidebar .islandora-basic-image-sidebar, body.two-sidebars .islandora-basic-image-sidebar { clear: both; width: 100%; @@ -53,15 +58,17 @@ body.two-sidebars .islandora-basic-image-sidebar { @media all and (min-width: 768px) { body.no-sidebars .islandora-basic-image-content { - width: 60%; - padding: 0 20px 0 0; + width: 65%; float: left; /* LTR */ - margin-top: 1em; + } + + body.no-sidebars .islandora-basic-image-sidebar { + padding-left: 20px; } body.no-sidebars .islandora-basic-image-sidebar { float: right; /* LTR */ - width: 40%; + width: 35%; clear: none; } diff --git a/islandora_basic_image/islandora-basic-image.tpl.php b/islandora_basic_image/islandora-basic-image.tpl.php index 1cce0bfa..561c8a63 100644 --- a/islandora_basic_image/islandora-basic-image.tpl.php +++ b/islandora_basic_image/islandora-basic-image.tpl.php @@ -26,22 +26,24 @@
-
- - TRUE)); ?> +
+ +
+ + TRUE)); ?> - + +
-
-

+

- +
-

In Collections

+

In Collections

    $value): ?>
  • @@ -50,7 +52,7 @@
- +