nav responsive

This commit is contained in:
VividTruthKeeper 2023-02-09 20:05:45 +05:00
parent 5a0b141ff0
commit 6be30389f5
2 changed files with 48 additions and 3 deletions

View File

@ -46,6 +46,11 @@ const Nav = () => {
</li>
</ul>
</div>
<div className="nav-burger">
<span className="line line-1"></span>
<span className="line line-2"></span>
<span className="line line-3"></span>
</div>
</div>
</div>
</nav>

View File

@ -150,12 +150,52 @@
}
}
// Media
.nav-burger {
display: none;
position: relative;
}
@media screen and (max-width: 800px) {
// Media
@media screen and (max-width: 850px) {
.nav-burger {
display: block;
width: 3rem;
height: 3rem;
.line {
position: absolute;
width: 100%;
border-radius: 1rem;
background: $black;
height: 0.33rem;
&-1 {
top: 15%;
}
&-2 {
top: 50%;
transform: translateY(-50%);
}
&-3 {
top: 75%;
}
}
}
.nav-left,
.nav-right {
display: none;
}
.nav-inner {
display: flex;
gap: 1.6rem;
justify-content: space-between;
padding: 2.4rem 0;
border-bottom: none;
}
.subnav-inner {
gap: 0.8rem;
padding: 2.4rem 0 0.8rem 0;
padding: 0.8rem 0;
padding-top: 0;
a {
padding: 0.8rem;