Skip to content

Instantly share code, notes, and snippets.

@paolojoaquinp
Created October 19, 2021 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paolojoaquinp/ea24bbffe567efeb62942b01110dba17 to your computer and use it in GitHub Desktop.
Save paolojoaquinp/ea24bbffe567efeb62942b01110dba17 to your computer and use it in GitHub Desktop.
lego-superheroes/styles/phone.css
.navbar__content {
width: 100%;
display: flex;
justify-content: space-between;
padding: 10px 30px;
}
.navbar__menu ul {
margin: 30px 0 0 0;
opacity: 0;
position: absolute;
visibility: hidden;
width: auto;
display: flex;
flex-direction: column;
background: white;
transition: opacity 400ms, visibility 400ms,z-index 400ms;
transition-delay: 300ms;
z-index: 0;
}
.navbar__menu ul li {
display: block;
padding: 5px;
}
.navbar__menu {
height: auto;
width: 100px;
text-align: right;
}
.toggle__menu {
display: block;
}
.navbar__menu:hover > ul {
opacity: 1;
visibility: visible;
transition: opacity 400ms, visibility 400ms,z-index 400ms;
transition-delay: 300ms;
z-index: 1;
}
.main-content {
margin-left: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment