From 118bfc6346a1004212284ff9799d0afcd2c80540 Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Tue, 29 Nov 2016 14:54:27 +0300 Subject: [PATCH] Visual improvements --- alchemy/static/css/style.css | 75 ++++++++++++++++++++-------------- alchemy/templates/article.html | 8 ++-- alchemy/templates/base.html | 28 ++++++------- alchemy/templates/index.html | 4 +- 4 files changed, 64 insertions(+), 51 deletions(-) diff --git a/alchemy/static/css/style.css b/alchemy/static/css/style.css index a7c2220..1b065db 100644 --- a/alchemy/static/css/style.css +++ b/alchemy/static/css/style.css @@ -46,7 +46,6 @@ h4, h5, h6 { font-family: Montserrat, 'Helvetica Neue', sans-serif; - font-weight: bold; } a { @@ -74,6 +73,34 @@ blockquote { padding-bottom: 10px; } +.header img { + margin: 20px 0; +} + +.header h1 { + font-size: 3em; +} + +.header p { + margin-top: 20px; +} + +.header hr { + border-color: #ddd; + margin: 15px 0; +} + +.header ul { + font-family: Montserrat, 'Helvetica Neue', sans-serif; + font-size: 1.1em; + margin-bottom: 0; + text-transform: lowercase; +} + +.header li { + margin-bottom: 10px; +} + .main { background-color: #fff; padding: 20px 0; @@ -84,8 +111,16 @@ blockquote { padding: 20px 0; } -.highlight pre { - border: 1px solid #ddd; +.footer ul { + margin-bottom: 0; +} + +.page-header { + margin-top: 0; +} + +.page-header h1 { + line-height: 1.3; } .pagination > li > a, @@ -93,34 +128,13 @@ blockquote { color: #333; } -.header img { - margin: 20px 0; +.highlight pre { + border: 1px solid #ddd; } -.header h1 { - font-size: 3em; -} - -.header p { - font-size: 1.1em; - margin-top: 20px; -} - -.header ul { - font-family: Montserrat, 'Helvetica Neue', sans-serif; - margin-bottom: 0; -} - -.header li { - margin-bottom: 10px; -} - -.page-header { - margin-top: 0; -} - -.teaser h2 { +.teaser h4 { margin-top: 0; + line-height: 1.3; } .teaser p { @@ -136,13 +150,14 @@ blockquote { .article > p, .article > blockquote, .article > .highlight { - margin: 30px 0; + margin: 20px 0; } .article > h2 { - margin-top: 50px; + margin-top: 30px; } + .article a { text-decoration: underline } diff --git a/alchemy/templates/article.html b/alchemy/templates/article.html index 542e4c6..38c91f9 100644 --- a/alchemy/templates/article.html +++ b/alchemy/templates/article.html @@ -18,16 +18,16 @@
{% endif %} @@ -108,22 +108,20 @@ -