.layout-sidebar { position: sticky; left: 0; top: 6rem; height: calc(100vh - 9rem); user-select: none; transition: transform .4s cubic-bezier(.05,.74,.2,.99), opacity .3s; display: flex; flex-direction: column; padding: 0 0 0 0; flex: 0 0 250px; margin-right: 4rem; overflow: auto; .logo { display: flex; justify-content: center; } nav { padding: 0; margin: -.5rem 0 0 0; flex-grow: 1; } .layout-menu { list-style: none; margin: 0; padding: 0; > li { margin-bottom: .25rem; > button, > a { display: flex; width: 100%; align-items: center; padding: .5rem 0; color: var(--surface-900); font-weight: 600; transition: all .2s; .menu-icon { width: 2rem; height: 2rem; border-radius: var(--border-radius); margin-right: .5rem; border: 1px solid var(--surface-border); display: inline-flex; align-items: center; justify-content: center; transition: all .2s; i { color: var(--surface-700); transition: all .2s; } } .menu-toggle-icon { color: var(--surface-700); margin-left: auto; } &:hover { .menu-icon { i { color: var(--surface-900); } } .menu-toggle-icon { color: var(--surface-900); } } &.router-link-active { color: var(--primary-color); > .menu-icon { i { color: var(--primary-color); } } } } > div { ol { margin: 0 0 0 1.5rem; padding: .25rem 0; list-style: none; li { a { color: var(--surface-700); border-left: 1px solid var(--surface-border); transition: all .2s; font-weight: 400; display: flex; padding: .5rem .5rem .5rem 1rem; color: var(--surface-700); transition: all .2s; &:focus-visible { outline: 0 none; box-shadow: inset var(--focus-ring); } &:hover { color: var(--surface-900); border-left-color: var(--surface-500); } &.router-link-active { color: var(--primary-color); border-left-color: var(--primary-color); } } ol { margin: 0; padding: 0; } &:has(.menu-child-category) { margin-top: 1rem; } &:has(.menu-child-category):first-child { margin-top: 0rem; } } } } } .menu-child-category { display: flex; padding: .5rem .5rem .5rem 0; font-size: .875rem; font-weight: 600; letter-spacing: 1px; color: var(--surface-900); margin-bottom: .25rem; } } }