Bonsoir tout le monde,
Je ne trouve pas comment rajouter un ombré aux trois lignes d’un menu "hamburger"
Est-ce possible ?
Au cas où, voici mes CSS
.mynav-container .hamburger-lines
{
display: block;
height: 26px;
width: 32px;
position: absolute;
top: 17px;
left: 20px;
z-index: 2;
display: flex;
flex-direction: column;
justify-content: space-between;
text-decoration:none;
}
.mynav-container .hamburger-lines .line
{
display: block;
height: 4px;
width: 100%;
border-radius: 10px;
background: white;
}
nav .mynav-container .hamburger-lines .line1
{
transform-origin: 0% 0%;
transition: transform 0.4s ease-in-out;
}
nav .mynav-container .hamburger-lines .line2
{
transition: transform 0.2s ease-in-out;
transition: transform 0.4s ease-in-out;
}
nav .mynav-container .hamburger-lines .line3
{
transform-origin: 0% 100%;
transition: transform 0.4s ease-in-out;
}
nav .mynavbar .menu-items
{
padding-top: 120px;
background-color: #0e2431;
opacity: 0.5;
height: 100vh;
width: 80%;
transform: translate(-150%);
display: flex;
flex-direction: column;
margin-left: 10%;
margin-right: 10%;
transition: transform 0.5s ease-in-out;
text-align: left;
list-style-type:none;
text-decoration:none;
color: white;
padding-left: 20px;
line-height: 150%;
text-decoration:none;
}
nav .mynavbar .menu-items li
{
margin-bottom: 1.2rem;
font-size: 1rem;
font-weight: 500;
text-decoration:none;
text-align: left;
margin-left: 10px;
left: 0px;
}
Merci beaucoup, bonne fin de soirée
+0
-0