From dabf484422544548189d0f2db1d59baed7b717a1 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 19 Sep 2018 14:42:34 +0200 Subject: [PATCH] Change base layout Make CSS a bit cleaner and remove useless separator. --- static/css/base.css | 12 ++++++------ templates/base.html | 9 ++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index 393a7c20..3678e65c 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -8,10 +8,9 @@ footer p { margin-bottom: .25rem; } -/* Remove the navbar's default margin-bottom */ -.navbar { - margin-bottom: 0; -} +/* Move the space between navbar and content in the content */ +.navbar { margin-bottom: 0; } +.pt4 { padding-top: 1.5rem!important; } /* Reserv space for icons and align */ a > i.fa { @@ -58,10 +57,11 @@ a > i.fa { overflow: auto; } -/* Set gray background color and 100% height */ +/* Set gray background color */ .sidenav { - padding-top: 20px; background-color: #f1f1f1; + border: 1px solid #e0e0e0; + border-radius: 0 0 5px 5px; } .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th { vertical-align: middle; diff --git a/templates/base.html b/templates/base.html index d1306832..9ede191f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -53,7 +53,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ name_website }} : {% block title %}{% trans "Home" %}{% endblock %} - +