|
|
@ -16,10 +16,13 @@ const BurgerContainer = styled.div<{open: boolean}>` |
|
|
|
display: none; |
|
|
|
display: none; |
|
|
|
width: 1.8rem; |
|
|
|
width: 1.8rem; |
|
|
|
height: 1.8rem; |
|
|
|
height: 1.8rem; |
|
|
|
background-color: yellow; |
|
|
|
|
|
|
|
flex-direction: column; |
|
|
|
flex-direction: column; |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
div { |
|
|
|
|
|
|
|
transition: .2s; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
&:hover { |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
} |
|
|
@ -28,14 +31,24 @@ const BurgerContainer = styled.div<{open: boolean}>` |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
nav { |
|
|
|
nav { |
|
|
|
display: none; |
|
|
|
display: none !important; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
${({open}) => open && css` |
|
|
|
${({open}) => open && css` |
|
|
|
background-color: red; |
|
|
|
div { |
|
|
|
div:not(:last-child) { |
|
|
|
position: absolute; |
|
|
|
background-color: green; |
|
|
|
height: 4px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
div:nth-child(1) { |
|
|
|
|
|
|
|
transform: rotate(45deg) translate(.2rem, .2rem); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
div:nth-child(2) { |
|
|
|
|
|
|
|
transform: rotate(-45deg) translate(-.18rem, .2rem); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
div:last-child { |
|
|
|
div:last-child { |
|
|
|