From 0131a453c359900b5daf5b4f2fe93c6785a1fd5d Mon Sep 17 00:00:00 2001 From: Snuggle <^-^@snugg.ie> Date: Fri, 17 Jan 2025 21:01:41 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Improvements=20to=20critical=20C?= =?UTF-8?q?SS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/head.html | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a4b1db2..9694035 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -79,8 +79,8 @@ #nav { background-color: #ffffff; color: #636363; - position: absolute; width: 64em; + position: absolute; max-width: calc(100% - 4em); background-color: #f7f7f7; border-top-left-radius: 0.25em; @@ -88,6 +88,20 @@ cursor: default; text-align: center; } + +@media screen and (max-width: 736px) { + #nav { + display: block; + position: relative; + max-width: 100%; + width: 100%; + margin-bottom: -1.3em; + } + + #main { + border-radius: 0; + } +} .toggle-theme-dark { position: absolute; right: 1%; @@ -121,9 +135,4 @@ /* border-bottom: dotted 1px; */ color: inherit; } -#nav { - display: block; - max-width: calc(100% - 4em); - width: calc(100% - 4em); -}