From 54e54b00e2f5e1a41bfa0d22ab7480c9b4befe78 Mon Sep 17 00:00:00 2001 From: henu Date: Wed, 25 Oct 2017 18:14:17 +0300 Subject: [PATCH 1/2] Change kaehmy header html class name --- webapp/static/css/sik_header.css | 7 ++----- webapp/templates/kaehmy_base.html | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/webapp/static/css/sik_header.css b/webapp/static/css/sik_header.css index b2c56dc..1424c20 100644 --- a/webapp/static/css/sik_header.css +++ b/webapp/static/css/sik_header.css @@ -8,7 +8,6 @@ .header-content .logo img { display: block; - width: 100%; height: auto; margin: auto; } @@ -20,7 +19,7 @@ } @media screen and (min-width: 1000px) { - .header-content { + .kaehmy_header-content { position: absolute; left: 0; top: 0; @@ -28,9 +27,7 @@ width: 100%; } - .header { + .kaehmy_header { margin-bottom: 331px; } } - - diff --git a/webapp/templates/kaehmy_base.html b/webapp/templates/kaehmy_base.html index c772ac8..280379c 100644 --- a/webapp/templates/kaehmy_base.html +++ b/webapp/templates/kaehmy_base.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block header %} -
+
{% include "kaehmy_header.html" %}
-{% endblock header %} \ No newline at end of file +{% endblock header %} From 17ad7ab2d46ada532ae1e7e9a0d64a9b6ffe261a Mon Sep 17 00:00:00 2001 From: henu Date: Wed, 25 Oct 2017 20:02:43 +0300 Subject: [PATCH 2/2] 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 %} -