From 8fe644a993dd7f1fcd1e42ee3070c967dec9d19c Mon Sep 17 00:00:00 2001 From: sqozz Date: Thu, 28 Dec 2017 19:13:27 +0100 Subject: [PATCH] Change category overview --- static/css/categories.css | 8 +++++++- templates/categories.html | 35 +++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/static/css/categories.css b/static/css/categories.css index 3e935c9..f7e5e58 100644 --- a/static/css/categories.css +++ b/static/css/categories.css @@ -1,10 +1,16 @@ .inner.cover { + display: flex; + flex-direction: column; + align-items: center; +} + +#categories { display: flex; align-items: baseline; flex-wrap: wrap; } -.inner.cover > span { +#categories span { width: 33%; margin-bottom: 10px; } diff --git a/templates/categories.html b/templates/categories.html index 6cc8ef3..16b0095 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -6,20 +6,23 @@ vim: ts=2 noexpandtab {% set active_page = "categories" %} {% block content %} - {% for category in categories %} - - - - {% endfor %} +

Categories

+
+ {% for category in categories %} + + + + {% endfor %} +
{% endblock content%}