Skip to content

Commit

Permalink
[BUGFIX] don't create inline-css for background unless value exists. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pxamike authored and dmh committed May 15, 2018
1 parent c6c3b24 commit b9a1fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Templates/ContentElements/HeroImage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- theme_t3kit: Templates/ContentElements/HeroImage.html [begin] -->
<f:if condition="{image}">
<div class="hero-image js__hero-image {f:cObject(typoscriptObjectPath:'lib.responsiveBackgroundImage', data:image.0.uid)}">
<div class="hero-image__caption-wrp {f:if(condition: '{settings.horizontalAlignment} == 0', then: '_left-align')}{f:if(condition: '{settings.horizontalAlignment} == 1', then: '_center-align')}{f:if(condition: '{settings.horizontalAlignment} == 2', then: '_right-align')}" style="height: {settings.elementHeight}px; background-color:{f:if(condition: settings.transparentLayer, then: '{settings.transparentLayer}')};">
<div class="hero-image__caption-wrp {f:if(condition: '{settings.horizontalAlignment} == 0', then: '_left-align')}{f:if(condition: '{settings.horizontalAlignment} == 1', then: '_center-align')}{f:if(condition: '{settings.horizontalAlignment} == 2', then: '_right-align')}" style="height: {settings.elementHeight}px;{f:if(condition: settings.transparentLayer, then: ' background-color:{settings.transparentLayer};')}">
<div class="hero-image__caption {f:if(condition: '{settings.animationStyle} == 0', then: '', else: '_caption-animated-{settings.animationStyle}')} {f:if(condition: '{settings.verticalAlignment} == 0', then: '_top')}{f:if(condition: '{settings.verticalAlignment} == 2', then: '_bottom')}">
<f:if condition="{data.header}">
<h2 class="hero-image__caption-header" data-header-content='{data.header}'>{data.header}</h2>
Expand Down

0 comments on commit b9a1fcb

Please sign in to comment.