From 17ad7ab2d46ada532ae1e7e9a0d64a9b6ffe261a Mon Sep 17 00:00:00 2001 From: henu Date: Wed, 25 Oct 2017 20:02:43 +0300 Subject: [PATCH] Fix navigation and add sticky footer which is shit --- static/css/footer.css | 25 +++++------- templates/footer.html | 56 ++++++++++++++++--------- webapp/static/css/main_nav.css | 3 ++ webapp/templates/base.html | 11 ++--- webapp/templates/navigation.html | 70 ++++++++++++++++---------------- 5 files changed, 92 insertions(+), 73 deletions(-) create mode 100644 webapp/static/css/main_nav.css diff --git a/static/css/footer.css b/static/css/footer.css index 2ebad99..3432e11 100644 --- a/static/css/footer.css +++ b/static/css/footer.css @@ -2,20 +2,19 @@ height:10vh; } -.footer { - text-align: center; +footer { + position: absolute; + bottom: 0; + width: 100%; + height: 60px; /* Set the fixed height of the footer here */ + line-height: 60px; /* Vertically center the text there */ margin-top: 2rem; margin-bottom: 1rem; } -#fi-button { - background: url("/static/img/fi.png") no-repeat; - background-size: cover; -} - -#en-button { - background: url("/static/img/en.png") no-repeat; - background-size: cover; +footer .container .col .nav .nav-item { + display: inline-block; + margin-right: 3vh; } .lang-button { @@ -30,8 +29,6 @@ display: inline-block; } -.lang-form { - margin-left: auto; - margin-right: auto; +footer .lang-form { max-width: 10rem; -} \ No newline at end of file +} diff --git a/templates/footer.html b/templates/footer.html index 31d263a..d4eb5b2 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -2,23 +2,41 @@ {% load static %} {% load staticfiles %} -