Commit 83601d43 authored by Martin Fischbach's avatar Martin Fischbach
Browse files

fixed images sizes of block (for mobile devices with DPR != 1)

parent 52ac2dee
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
{% endif %} {% endif %}
{% if url %} {% if url %}
{% if url=="none" %} {% if url=="none" %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %} {% include image src=include.image dimension=dimension sizes="320px" class=include.imageclass style=include.imagestyle %}
{% else %} {% else %}
<a href="{{ url }}"> <a href="{{ url }}">
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 500px, (min-width: 980px) 410px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %} {% include image src=include.image dimension=dimension sizes="320px" class=include.imageclass style=include.imagestyle %}
</a> </a>
{% endif %} {% endif %}
{% else %} {% else %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %} {% include image src=include.image dimension=dimension sizes="320px" class=include.imageclass style=include.imagestyle %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if include.title %} {% if include.title %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment