1 Star 0 Fork 39

天再确啊/OCDeer.css

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
navs.css 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
馒头拿来摸摸 提交于 2021-08-19 07:22 . add navs.css.
*{
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';
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/MTV168168/ocdeer.git
git@gitee.com:MTV168168/ocdeer.git
MTV168168
ocdeer
OCDeer.css
master

搜索帮助