Skip to content

Commit

Permalink
Make header links white with orange on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Sep 14, 2021
1 parent fab52dd commit 444c0d0
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,29 @@ const HeaderContainer = styled.header`
.astropy-link {
margin-left: auto;
}
a {
color: var(--astropy-neutral-900);
}
a:hover {
text-decoration: none;
}
`;

const NavItem = styled.div`
transition: all 0.2s ease-in-out;
margin: 0 1em;
border-bottom: 2px solid transparent;
&:hover {
border-bottom: 2px solid var(--astropy-primary-color);
color: var(--astropy-primary-color);
}
.astropy-link {
margin-left: auto;
}
`;

/*
Expand All @@ -58,9 +77,9 @@ export default function NavHeader() {
<Link to="/contributing">Contribute</Link>
</NavItem>
</nav>
<a className="astropy-link" href="https://astropy.org">
Astropy Project
</a>
<NavItem className="astropy-link">
<a href="https://astropy.org">Astropy Project</a>
</NavItem>
</HeaderContainer>
</>
);
Expand Down

0 comments on commit 444c0d0

Please sign in to comment.