From 61a124ad23eb169db9fbe493b59eb714a10419ce Mon Sep 17 00:00:00 2001 From: Luca Chiricozzi Date: Fri, 9 Jan 2015 20:28:34 +0100 Subject: [PATCH] Updated style --- scss/main.scss | 8 ++++++++ static/css/main.css | 7 +++++++ templates/archives.html | 10 +++++----- templates/categories.html | 14 +++++++++----- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/scss/main.scss b/scss/main.scss index bb61fdf..701ac02 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -173,6 +173,14 @@ a { } } +.mg-list-title { + font-size: 2em; + line-height: 42px; + font-weight: 400; + text-transform: none; + margin-top: 0.5em; +} + .mg-footer { margin-bottom: 1em; } diff --git a/static/css/main.css b/static/css/main.css index d0b5c1b..fd44165 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -103,6 +103,13 @@ a { text-decoration: none; color: #FF6600; } +.mg-list-title { + font-size: 2em; + line-height: 42px; + font-weight: 400; + text-transform: none; + margin-top: 0.5em; } + .mg-footer { margin-bottom: 1em; } diff --git a/templates/archives.html b/templates/archives.html index 1575c17..212ab3d 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -9,13 +9,13 @@

Archives

{% for article in dates %} -
- {{ article.title }} +
+ {{ article.title }} -

{{ article.summary }}

-
+

{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...

+
{% endfor %} diff --git a/templates/categories.html b/templates/categories.html index 0dbfb27..bf0c832 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -6,19 +6,23 @@ {% block content %}
-

Categories

+

Categories

{% for category, articles in categories %}

{{ category|capitalize }}

{% for article in articles %} {% endfor %} + +
+ {% endfor %}
{% endblock %}