.header { --nav-item-padding: 0.5rem; position: absolute; z-index: 20; /* stretch */ left: 0; right: 0; color: var(--colorNeutralLight); } .nav { display: flex; flex-direction: row; justify-content: space-between; max-width: calc(var(--maxWidth) + (var(--nav-item-padding) * 2)); margin: 0 auto; padding: 0; line-height: 3rem; } .navPart1, .navPart2 { display: flex; flex-direction: row; } .link { display: flex; align-items: center; padding: 0 var(--nav-item-padding); color: var(--colorNeutralLight); text-decoration: none !important; opacity: 0.6; transition: 0.4s all; border-bottom: 1px solid transparent; &:hover, &:focus, &.active { color: inherit; opacity: 1; border-bottom-color: var(--colorNeutralLight); } } .link svg { fill: currentColor; opacity: 0.5; /*margin-right: 0.5rem;*/ width: 14px; height: 14px; vertical-align: middle; }