Centered Navbar using Placeholder StyleSelector
This commit is contained in:
parent
e15a0c16b8
commit
dd1ab4bad9
4 changed files with 12 additions and 11 deletions
components/styles
|
@ -14,6 +14,7 @@ export const NavWrap = styled.div`
|
|||
`
|
||||
|
||||
export const NavBar = styled.nav`
|
||||
margin-right: 1%;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
padding: 2rem 0;
|
||||
|
@ -30,6 +31,7 @@ export const NavLink = styled(Link)<ActivePropType>`
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
transition: color 0.15s ease, border-color 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
color: ${({ theme }) => theme.colors.secondary};
|
||||
|
|
|
@ -23,11 +23,9 @@ export const ThemeDropDownButton = styled.button`
|
|||
padding: 0.2rem 0.5rem;
|
||||
cursor: pointer;
|
||||
color: ${({ theme }) => theme.colors.primary};
|
||||
transition: color 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
color: ${({ theme }) => theme.colors.secondary};
|
||||
}
|
||||
&:focus {
|
||||
&:focus,:hover {
|
||||
color: ${({ theme }) => theme.colors.secondary};
|
||||
}
|
||||
`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue