From 8e07a2dcd92ba7f930f145aae3c7326a4128246a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 17 Aug 2020 16:13:30 +0200 Subject: [PATCH] Improve margin on mobile displays --- articles/static/style.css | 10 +++++++--- articles/templates/articles/base.html | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/articles/static/style.css b/articles/static/style.css index 1f30365..8b97a43 100644 --- a/articles/static/style.css +++ b/articles/static/style.css @@ -7,13 +7,17 @@ /*--background2: #f7f7f7;*/ } -body { - max-width: 640px; +html { + font-size: 110%; + max-width: calc(640px + 2em); margin: 8px auto 6em; +} + +body { + margin: 0 1em; font-family: Arial, sans-serif; color: var(--main); background-color: var(--background); - font-size: 110%; } p { diff --git a/articles/templates/articles/base.html b/articles/templates/articles/base.html index baa1115..9e98461 100644 --- a/articles/templates/articles/base.html +++ b/articles/templates/articles/base.html @@ -3,6 +3,7 @@ + {% block title %}Home{% endblock %} | Gab's Notes