From cf8661cd14acf597a5450f0a3bef28114a56762b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Tue, 18 Oct 2016 17:54:35 +0200 Subject: [PATCH] Person lists fixes --- .../src/sass/modules/boxes/_article-box.scss | 8 ++++++ .../network/inc/person/list_square_style.html | 25 ++++++++++--------- .../inc/person/person_card_circle.html | 2 +- .../inc/person/person_card_square.html | 2 +- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/app/static/src/sass/modules/boxes/_article-box.scss b/app/static/src/sass/modules/boxes/_article-box.scss index e31c6fe7..7f57694b 100644 --- a/app/static/src/sass/modules/boxes/_article-box.scss +++ b/app/static/src/sass/modules/boxes/_article-box.scss @@ -162,6 +162,8 @@ $module: ".article-box"; @include margin-top(2); position: relative; + + &:after { content: ""; @@ -186,6 +188,12 @@ $module: ".article-box"; } + #{$module}__image { + + @include fluid-aspect(427 500); + + } + #{$module}__desc { @include line-height(1); } diff --git a/app/templates/network/inc/person/list_square_style.html b/app/templates/network/inc/person/list_square_style.html index 69c25820..1f9958e3 100644 --- a/app/templates/network/inc/person/list_square_style.html +++ b/app/templates/network/inc/person/list_square_style.html @@ -21,32 +21,33 @@ -
+
-
+
+
- {% for person_list_block_inline in person_list_block.person_list_block_inlines.all %} +
-
+ {% for person_list_block_inline in person_list_block.person_list_block_inlines.all %} -
+
- {% with person_list_block_inline.person as person %} + {% with person_list_block_inline.person as person %} -
{% include "network/inc/person/person_card_square.html" %} -
- {% endwith %} + {% endwith %} -
+
-
+ {% endfor %} - {% endfor %} +
+
+
diff --git a/app/templates/network/inc/person/person_card_circle.html b/app/templates/network/inc/person/person_card_circle.html index 384b424a..ed10adde 100644 --- a/app/templates/network/inc/person/person_card_circle.html +++ b/app/templates/network/inc/person/person_card_circle.html @@ -10,7 +10,7 @@ {% with person.images.all|get_type:'card' as card_images %} {% if card_images %} - person + person {% endif %} {% endwith %} diff --git a/app/templates/network/inc/person/person_card_square.html b/app/templates/network/inc/person/person_card_square.html index ec146f8d..c1254821 100644 --- a/app/templates/network/inc/person/person_card_square.html +++ b/app/templates/network/inc/person/person_card_square.html @@ -6,7 +6,7 @@
- person + person
-- 2.39.5