From 8a2cb5b9747fbd4aa352139d709a7df0a8616a7b Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 18 Apr 2023 17:36:36 +0200 Subject: [PATCH] Add footer --- nummi/main/static/main/css/main.css | 12 +++++++++--- nummi/main/templates/main/base.html | 3 +++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/nummi/main/static/main/css/main.css b/nummi/main/static/main/css/main.css index 49600f9..35ebf2c 100644 --- a/nummi/main/static/main/css/main.css +++ b/nummi/main/static/main/css/main.css @@ -66,8 +66,10 @@ a:hover { .red {color: var(--red)} .green {color: var(--text-green)} -main { +main, nav, footer { padding: 2rem; +} +main { grid-column: 2; grid-row: 1; overflow-x: hidden; @@ -80,7 +82,6 @@ nav { position: sticky; top: 0; - padding: 2rem; background: var(--bg-01); line-height: 2rem; } @@ -117,6 +118,11 @@ nav > :first-child, main > :first-child { margin-top: 0; } +footer { + text-align: center; + grid-column: 2; + font-weight: 250; +} #pagination { text-align: center; @@ -130,7 +136,7 @@ main > :first-child { @media (width < 1024px) { body {grid-template-columns: 1fr} - nav, main { + nav, main, footer { grid-column: 1; grid-row: auto; position: relative; diff --git a/nummi/main/templates/main/base.html b/nummi/main/templates/main/base.html index 316c28f..b5eee2b 100644 --- a/nummi/main/templates/main/base.html +++ b/nummi/main/templates/main/base.html @@ -103,5 +103,8 @@
{% block body %}{% endblock %}
+