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