// scss-lint:disable NestingDepth, SelectorDepth .sidebar { display: flex; flex-direction: column; padding: $sidebar-padding; color: $sidebar-color; background: $sidebar-bg; @include borders($sidebar-borders); .sidebar-close { position: absolute; right: 0; display: none; padding: 0 $spacer; font-size: 24px; font-weight: 800; line-height: $navbar-height; color: $sidebar-color; background: 0; border: 0; opacity: .8; &:hover { opacity: 1; } } // Will be added soon // .sidebar-brand { } .sidebar-header { flex: 0 0 $sidebar-header-height; padding: $sidebar-header-padding-y $sidebar-header-padding-x; text-align: center; background: $sidebar-header-bg; } .sidebar-form .form-control { color: $sidebar-form-color; background: $sidebar-form-bg; border: $sidebar-form-border; &::placeholder { color: $sidebar-form-placeholder-color; } } .sidebar-nav { position: relative; flex: 1; overflow-x: hidden; overflow-y: auto; -ms-overflow-style: -ms-autohiding-scrollbar; @include sidebar-width($sidebar-borders, $sidebar-width); &::-webkit-scrollbar { position: absolute; width: 10px; margin-left: -10px; -webkit-appearance: none; } &::-webkit-scrollbar-track { background-color: lighten($sidebar-bg, 5%); border-right: 1px solid darken($sidebar-bg, 5%); border-left: 1px solid darken($sidebar-bg, 5%); } &::-webkit-scrollbar-thumb { height: 50px; background-color: darken($sidebar-bg, 10%); background-clip: content-box; border-color: transparent; border-style: solid; border-width: 1px 2px; } } .nav { @include sidebar-width($sidebar-borders, $sidebar-width); flex-direction: column; min-height: 100%; } .nav-title { padding: $sidebar-nav-title-padding-y $sidebar-nav-title-padding-x; font-size: 11px; font-weight: 600; color: $sidebar-nav-title-color; text-transform: uppercase; } .nav-divider, .divider { height: 10px; } .nav-item { position: relative; margin: 0; transition: background .3s ease-in-out; } .nav-dropdown-items { max-height: 0; padding: 0; margin: 0; overflow-y: hidden; transition: max-height .3s ease-in-out; .nav-item { padding: 0; list-style: none; } } .nav-link { display: block; padding: $sidebar-nav-link-padding-y $sidebar-nav-link-padding-x; color: $sidebar-nav-link-color; text-decoration: none; background: $sidebar-nav-link-bg; @include borders($sidebar-nav-link-borders); @if $enable-sidebar-nav-rounded { border-radius: $border-radius; } i { display: inline-block; width: 20px; margin: 0 ($sidebar-nav-link-padding-x / 2) 0 0; font-size: 14px; color: $sidebar-nav-link-icon-color; text-align: center; } .badge { float: right; margin-top: 2px; } &.active { color: $sidebar-nav-link-active-color; background: $sidebar-nav-link-active-bg; @include borders($sidebar-nav-link-active-borders); i { color: $sidebar-nav-link-active-icon-color; } } &:hover { color: $sidebar-nav-link-hover-color; background: $sidebar-nav-link-hover-bg; @include borders($sidebar-nav-link-hover-borders); i { color: $sidebar-nav-link-hover-icon-color; } &.nav-dropdown-toggle::before { background-image: $sidebar-nav-dropdown-indicator-hover; } } @each $color, $value in $theme-colors { &.nav-link-#{$color} { background: $value; i { color: rgba(255,255,255,.7); } &:hover { background: darken($value,5%) !important; i { color: #fff; } } } } } // ex. Components .nav-dropdown-toggle { position: relative; &::before { position: absolute; top: 50%; right: $sidebar-nav-link-padding-x; display: block; width: 8px; height: 8px; padding: 0; margin-top: -4px; content: ""; background-image: $sidebar-nav-dropdown-indicator; background-repeat: no-repeat; background-position: center; transition: transform .3s; } } // ex.