Skip to content

Commit 5171111

Browse files
committed
style: update nav list style to be more flexible
1 parent c516429 commit 5171111

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Header.astro

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ const { activeNav } = Astro.props;
147147
nav ul li a {
148148
@apply w-full px-4 py-3 text-center font-medium hover:text-skin-accent sm:my-0 sm:px-2 sm:py-1;
149149
}
150-
nav ul li:nth-child(4) a {
150+
nav ul li:nth-last-child(2) a {
151151
@apply w-auto;
152152
}
153-
nav ul li:nth-child(4),
154-
nav ul li:nth-child(5) {
153+
nav ul li:nth-last-child(1),
154+
nav ul li:nth-last-child(2) {
155155
@apply col-span-1;
156156
}
157157
nav a.active {

0 commit comments

Comments
 (0)