From 50ca3b56d0f3ff83c052469e15a540be1892e488 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Fri, 11 Dec 2020 12:06:25 +0100 Subject: [PATCH] Simple layout using CSS grid --- static/style.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/static/style.css b/static/style.css index 2247b82..4d67c8f 100644 --- a/static/style.css +++ b/static/style.css @@ -7,4 +7,19 @@ body { font-family: newpx; font-size: 12pt; line-height: 1.5; + + max-width: 50em; + margin: 0 auto; + padding: 1em; + + display: grid; + grid-template-columns: 10em auto; + grid-column-gap: 2em; +} + +header { + grid-column: 1/-1; + padding: 2rem 0; + font-weight: bold; + font-size: 1.5em; }