Media query

burgermenu
E. Almqvist 2 years ago
parent 2b9dc5d191
commit 655bd41012
  1. 18
      components/burgermenu.tsx
  2. 8
      styles/globals.css

@ -9,16 +9,28 @@ const MenuLine = styled.div`
&:not(:last-child) {
margin-bottom: .4rem;
}
}
`
const BurgerContainer = styled.div`
display: none;
flex-direction: column;
@media screen and (max-width: 960px) {
display: flex;
nav {
display: none;
}
}
`
const Menu = () => {
return (
<div className="burger-container">
<BurgerContainer>
<MenuLine />
<MenuLine />
<MenuLine />
</div>
</BurgerContainer>
)
}

@ -68,11 +68,3 @@ em {
text-shadow: var(--emph-shadow) currentColor;
}
@media only screen and (max-width: 940px) {
.burger-container {
display: block;
background-color: lightblue;
}
}

Loading…
Cancel
Save