style: update nav list style to be more flexible

This commit is contained in:
satnaing
2023-09-24 10:09:48 +06:30
committed by Sat Naing
parent c516429e5b
commit 5171111f89
+3 -3
View File
@@ -147,11 +147,11 @@ const { activeNav } = Astro.props;
nav ul li a { 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; @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; @apply w-auto;
} }
nav ul li:nth-child(4), nav ul li:nth-last-child(1),
nav ul li:nth-child(5) { nav ul li:nth-last-child(2) {
@apply col-span-1; @apply col-span-1;
} }
nav a.active { nav a.active {