Files
bigredbutton/css/menu.css
2024-09-17 23:26:37 +02:00

108 lines
2.2 KiB
CSS

.menu-container{
position: fixed;
top: 50px;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Poppins';
z-index: 500;
}
.button{
position: relative;
background: #1b1b1b;
color: #fff;
font-size: 20px;
padding: 8px 20px;
width: 150px;/* 100% */
line-height: 30px;
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 25px;
cursor: pointer;
transition: width .4s;
}
.button.expand{
width: 100%;
}
.fas{
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.menu-container .button span svg{
position: absolute;
margin-right: 15px;
transition: 200ms;
}
.menu-container .button span svg:nth-child(1){opacity:1;}
.menu-container .button.expand span svg:nth-child(1){opacity:0;}
.menu-container .button span svg:nth-child(2){opacity:0;}
.menu-container .button.expand span svg:nth-child(2){opacity:1;}
#ula{
list-style: none;
position: absolute;
top: 65px;
display: flex;
flex-direction: row;
background: #1b1b1b;
width: 100%;
text-align: center;
border-radius: 10px;
/*display: none;*/
box-shadow: 0 3px 6px rgba(0,0,0,.3);
padding-inline-start: 0px;
}
#ula:before{
position: absolute;
content: '';
width: 20px;
height: 20px;
background: #1b1b1b;
top: -10px;
right: 15px;
transform: rotate(45deg);
z-index: -1;
}
#ula li{
line-height: 35px;
cursor: pointer;
border-right: 1px solid rgba(255,255,255,.1);
width: 25%;
}
#ula li:hover:first-child{
border-radius: 10px 0 0 10px;
}
#ula li:hover:last-child{
border-radius: 0 10px 10px 0;
}
#ula li:hover{
box-shadow: inset 0 0 5px #33ff33,
inset 0 0 10px #66ff66;
}
#ula li:last-child{
border-right: none;
}
#ula li a{
display: flex;
justify-content: center;
align-items: center;
width: 74px;
height: 74px;
color: #fff;
fill: #fff;
text-decoration: none;
}
#ula li a svg{
width: 50%;
height: 50%;
color: #fff;
}
#ula li:hover a svg{
color: #44dd44;
}