From a4c15b4c1527e29b05ccd65e50cfda2f4c339750 Mon Sep 17 00:00:00 2001 From: alifeee Date: Mon, 26 Aug 2024 13:10:41 +0100 Subject: [PATCH] make entire nav blob clickable --- public/stylesheet.css | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/stylesheet.css b/public/stylesheet.css index 61315d2..a47a7cd 100644 --- a/public/stylesheet.css +++ b/public/stylesheet.css @@ -146,14 +146,17 @@ header nav { } header nav li { line-height: 1; - padding: 1.5rem; position: relative; top: -1.5rem; } -header nav li.active { - background-color: var(--colour-unu-walo); +header nav li a { + padding: 1.5rem; + display: block; border-radius: var(--blob-border-radius-02); } +header nav li.active a { + background-color: var(--colour-unu-walo); +} header nav li.active a { color: var(--primary-700); } @@ -171,7 +174,7 @@ header nav a { content: attr(data-text); display: inline-block; font-family: "sitelen seli kiwen", sans-serif; - margin-right: .5rem; + margin-right: 0.5rem; text-align: center; width: 1.5rem; }