From adcc889734a3fd81572e5b38fb1ce3497253d964 Mon Sep 17 00:00:00 2001 From: Raghavendra Kamath Date: Thu, 15 Feb 2018 13:44:27 +0530 Subject: [PATCH] blog tweaks --- foundation/public/css/erpnext-org-theme.css | 8 ++++++-- foundation/public/less/erpnext-org-theme.less | 9 +++++++-- foundation/templates/base.html | 5 +---- foundation/templates/includes/blog/blog.html | 1 + 4 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 foundation/templates/includes/blog/blog.html diff --git a/foundation/public/css/erpnext-org-theme.css b/foundation/public/css/erpnext-org-theme.css index f04836a3..2b8d1353 100644 --- a/foundation/public/css/erpnext-org-theme.css +++ b/foundation/public/css/erpnext-org-theme.css @@ -288,7 +288,7 @@ a:hover { } .list-unstyled li { list-style: none; - margin-bottom: 1em; + margin-bottom: 1rem; } .top-spacer { margin-top: 3rem; @@ -508,10 +508,11 @@ img.blog-cover-image, border-bottom: 0; } .blog-list-item a { - color: #8D99A6; + color: #36414C; } .blog-list-item h1 { margin-bottom: .5em; + font-weight: normal; } .blogpost-cover-img { width: 75%; @@ -568,3 +569,6 @@ img.blog-cover-image, .inline-block { display: inline-block; } +.blog-container { + max-width: 800px; +} diff --git a/foundation/public/less/erpnext-org-theme.less b/foundation/public/less/erpnext-org-theme.less index ba918ed8..035107fa 100644 --- a/foundation/public/less/erpnext-org-theme.less +++ b/foundation/public/less/erpnext-org-theme.less @@ -253,7 +253,7 @@ a { } .list-unstyled li { list-style: none; - margin-bottom: 1em; + margin-bottom: 1rem; } .top-spacer { @@ -488,10 +488,11 @@ img.blog-cover-image, .blog-text img, .screenshot { border-bottom: 0; } a { - color: @text-muted; + color: @text-color; } h1{ margin-bottom: .5em; + font-weight:normal } } @@ -561,3 +562,7 @@ margin-bottom: 3em; .inline-block { display: inline-block; } + +.blog-container { + max-width: 800px; +} diff --git a/foundation/templates/base.html b/foundation/templates/base.html index a678ffaf..91fe85cd 100644 --- a/foundation/templates/base.html +++ b/foundation/templates/base.html @@ -22,10 +22,7 @@ {% endif %} - {% if pathname == 'blog' %} - - - {% endif %} + {%- endblock -%} {# loading required JS for login #}