From 2fe986fbf144d241b6e87febe78aeee0f6245a68 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Tue, 1 Aug 2017 17:30:17 +0200 Subject: [PATCH] Mail update --- news/templates/news/news_card_content_short.html | 2 +- scipost/static/scipost/assets/css/_homepage.scss | 9 ++++----- scipost/templates/scipost/base_for_sidebar.html | 2 +- scipost/templates/scipost/index.html | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/news/templates/news/news_card_content_short.html b/news/templates/news/news_card_content_short.html index 8ee65b8d9..8565202ba 100644 --- a/news/templates/news/news_card_content_short.html +++ b/news/templates/news/news_card_content_short.html @@ -3,7 +3,7 @@ <div> <h5 class="text-muted mb-2">{{news.date|date:'j F Y'}}</h5> <div> - {{news.blurb|slice:":180"}} (...) + {{news.blurb|slice:":90"}} (...) <br> <a href="{% url 'news:news' %}#news_{{news.id}}" class="my-1 d-inline-block">Read more</a> diff --git a/scipost/static/scipost/assets/css/_homepage.scss b/scipost/static/scipost/assets/css/_homepage.scss index c41e5e12b..780686275 100644 --- a/scipost/static/scipost/assets/css/_homepage.scss +++ b/scipost/static/scipost/assets/css/_homepage.scss @@ -69,10 +69,10 @@ @media (min-width: 768px) { .main-panel { - width: calc(100% - 450px); + width: calc(100% - 400px); } .sidebar { - width: 450px; + width: 400px; border-top: 0; padding-bottom: 3rem; // box-shadow: 0px 1px 1px 0 #d0d1d5 inset; @@ -80,10 +80,9 @@ } @media (min-width: 1280px) { - .main-panel, .sidebar { - padding-left: 3rem; - padding-right: 3rem; + padding-left: 2rem; + padding-right: 2rem; } } } diff --git a/scipost/templates/scipost/base_for_sidebar.html b/scipost/templates/scipost/base_for_sidebar.html index 86d25e5ba..6fe3e950b 100644 --- a/scipost/templates/scipost/base_for_sidebar.html +++ b/scipost/templates/scipost/base_for_sidebar.html @@ -18,7 +18,7 @@ </div> - <div class="sidebar"> + <div class="sidebar pt-1"> {% block sidebar %}{% endblock %} </div> </div> diff --git a/scipost/templates/scipost/index.html b/scipost/templates/scipost/index.html index baae27855..52b9b98b4 100644 --- a/scipost/templates/scipost/index.html +++ b/scipost/templates/scipost/index.html @@ -17,7 +17,7 @@ <div class="row"> <div class="col-lg-6"> <!-- Latest publications --> - <div class="card card-grey"> + <div class="card card-grey px-3"> <div class="card-header"> <h2 class="card-title mb-0"><a href="{% url 'journals:journals' %}" class="text-black">Latest Publications</a></h2> </div> @@ -42,7 +42,7 @@ <div class="col-lg-6"> <!-- Latest submissions --> - <div class="card card-grey"> + <div class="card card-grey px-3"> <div class="card-header"> <h2 class="card-title mb-0"><a href="{% url 'submissions:submissions' %}" class="text-black">Latest Submissions</a></h2> </div> -- GitLab