Added support for margin_bottom in polaroid-group. Accepts all value CSS accepts (like vw, vh, %, px). Tested.

This commit is contained in:
Richard Thier 2020-03-06 14:43:19 +01:00
parent c2ff06cdcc
commit c8f3c91fc2

View File

@ -2,7 +2,7 @@
<div class="bg-section" style="background: {{ section.background }};">
{% endif %}
<section class="polaroid-group baguette" {% if section.css %}style="{{ section.css }}"{% endif %} >
<div class="polaroid-line">
<div class="polaroid-line" {% if section.margin_bottom %}style="margin-bottom: {{ section.margin_bottom }};"{% endif %}>
{% for image in section.images %}
{% set caption = image.text %}
{% set custpos = false %}
@ -15,23 +15,32 @@
{% set angle = -15 %}
{% endif %}
{% endif %}
{% if image.x %}
{% set x = image.x %}
{% set custpos = true %}
{% else %}
{% set x = "0px" %}
{% endif %}
{% if image.y %}
{% set y = image.y %}
{% set custpos = true %}
{% else %}
{% set y = "0px" %}
{% endif %}
{% if image.z %}
{% set z = image.z %}
{% else %}
{% set z = loop.index %}
{% endif %}
{% if image.w %}
{% set w = image.w %}
{% else %}
{% endif %}
{% set image = Image(image) %}
{{ image.copy() }}
{% set ratio = image.ratio %}