Moved ThemeSelector to NavBar
Added NavWrap so the ThemeSelector can be placed in a corner
This commit is contained in:
parent
8ecf388122
commit
e15a0c16b8
4 changed files with 25 additions and 15 deletions
components/styles
|
@ -5,11 +5,18 @@ interface ActivePropType {
|
|||
active?: false | true;
|
||||
}
|
||||
|
||||
export const NavWrap = styled.div`
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid ${({ theme }) => theme.colors.primary};
|
||||
`
|
||||
|
||||
export const NavBar = styled.nav`
|
||||
display: flex;
|
||||
flex: 1;
|
||||
padding: 2rem 0;
|
||||
border-bottom: 1px solid ${({ theme }) => theme.colors.primary};
|
||||
flex-wrap: nowrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
|
|
@ -9,6 +9,7 @@ interface ActivePropType {
|
|||
}
|
||||
|
||||
export const ThemeDropDown = styled.div`
|
||||
margin-left: 1%;
|
||||
min-width: 180px;
|
||||
color: ${({ theme }) => theme.colors.primary}
|
||||
display: flex;
|
||||
|
@ -16,7 +17,7 @@ export const ThemeDropDown = styled.div`
|
|||
`
|
||||
|
||||
export const ThemeDropDownButton = styled.button`
|
||||
width: 100%;
|
||||
width: 90%;
|
||||
border: 1px solid;
|
||||
background-color: ${({ theme }) => theme.colors.background};
|
||||
padding: 0.2rem 0.5rem;
|
||||
|
@ -32,7 +33,7 @@ export const ThemeDropDownButton = styled.button`
|
|||
`
|
||||
|
||||
export const ThemeDropDownOptions = styled.div<DisplayPropType>`
|
||||
|
||||
position: absolute;
|
||||
color: ${({ theme }) => theme.colors.primary};
|
||||
background-color: ${({ theme }) => theme.colors.background};
|
||||
display: ${ props => props.show ? "flex" : "none" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue