From 39a4effc9e8f094d61f5dc5fec5a53bf65d7b9af Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 18 Sep 2020 16:09:50 +0200 Subject: [PATCH] styling changes: img width and work-in-progress on the next and prev buttons --- themes/default/static/css/main.css | 5 ++ themes/default/templates/article.html | 85 ++++++++++++++++----------- themes/default/templates/index.html | 5 -- 3 files changed, 56 insertions(+), 39 deletions(-) diff --git a/themes/default/static/css/main.css b/themes/default/static/css/main.css index 32c5edd..0fb3abf 100644 --- a/themes/default/static/css/main.css +++ b/themes/default/static/css/main.css @@ -103,6 +103,11 @@ hr{ margin:3em auto; } +img{ + width: calc(100% + 6em); + margin: 1em 0 1em -3em; +} + .lastupdate{ font-size: smaller; margin:4em 0; diff --git a/themes/default/templates/article.html b/themes/default/templates/article.html index 2562384..16d691a 100644 --- a/themes/default/templates/article.html +++ b/themes/default/templates/article.html @@ -4,49 +4,66 @@ {% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %} {% block head %} - {{ super() }} + {{ super() }} - {% import 'translations.html' as translations with context %} - {% if translations.entry_hreflang(article) %} - {{ translations.entry_hreflang(article) }} - {% endif %} + {% import 'translations.html' as translations with context %} + {% if translations.entry_hreflang(article) %} + {{ translations.entry_hreflang(article) }} + {% endif %} - {% if article.description %} - - {% endif %} + {% if article.description %} + + {% endif %} - {% for tag in article.tags %} - - {% endfor %} + {% for tag in article.tags %} + + {% endfor %} {% endblock %} {% block content %}
-
-

- {{ article.title }}

+
+

+ {{ article.title }}

{% import 'translations.html' as translations with context %} {{ translations.translations_for(article) }} -
-
- {% if article.category %} -
- Part of: {{ article.category }} -
- {% endif %} - {% if article.tags %} -
- Tags: - {% for tag in article.tags %} - {{ tag }} - {% endfor %} -
- {% endif %} -
-
- {{ article.content }} -
+
+
+ {% if article.category %} +
+ Part of: {{ article.category }} +
+ {% endif %} + {% if article.tags %} +
+ Tags: + {% for tag in article.tags %} + {{ tag }} + {% endfor %} +
+ {% endif %} +
+
+ {{ article.content }} +
+ + +
{% endblock %} diff --git a/themes/default/templates/index.html b/themes/default/templates/index.html index 4042725..eb1e663 100644 --- a/themes/default/templates/index.html +++ b/themes/default/templates/index.html @@ -12,9 +12,4 @@ {% endfor %} - - - - - {% endblock content %}