From a6979b8d233c8f2bd8886547890a74493d0a9405 Mon Sep 17 00:00:00 2001 From: asus Date: Wed, 6 Dec 2023 16:10:15 +0100 Subject: [PATCH] better nav font size for small screens --- styles/elements/nav.css | 3 ++- styles/text.css | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/styles/elements/nav.css b/styles/elements/nav.css index 81776a7..c23bd0f 100644 --- a/styles/elements/nav.css +++ b/styles/elements/nav.css @@ -8,10 +8,11 @@ nav { background-color: #f6f6f6; z-index: 1; width: 100vw; + font-size: min(4vw, 1.5rem); } nav a { position: relative; - padding: 10px 20px; + padding: 10px min(5%, 20px); height: fit-content; text-decoration: none; color: inherit; diff --git a/styles/text.css b/styles/text.css index a117218..9b25f3d 100644 --- a/styles/text.css +++ b/styles/text.css @@ -6,8 +6,6 @@ font-weight: normal; font-style: normal; } -/* -*/ body, pre { font-family: "notomono", monospace; font-size: 1.5rem;