diff --git a/_includes/header.css b/_includes/header.css index 12c4968..66d6183 100644 --- a/_includes/header.css +++ b/_includes/header.css @@ -30,7 +30,7 @@ header { margin-left: 1.9rem; } -#mainNav a { +.nav-item { position: relative; font-size: 16px; font-family: Aileron; @@ -41,7 +41,7 @@ header { text-decoration: none; } -#mainNav a::after { +.nav-item::after { content: ""; position: absolute; background: var(--color-primary); @@ -53,7 +53,7 @@ header { transition: opacity .3s ease-out; } -#mainNav a:hover::after, -#mainNav .nav-active a::after { +.nav-item:hover::after, +.nav-item.active::after { opacity: 1; } diff --git a/_includes/header.njk b/_includes/header.njk index 0ac30f6..6c8f114 100644 --- a/_includes/header.njk +++ b/_includes/header.njk @@ -7,8 +7,9 @@ {% set navPages = collections.mainNav | pageLang | eleventyNavigation %}