app/assets/stylesheets/sidebar.scss
/*
* Sidebar
*/
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 100; /* Behind the navbar */
z-index: 1031;
font-size: .9rem;
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
.nav-link, .nav-brand {
color: #B4C3C1 !important;
}
.nav-link.active, .nav-brand.active {
color: #e1f4f2 !important;
}
.nav-link:hover, .nav-brand:hover {
color: #F0F9F8 !important;
}
.nav-brand {
padding-top: 8px;
}
.logo {
margin-bottom: 20px;
}
}
.sidebar-width {
flex: 0 0 13%;
max-width: 13%;
position: relative;
width: 100%;
padding-right: 7px;
padding-left: 7px;
}
.main-width {
flex: 0 0 86.7%;
max-width: 86.7%;
position: relative;
width: 100%;
}
.sidebar-sticky {
position: relative;
top: 0;
min-height: calc(100vh);
padding-top: .5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
@supports ((position: -webkit-sticky) or (position: sticky)) {
.sidebar-sticky {
position: -webkit-sticky;
position: sticky;
}
}
.sidebar .nav-link {
font-weight: 500;
color: #333;
}
.sidebar .nav-link .feather {
margin-right: 4px;
color: #999;
}
.sidebar .nav-link.active {
color: #007bff;
}
.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
color: inherit;
}
.sidebar-heading {
font-size: .75rem;
text-transform: uppercase;
}