From: Laury GvR Date: Thu, 21 Aug 2014 18:04:26 +0000 (-0400) Subject: Image caption toolbox pages resizing. X-Git-Tag: V1.0.21^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e7289b2c3101e2c018cfc1b2df116a28f08ca263;p=web%2FKeweenaw.git Image caption toolbox pages resizing. It was at 100% so would be significantly wider than the image. --- diff --git a/Toolkit/Members/css/member.css b/Toolkit/Members/css/member.css index cbab75b..ca7bf28 100755 --- a/Toolkit/Members/css/member.css +++ b/Toolkit/Members/css/member.css @@ -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; +} + + diff --git a/Toolkit/Template/Image/Left.php b/Toolkit/Template/Image/Left.php index e49c8c8..6494e50 100644 --- a/Toolkit/Template/Image/Left.php +++ b/Toolkit/Template/Image/Left.php @@ -45,15 +45,14 @@ class Toolkit_Template_Image_Left extends Toolkit_Template_Image_ImageAbstract { $imageData = $this->_adapter->getImageSize($size . $this->_src); - $html = '
' - . '
'; + $html = '
'; $html .= parent::getImage($size); if (!empty($this->_caption)) { $html .= '
'; $html .= $this->_caption; $html .= '
'; } - $html .= '
'; + $html .= ''; return $html; } diff --git a/Toolkit/Template/Image/Right.php b/Toolkit/Template/Image/Right.php index c6dbdd3..86974f4 100644 --- a/Toolkit/Template/Image/Right.php +++ b/Toolkit/Template/Image/Right.php @@ -45,14 +45,14 @@ class Toolkit_Template_Image_Right extends Toolkit_Template_Image_ImageAbstract { $imageData = $this->_adapter->getImageSize($size . $this->_src); - $html = '
'; + $html = '
'; $html .= parent::getImage($size); if (!empty($this->_caption)) { $html .= '
'; $html .= $this->_caption; $html .= '
'; } - $html .= '
'; + $html .= ''; return $html; }