|
78 | 78 |
|
79 | 79 | .nav {
|
80 | 80 | @include sidebar-width($sidebar-borders, $sidebar-width);
|
81 |
| - flex-direction: column !important; |
| 81 | + flex-direction: column; |
| 82 | + min-height: 100%; |
82 | 83 | }
|
83 | 84 |
|
84 | 85 | .nav-title {
|
|
148 | 149 | }
|
149 | 150 |
|
150 | 151 | &:hover {
|
151 |
| - color: $sidebar-nav-link-hover-color !important; |
152 |
| - background: $sidebar-nav-link-hover-bg !important; |
| 152 | + color: $sidebar-nav-link-hover-color; |
| 153 | + background: $sidebar-nav-link-hover-bg; |
153 | 154 | @include borders($sidebar-nav-link-hover-borders);
|
154 | 155 |
|
155 | 156 | i {
|
|
160 | 161 | background-image: $sidebar-nav-dropdown-indicator-hover;
|
161 | 162 | }
|
162 | 163 | }
|
| 164 | + |
| 165 | + @each $color, $value in $theme-colors { |
| 166 | + &.nav-link-#{$color} { |
| 167 | + background: $value; |
| 168 | + i { |
| 169 | + color: rgba(255,255,255,.7); |
| 170 | + } |
| 171 | + &:hover { |
| 172 | + background: darken($value,5%) !important; |
| 173 | + i { |
| 174 | + color: #fff; |
| 175 | + } |
| 176 | + } |
| 177 | + } |
| 178 | + } |
163 | 179 | }
|
164 | 180 |
|
165 | 181 | // ex. <a class="nav-link nav-dropdown-toggle" href="#">Components</a>
|
|
239 | 255 | padding: $sidebar-footer-padding-y $sidebar-footer-padding-x;
|
240 | 256 | background: $sidebar-footer-bg;
|
241 | 257 | }
|
| 258 | + |
| 259 | + .sidebar-minimizer { |
| 260 | + position: relative; |
| 261 | + flex: 0 0 $sidebar-minimizer-height; |
| 262 | + background-color: $sidebar-minimizer-bg; |
| 263 | + border: 0; |
| 264 | + |
| 265 | + &::before { |
| 266 | + position: absolute; |
| 267 | + top: 0; |
| 268 | + right: 0; |
| 269 | + width: $sidebar-minimizer-height; |
| 270 | + height: $sidebar-minimizer-height; |
| 271 | + content: ""; |
| 272 | + background-image: $sidebar-minimizer-indicator; |
| 273 | + background-repeat: no-repeat; |
| 274 | + background-position: center; |
| 275 | + background-size: $sidebar-minimizer-height / 4; |
| 276 | + transition: .3s; |
| 277 | + } |
| 278 | + |
| 279 | + &:focus, |
| 280 | + &.focus { |
| 281 | + outline: 0; |
| 282 | + } |
| 283 | + |
| 284 | + &:hover { |
| 285 | + background-color: $sidebar-minimizer-hover-bg; |
| 286 | + &::before { |
| 287 | + background-image: $sidebar-minimizer-hover-indicator; |
| 288 | + } |
| 289 | + } |
| 290 | + } |
242 | 291 | }
|
243 | 292 |
|
244 | 293 | @include media-breakpoint-up(lg) {
|
|
312 | 361 | display: none;
|
313 | 362 | }
|
314 | 363 |
|
| 364 | + .sidebar-minimizer::before { |
| 365 | + width: 100%; |
| 366 | + transform: rotate(-180deg); |
| 367 | + } |
| 368 | + |
315 | 369 | .nav-item {
|
316 | 370 | width: $sidebar-minimized-width;
|
317 | 371 | overflow: hidden;
|
|
0 commit comments