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