From 5171111f89fee43eb6d17b16f189cb80c897187f Mon Sep 17 00:00:00 2001 From: satnaing Date: Sun, 24 Sep 2023 10:09:48 +0630 Subject: [PATCH] style: update nav list style to be more flexible --- src/components/Header.astro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index 2fb3802..77e0c41 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -147,11 +147,11 @@ const { activeNav } = Astro.props; nav ul li a { @apply w-full px-4 py-3 text-center font-medium hover:text-skin-accent sm:my-0 sm:px-2 sm:py-1; } - nav ul li:nth-child(4) a { + nav ul li:nth-last-child(2) a { @apply w-auto; } - nav ul li:nth-child(4), - nav ul li:nth-child(5) { + nav ul li:nth-last-child(1), + nav ul li:nth-last-child(2) { @apply col-span-1; } nav a.active {