<div class="fact blue sibling-margins-off">
<span class="d-block text-center factnumber make-counter">4,792</span>
<span class="d-block text-center">random acts of kindness in 2019</span>
</div>
<div class="fact {{fact_color}} sibling-margins-off">
<span class="d-block text-center factnumber make-counter">{{fact_number}}</span>
<span class="d-block text-center">{{fact_desc}}</span>
</div>
{
"fact_color": "blue",
"fact_number": "4,792",
"fact_desc": "random acts of kindness in 2019"
}
$fact-fontsize:4rem !default;
.fact {
display:flex;
flex-direction:column;
justify-content:center;
margin:0 auto;
position:relative;
width:100%;
.factnumber {
@include condensed-font;
font-size:$fact-fontsize;
line-height:1;
&.make-counter {
display:inline-flex !important;
height:$fact-fontsize;
justify-content:center;
}
}
&.purple {
.factnumber {
color:var(--purple);
}
}
&.orange {
.factnumber {
color:var(--orange);
}
}
&.green {
.factnumber {
color:var(--green);
}
}
&.blue {
.factnumber {
color:var(--blue);
}
}
}
There are no notes for this item.