From 34557ea3b82b4a73232f75021f22a3b591b8d3ae Mon Sep 17 00:00:00 2001 From: Andreas HABEGGER Date: Sun, 19 Nov 2023 20:51:42 +0100 Subject: UC: Switched to card elements for the partner panel; Imporvement of alignment. --- static/styles.css | 7 ++++++ template/consortium.html.j2 | 57 +++++++++++++++++++++------------------------ 2 files changed, 33 insertions(+), 31 deletions(-) diff --git a/static/styles.css b/static/styles.css index c26490f2..fcff74fd 100644 --- a/static/styles.css +++ b/static/styles.css @@ -268,4 +268,11 @@ ul.timeline > li:before { -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); +} + +.section-consortium .card-note { + overflow: hidden; + line-height: 1.5rem; + height: 4.5rem; + min-height: 4.5rem; } \ No newline at end of file diff --git a/template/consortium.html.j2 b/template/consortium.html.j2 index 073e3dc7..58706d74 100644 --- a/template/consortium.html.j2 +++ b/template/consortium.html.j2 @@ -36,13 +36,13 @@
- {{ objective['text'] }} + {{ objective.text }}
@@ -85,40 +85,35 @@
- {% for partner in conf['partners'] %} +
- {% if loop.index0 % 2 == 0 %} - -
- {% endif %} +
+ - -
-
- - {{ partner['id'] + ' avatar'}} - + {% for partner in conf['partners'] %} + +
+
+ + {{ partner.id + ' avatar'}} + +
The team of {{ partner.name }} is represented by
+
+
{{ partner.contact }}
+

{{ partner.role }}

+
+
-

The team of {{ partner['name']}} is represented by

- -
{{ partner['contact'] }}
-

{{ partner['role'] }}

-
-

- {{ partner['statement'] }} -

- {% if not loop.index0 == 0 and loop.index % 2 == 0 %} - -
-
- {% endif %} - {% endfor %} - -
- + {% endfor %} + + + + -- cgit v1.2.3