Add 'new' label

This commit is contained in:
Björn Fromme
2018-12-19 16:03:58 +01:00
parent 30a6c4fe32
commit 0f989d5110
10 changed files with 73 additions and 29 deletions
@@ -120,6 +120,10 @@
text-transform: uppercase;
white-space: nowrap;
&--new {
color: $color-label-earlybird;
}
&--earlybird {
color: $color-label-earlybird;
}
@@ -67,9 +67,9 @@
<span class="product-teaser__price"><strong>ab {teaser.minPrice} €</strong>{f:if(condition: teaser.pseudoPrice, then: ' <s class="product-teaser__pseudo-price">{teaser.pseudoPrice} €</s>')}</span>
<f:if condition="{date.pseudoPrice}">
<f:else>
<div class="product-teaser__labels{f:if(condition: '{0: teaser.date.earlybird, 1: teaser.date.lowContingent} == {0: 1, 1: 1}', then: ' product-teaser__labels--multiple')}">
<f:if condition="{teaser.date.earlybird}">
<span class="teaser-label teaser-label--earlybird">Frühbucher</span>
<div class="product-teaser__labels{f:if(condition: '{teaser.new} == 1 && {teaser.date.lowContingent} == 1', then: ' product-teaser__labels--multiple')}">
<f:if condition="{teaser.new}">
<span class="teaser-label teaser-label--new">Neu</span>
</f:if>
<f:if condition="{teaser.date.lowContingent}">
<span class="teaser-label teaser-label--low-contingent">Wenige Betten</span>