if (!isset($data['backgroundmobileimage'])) {\r
$pict = $this->view->imageCms($image_path);\r
} else {\r
- $pict = '<div class="desktopr">' . $this->view->imageCms($image_path) . '</div>';\r
- $pict .= '<div class="mobiler">' . $this->view->imageCms(CubeIT_View_Helper_ImageCms::getPath(CubeIT_Util_Cms::extractFile($data['backgroundmobileimage']))) . '</div>';\r
+ $pict = '<div class="desktopr">' . $this->view->imageCms($image_path, '', null, null, ['data-nowrapper' => true]) . '</div>';\r
+ $pict .= '<div class="mobiler">' . $this->view->imageCms(CubeIT_View_Helper_ImageCms::getPath(CubeIT_Util_Cms::extractFile($data['backgroundmobileimage'])), '', null, null, ['data-nowrapper' => true]) . '</div>';\r
}\r
} else {\r
if (isset($data['backgroundmobileimage'])) {\r
\r
function resize_oam() {\r
$('iframe.oam,iframe.zip').each(function () {\r
+ if ($(this).closest('.animationIframeWrapper').length > 0) {\r
+ return;\r
+ }\r
var p = $(this).parent();\r
var pw = $(p).outerWidth();\r
var ph = $(p).outerHeight();\r
registerLoader(load_features_details, true);\r
\r
function load_features_details() {\r
- $(window).on('fluidbookresize', resizeFeatureDetails);\r
- resizeFeatureDetails();\r
-}\r
\r
-function resizeFeatureDetails() {\r
- $('article iframe').each(function () {\r
- $(this).css('height', null);\r
- var r = parseInt($(this).attr('width')) / parseInt($(this).attr('height'));\r
- $(this).css('height', $(this).outerWidth() / r);\r
- });\r
-}
\ No newline at end of file
+}\r
@import "000-imports";\r
\r
#featureDetails {\r
- padding-top: 0;\r
- color: @color-text;\r
- article {\r
- margin-top: 110px;\r
- &:first-child {\r
- margin-top: 0;\r
- }\r
-\r
- .content {\r
- width: 50%;\r
- padding: 8% 10% 0;\r
- display: inline-block;\r
- vertical-align: top;\r
- font-size: 14px;\r
-\r
- h3 {\r
- font-family: @montserrat;\r
- text-transform: uppercase;\r
- font-weight: 500;\r
- margin-bottom: 15px;\r
- }\r
- }\r
- img {\r
- display: inline-block;\r
- width: 50%;\r
- height: auto;\r
- vertical-align: top;\r
- }\r
- iframe{\r
- width: 50%;\r
- vertical-align: top;\r
- }\r
-\r
- @media @m1280 {\r
- &.ileft {\r
- .content {\r
- padding: 0 0 0 4%;\r
- }\r
- }\r
-\r
- &.iright {\r
- .content {\r
- padding: 0 4% 0 0;\r
- }\r
- }\r
- }\r
-\r
- @media @m900 {\r
- margin-top: 70px;\r
-\r
- .content {\r
- float: none !important;\r
- width: 100%;\r
- padding: 0 !important;\r
- display: block;\r
- margin-top: 20px;\r
- }\r
-\r
- img {\r
- float: none !important;\r
- width: 100%;\r
- height: auto;\r
- display: block;\r
- }\r
-\r
- }\r
-\r
- &.ileft {\r
- .content {\r
- float: right;\r
- }\r
- img {\r
- float: left;\r
- }\r
-\r
- }\r
-\r
- &.iright {\r
- .content {\r
- float: left;\r
- }\r
- img {\r
- float: right;\r
- }\r
- }\r
- }\r
+ padding-top: 0;\r
+ color: @color-text;\r
+\r
+ article {\r
+ width: 100%;\r
+ margin-top: 110px;\r
+\r
+ &:first-child {\r
+ margin-top: 0;\r
+ }\r
+\r
+ .content {\r
+ width: 50%;\r
+ padding: 8% 10% 0;\r
+ display: inline-block;\r
+ vertical-align: top;\r
+ font-size: 14px;\r
+\r
+ h3 {\r
+ font-family: @montserrat;\r
+ text-transform: uppercase;\r
+ font-weight: 500;\r
+ margin-bottom: 15px;\r
+ }\r
+ }\r
+\r
+ img {\r
+ display: inline-block;\r
+ width: 50%;\r
+ height: auto;\r
+ vertical-align: top;\r
+ }\r
+\r
+ .animationSuperWrapper {\r
+ width: 50%;\r
+ vertical-align: top;\r
+ }\r
+\r
+ @media @m1280 {\r
+ &.ileft {\r
+ .content {\r
+ padding: 0 0 0 4%;\r
+ }\r
+ }\r
+\r
+ &.iright {\r
+ .content {\r
+ padding: 0 4% 0 0;\r
+ }\r
+ }\r
+ }\r
+\r
+ @media @m900 {\r
+ margin-top: 70px;\r
+\r
+ .content {\r
+ float: none !important;\r
+ width: 100%;\r
+ padding: 0 !important;\r
+ display: block;\r
+ margin-top: 20px;\r
+ }\r
+\r
+ img {\r
+ float: none !important;\r
+ width: 100%;\r
+ height: auto;\r
+ display: block;\r
+ }\r
+\r
+ .animationSuperWrapper {\r
+ float: none !important;\r
+ width: 100%;\r
+ }\r
+\r
+ }\r
+\r
+ &.ileft {\r
+ .content {\r
+ float: right;\r
+ }\r
+\r
+ img, .animationSuperWrapper {\r
+ float: left;\r
+ }\r
+\r
+ }\r
+\r
+ &.iright {\r
+ .content {\r
+ float: left;\r
+ }\r
+\r
+ img, .animationSuperWrapper {\r
+ float: right;\r
+ }\r
+ }\r
+ }\r
}
\ No newline at end of file