admin管理员组文章数量:1292870
My UI sidebar looks like this:
I want it to look like this:
this is my css:
.sidebar-layout {
display: flex;
flex-direction: column;
padding: 0;
min-height: inherit;
overflow: auto;
user-select: none;
@extend .bg-white;
@extend .border-end;
}
ul.sidebar-menu {
font-size: $font-size-sm;
list-style-type: none;
padding: .5rem;
margin: 0;
li {
& > a {
border-radius: .25rem;
color: $dark;
display: block;
padding: .25rem .5rem;
text-decoration: none;
transition: all 0.15s ease-in-out;
&:hover {
background-color: rgba(100, 200, 230, .15);
}
&.active {
background-color: rgba(100, 200, 230, .25);
}
}
}
li + li {
margin-top: .25rem;
}
}
How to achieve the required UI design for sidebar?
本文标签: sidebarUI related concern with using ltulgt and ltligtStack Overflow
版权声明:本文标题:sidebar - UI related concern with using <ul> and <li> - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741564987a2385669.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论