From dc13630964d32f548167fdd609a5bdc7b468de70 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Feb 2021 11:46:58 +0100 Subject: [PATCH] adding the meta viewport tag means more css elements need to be adjusted; leaving this for when there is more time --- themes/default/static/css/main.css | 31 +++++++++++++++++++++++++++--- themes/default/templates/base.html | 7 ++++--- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/themes/default/static/css/main.css b/themes/default/static/css/main.css index 8bc2561..ce0d5cd 100644 --- a/themes/default/static/css/main.css +++ b/themes/default/static/css/main.css @@ -227,8 +227,6 @@ p { word-break: break-word; } - -/* Layout phone */ @media (max-width:770px) { nav#menu li { width: 50vw; @@ -247,7 +245,6 @@ p { } -/* Layout tablet */ @media (max-width:1024px) { body { margin-left: 13vw; @@ -256,4 +253,32 @@ p { nav#menu li { height: 14vw; } +} */ + +/* @media (max-width:770px) { + nav#menu li { + width: 50vw; + height: 24vw; + font-size: 2em; + margin: 1em 0.1em; + } + + header#banner h1 { + font-size: 10vw; + } + + body{ + margin-left: 9.4vw; + } + } + +@media (max-width:1024px) { + body { + margin-left: 13vw; + } + + nav#menu li { + height: 14vw; + } +} */ diff --git a/themes/default/templates/base.html b/themes/default/templates/base.html index 7fd1ea8..02d1d08 100644 --- a/themes/default/templates/base.html +++ b/themes/default/templates/base.html @@ -6,15 +6,16 @@ + {% endblock head %} - + - +