Слияние кода завершено, страница обновится автоматически
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
/*navs-1*/
.container{
position: relative;
}
.container .navs-1{
position: relative;
width: 80px;
height: 420px;
background: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
transition: 0.5s;
}
.container .navs-1.active{
width: 300px;
}
.container .navs-1 ul{
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.container .navs-1 ul li{
position: relative;
list-style: none;
width: 100%;
}
.container .navs-1 ul li:hover{
background: #efefef;
}
.container .navs-1 ul li a{
position: relative;
display: block;
width: 100%;
display: flex;
text-decoration: none;
color: #6843d1;
font-weight: 500;
}
.container .navs-1 ul li a .icon{
position: relative;
display: block;
min-width: 80px;
height: 60px;
line-height: 60px;
text-align: center;
}
.container .navs-1 ul li a .icon .fa{
font-size: 24px;
}
.container .navs-1 ul li a .title{
position: relative;
display: block;
height: 60px;
line-height: 60px;
white-space: nowrap;
}
.toggle{
position: absolute;
top: calc(50% - 20px);
right: -20px;
width: 40px;
height: 40px;
background: #f5f5f5;
cursor: pointer;
border: 5px solid #ffffff;
border-radius: 50%;
}
.toggle::before{
content: '\f054';
font-family: fontAwesome;
position: absolute;
width: 100%;
height: 100%;
line-height: 35px;
text-align: center;
font-size: 16px;
color: #6843d1;
}
.toggle.active::before{
content: '\f053';
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )