js menu burger

This commit is contained in:
2021-11-17 11:54:57 +01:00
parent b93bd15b78
commit 42a28c2e5a
5 changed files with 78 additions and 93 deletions
@@ -5,7 +5,7 @@
.layout-container {
position: absolute;
// position: absolute;
font-family: $font-family-default;
margin: none;
top: 0%;
@@ -57,69 +57,63 @@
// }
#block-burger {
z-index: 1;
background-color: $blue-light;
font-size: 0.7rem;
color: $white;
display: block;
width: 7rem;
height: 7rem;
margin-top: 0;
:hover{
cursor: pointer;
}
h2::after{
display: block;
font-family: 'Font Awesome';
content: "\f0c9";
height: 60px;
font-size: 5rem;
font-size: 1rem;
}
#block-burger-menu{
display: block;
// content: url(../../images/pictos/icons8-menu.svg);
margin-top: 0;
margin: 0;
align-self: center;
text-align: center;
height:7rem;
}
ul {
display: none;
.open{
width: 100vw;
position: relative;
bottom:8%;;
left: calc(-30vw + 50%);
display: block;
height: fit-content;
padding-bottom: 1rem;
padding-top: 1rem;
background-color: $blue-light;
line-height: 2rem;
list-style: none;
.ul1 .sous-liste{
left: calc(-50vw + 50%);
padding-top: 0;
a{
opacity: 1;
}
}
a{
color: $white;
font-weight: 800;
font-size: 1.7rem;
opacity: 0.7;
}
}
// ul {display: none;}
ul {
display: none;
width: 100vw;
position: relative;
bottom:8%;;
left: calc(-30vw + 50%);
height: fit-content;
padding-bottom: 1rem;
padding-top: 1rem;
background-color: $blue-light;
line-height: 2rem;
list-style: none;
.ul1 .sous-liste{
left: calc(-50vw + 50%);
padding-top: 0;
a{
opacity: 1;
}
}
a{
color: $white;
font-weight: 800;
font-size: 1.7rem;
opacity: 0.7;
}
}
}
}