Image caption toolbox pages resizing.
authorLaury GvR <laury@gaslightmedia.com>
Thu, 21 Aug 2014 18:04:26 +0000 (14:04 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 21 Aug 2014 18:04:26 +0000 (14:04 -0400)
It was at 100% so would be significantly wider than the image.

Toolkit/Members/css/member.css
Toolkit/Template/Image/Left.php
Toolkit/Template/Image/Right.php

index cbab75b..ca7bf28 100755 (executable)
@@ -1364,9 +1364,6 @@ div.thumb {
         padding-bottom: 25px;
         padding-top: 20px;
     }
-    #toolbox figure {
-        text-align: center;
-    }
 }
 .category-search-map-sibling {
     float: none;
@@ -1382,9 +1379,11 @@ div.thumb {
     .search-result-item .memberSR {
         width: 100% !important;
     }
-    .search-result-item .memberSR img {
-/*        margin-left: auto !important;
-        margin-right: auto !important;
-        float: none !important;*/
-    }
-}
\ No newline at end of file
+}
+
+figcaption {
+    max-width: 100%;
+    width: 325px;
+}
+
+
index e49c8c8..6494e50 100644 (file)
@@ -45,15 +45,14 @@ class Toolkit_Template_Image_Left extends Toolkit_Template_Image_ImageAbstract
        {
                $imageData = $this->_adapter->getImageSize($size . $this->_src);
 
-               $html  = '<div class="left small-12 medium-4 columns">'
-            . '<figure>';
+               $html  = '<figure class="toolboxSectionImageFigure left small-12 medium-4 columns">';
                $html .=        parent::getImage($size);
                if (!empty($this->_caption)) {
                        $html .=        '<figcaption>';
                        $html .=                $this->_caption;
                        $html .=        '</figcaption>';
                }
-               $html .= '</figure></div>';
+               $html .= '</figure>';
 
                return $html;
        }
index c6dbdd3..86974f4 100644 (file)
@@ -45,14 +45,14 @@ class Toolkit_Template_Image_Right extends Toolkit_Template_Image_ImageAbstract
        {
                $imageData = $this->_adapter->getImageSize($size . $this->_src);
 
-               $html  = '<div class="right small-12 medium-4 columns"><figure>';
+               $html  = '<figure class="toolboxSectionFigureInner right small-12 medium-4 columns">';
                $html .=        parent::getImage($size);
                if (!empty($this->_caption)) {
                        $html .=        '<figcaption>';
                        $html .=                $this->_caption;
                        $html .=        '</figcaption>';
                }
-               $html .= '</figure></div>';
+               $html .= '</figure>';
 
                return $html;
        }