From 5499cf92b26f28c25afe779d4a1bad0df56fd798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Avijit=20=F0=9F=9A=80?= <526avijit@gmail.com> Date: Wed, 23 Jun 2021 21:35:06 +0200 Subject: [PATCH] Fix footer --- themes/gokarna/layouts/_default/baseof.html | 2 +- themes/gokarna/static/css/main.css | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/themes/gokarna/layouts/_default/baseof.html b/themes/gokarna/layouts/_default/baseof.html index 83ded07..d663ad3 100644 --- a/themes/gokarna/layouts/_default/baseof.html +++ b/themes/gokarna/layouts/_default/baseof.html @@ -5,7 +5,7 @@ {{- partial "header.html" . -}}
{{- block "main" . }}{{- end }} - {{- partial "footer.html" . -}}
+ {{- partial "footer.html" . -}} diff --git a/themes/gokarna/static/css/main.css b/themes/gokarna/static/css/main.css index 5f83cef..3ab1639 100644 --- a/themes/gokarna/static/css/main.css +++ b/themes/gokarna/static/css/main.css @@ -2,6 +2,12 @@ html { background: white; color: black; font-family: "Roboto", sans-serif; + min-height: 100%; + position: relative; +} + +body { + margin-bottom: 170px; } /* HEADER */ @@ -97,11 +103,15 @@ html { /* FOOTER */ .footer { + bottom: 0; border-top: 1px solid #eee; color: inherit; - margin-top: 50px; + left: 0; + overflow: hidden; padding: 40px 0; + position: absolute; text-align: center; + width: 100%; } .footer span { @@ -171,7 +181,7 @@ code { /* SINGLE */ #content { width: 810px; - margin: 180px auto 0; + margin: 120px auto 0; } .post .post-date { color: gray;