From d0711fef81ce6b50a275574d33f7feb6ec10f9bc Mon Sep 17 00:00:00 2001 From: Lucie Anglade Date: Sat, 5 Aug 2023 12:21:37 +0200 Subject: [PATCH] Style header and footer, define main margins --- themes/afpy/static/css/website.css | 77 ++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/themes/afpy/static/css/website.css b/themes/afpy/static/css/website.css index fb1fcf2..d91562f 100644 --- a/themes/afpy/static/css/website.css +++ b/themes/afpy/static/css/website.css @@ -12,6 +12,7 @@ --blue: #327bd6; --dark-green: #32ada9; --green: #ebff32; + --grey: #c9c9c9; --orange: #ff6f32; --purple: #84326b; --white: #ffffff; @@ -23,23 +24,93 @@ html { background: var(--white); color: var(--black); - font-family: sans-serif; + font-family: Atkinson; font-size: 14pt; line-height: 1.5; + overflow-x: hidden; } body { + display: flex; + flex-direction: column; + justify-content: space-between; margin: 0; + min-height: 100vh; } +a:hover { + background: var(--green); +} -/* Header */ +li { + list-style: none; +} + +img { + display: block; + max-width: 100%; +} + +/* Header and Footer */ header { + background: var(--white); + border-bottom: var(--grey) 1px solid; + display: flex; height: 4em; left: 0; position: fixed; top: 0; width: 100vw; } - + +header img { + margin: 0.5em 1em 0.5em 5em; +} + +header h1 { + margin: auto 0; +} + +header a, +footer a { + color: inherit; + text-decoration: inherit; +} + +header nav { + margin: 0 4.5em 0 auto; +} + +header nav ul, +footer ul { + display: flex; + flex-wrap: wrap; + height: 100%; + margin: 0; +} + +header nav li, +footer li { + margin: auto 0.5em; +} + +footer { + border: var(--grey) 1px solid; + height: 4em; + width: 100vw; +} + +footer ul { + justify-content: center; +} + +/* Main */ + +main { + margin: 4em auto 4em auto; +} + +main > section { + padding: 2rem 20rem; +}