--- /dev/null
+$module: ".product-box";
+
+#{$module} {
+
+ position: relative;
+ @include margin-bottom(2);
+
+ &__image {
+
+ @include fluid-aspect(320 100);
+
+ }
+
+ &__title {
+
+ @include font-size(xxl);
+ @include line-height(2);
+ @include typeface(sans-serif);
+ @include margin(0 0 1 0);
+
+ }
+
+ &__desc {
+
+ @include font-size(s);
+ @include line-height(.75);
+ @include typeface(serif);
+ @include margin(1 0 .25 0);
+ font-weight: weight(light);
+
+ }
+
+ &__content {
+
+ @include padding(.5);
+
+ height: 150px;
+
+ }
+
+ &:after {
+
+ content: "";
+ display: block;
+ height: 1px;
+ width: 100%;
+ background: #979797;
+ position: absolute;
+ bottom: -24px;
+ left: 0;
+ right: 0;
+
+ }
+
+}
{% endfor %}
{% endblock %}
-
{% block page_person_list %}
{% endblock %}
- {% block products %}
- {% endblock %}
{% block page_sub_content %}
{% with object.blocks.all as blocks %}
{% include "core/inc/block.html" %}
</div>
<div>
+ {% block products %}
+ {% endblock %}
{% block page_related_content %}
{% with page.dynamic_content_pages.all as dynamic_content %}
{% include "core/inc/related_content.html" %}
{% with product_inline.product as product %}
{% with product.links.all|get_type_link:"link" as links %}
<div class="col-lg-3 col-md-3 col-sm-4 col-xs-6">
- <div class="article-box article-box--person" >
+ <div class="product-box" >
{% if product.images.all %}
- <div class="article-box__header">
- <a href="{{ links.0 }}" target="_blank" title="{{ product.title }}">
- <figure class="article-box__image">
- <img class="lazyload" src="{{ MEDIA_URL }}{% thumbnail product.images.all.0 427 500 top=0.5 %}" alt="product"/>
- </figure>
- </a>
- </div>
+ <a href="{{ links.0 }}" target="_blank" title="{{ product.title }}">
+ <figure class="product-box__image">
+ <img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-original="{{ MEDIA_URL }}{% thumbnail product.images.all.0 640 200 top=0.5 %}" alt="product"/>
+ </figure>
+ </a>
{% endif %}
- <div class="article-box__content tal">
- <a href="{{ links.0 }}" target="_blank" title="{{ product.title }}"><h3 class="article-box__title">{{ product.title }}</h3></a>
+ <div class="product-box__content tal">
+ <a href="{{ links.0 }}" target="_blank" title="{{ product.title }}"><h3 class="product-box__title">{{ product.title }}</h3></a>
{% if product.description %}
- <div class="article-box__desc">{{ product.description|richtext_filters|safe|truncatechars_html:255 }}</div>
+ <div class="product-box__desc">{{ product.description|richtext_filters|safe|truncatechars_html:100 }}</div>
{% elif product.content %}
- <div class="article-box__desc">{{ product.content|richtext_filters|safe|truncatechars_html:255 }}</div>
+ <div class="product-box__desc">{{ product.content|richtext_filters|safe|truncatechars_html:100 }}</div>
{% endif %}
</div>
</div>