From 81d4df0b32213322a33ad2c6dc669dba53ab9c7b Mon Sep 17 00:00:00 2001 From: imohkay Date: Thu, 28 Oct 2021 16:00:36 +0530 Subject: [PATCH] split en and zh into 2 columns for assemblies --- app/static/css/partials/_film.scss | 1 + app/static/css/partials/_text.scss | 14 ++++++++++++++ app/templates/texts.html | 28 +++++++++++++++++----------- 3 files changed, 32 insertions(+), 11 deletions(-) mode change 100644 => 100755 app/templates/texts.html diff --git a/app/static/css/partials/_film.scss b/app/static/css/partials/_film.scss index 483c7e1..8b90eaf 100755 --- a/app/static/css/partials/_film.scss +++ b/app/static/css/partials/_film.scss @@ -67,6 +67,7 @@ main > .film { max-width: 250px; } + .texts { margin-top: var(--spacing-2); margin-bottom: var(--spacing-2); diff --git a/app/static/css/partials/_text.scss b/app/static/css/partials/_text.scss index e0e602a..119c1a7 100755 --- a/app/static/css/partials/_text.scss +++ b/app/static/css/partials/_text.scss @@ -102,3 +102,17 @@ main > .about { } } + +.assemblies { + &.row { + @media only screen and (max-width: 799px) { + flex-direction: column; + } + } + + .col { + @media only screen and (min-width: 800px) { + width: 50%; + } + } +} diff --git a/app/templates/texts.html b/app/templates/texts.html old mode 100644 new mode 100755 index 4b9bd77..9e5ef04 --- a/app/templates/texts.html +++ b/app/templates/texts.html @@ -3,17 +3,23 @@ {% block main %}
- {% for text in en_texts %} -
-

{{ text.title | safe }}

-

{{ text.byline|striptags }}

+
+
+ {% for text in en_texts %} +
+

{{ text.title | safe }}

+

{{ text.byline|striptags }}

+
+ {% endfor %} +
+
+ {% for text in zh_texts %} +
+

{{ text.title | safe }}

+

{{ text.byline|striptags }}

+
+ {% endfor %} +
- {% endfor %} - {% for text in zh_texts %} -
-

{{ text.title | safe }}

-

{{ text.byline|striptags }}

-
- {% endfor %}
{% endblock %}