From 7829626db01f129cefdbeeae9c817faeef40b63d Mon Sep 17 00:00:00 2001 From: sentriz Date: Sat, 6 Jul 2019 21:52:46 +0100 Subject: [PATCH] use sam padding for body as content --- server/assets/stylesheets/main.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/assets/stylesheets/main.css b/server/assets/stylesheets/main.css index 50ca7ef..44a0a44 100644 --- a/server/assets/stylesheets/main.css +++ b/server/assets/stylesheets/main.css @@ -1,7 +1,11 @@ +:root { + --pad-size: 1.75rem; +} + body { max-width: 780px; margin: 0 auto; - padding: 0 20px; + padding: 0 var(--pad-size); line-height: 1rem; overflow-y: scroll; } @@ -90,7 +94,7 @@ i.mdi { } #content > * { - margin: 2rem 0; + margin: var(--pad-size) 0; } #header {