From 530a524373bb6f0e16f568de9fa2584d1a074089 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Wed, 18 May 2016 17:43:43 +0200 Subject: [PATCH] picture group responsible --- .../themes/exposure/static/css/style-page.css | 9 +++ .../templates/sections/pictures-group.html | 67 +++++++++---------- 2 files changed, 42 insertions(+), 34 deletions(-) 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 %}