From 57b00f6c2806fafca399c0e1eb90d49cbf5db44c Mon Sep 17 00:00:00 2001 From: Lucas Date: Sat, 18 Feb 2023 13:51:17 +0000 Subject: [PATCH] Rework main layout --- public/css/style.css | 11 ++++++++--- views/layouts/main.tt | 7 ++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index c5e4d42..e55363f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -31,7 +31,9 @@ body, h1, -p { +main, +p, +section { margin: 0; } @@ -45,7 +47,9 @@ body { } h1, -p { +main, +p, +section { margin-bottom: 1.5rem; } @@ -79,7 +83,8 @@ nav { } .viewport { - margin: 0 auto; + margin-left: auto; + margin-right: auto; max-width: 60rem; } diff --git a/views/layouts/main.tt b/views/layouts/main.tt index 7148d58..6408d1b 100644 --- a/views/layouts/main.tt +++ b/views/layouts/main.tt @@ -7,7 +7,7 @@ -
+
- -
+
+
[% content -%] +