diff --git a/prosopopee/themes/exposure/static/css/style-page.css b/prosopopee/themes/exposure/static/css/style-page.css index ca17c42..e23d51c 100644 --- a/prosopopee/themes/exposure/static/css/style-page.css +++ b/prosopopee/themes/exposure/static/css/style-page.css @@ -401,3 +401,12 @@ a.google { .video-container video.fillWidth { width: 100%; } + +@media only screen and (max-device-width : 992px) { + +.pictures-line { + display: inherit; +} + +} + diff --git a/prosopopee/themes/material/templates/sections/pictures-group.html b/prosopopee/themes/material/templates/sections/pictures-group.html index 19e2842..2af50c7 100644 --- a/prosopopee/themes/material/templates/sections/pictures-group.html +++ b/prosopopee/themes/material/templates/sections/pictures-group.html @@ -1,46 +1,45 @@ {% if section.background %}
{% endif %} -
+
{% for line in section.images %} -
- {% for image in line %} - {% if image.type == "video" %} - {% set video = Video(image) %} - {{ video.copy() }} - {% else %} - {% set caption = image.text %} - {% set image = Image(image) %} - {{ image.copy() }} - {% endif %} -
-
- {% if video %} -
- - -
- {% set video = "" %} - {% else %} - - {% endif %} + {% set number = line|length %} + {% for image in line %} + {% if image.type == "video" %} + {% set video = Video(image) %} + {{ video.copy() }} + {% else %} + {% set caption = image.text %} + {% set image = Image(image) %} + {{ image.copy() }} + {% endif %} +
+
+ {% if video %} +
+ +
+ {% set video = "" %} + {% else %} + + {% endif %}
- {% endfor %}
{% endfor %} + {% endfor %}
{% if section.background %}