File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/resources/sass/kms/partials/_sidebarNavigation.scss
.c-sidebar-navigation {
position: fixed;
overflow-x: hidden; // prevent overflowing of the divider lines and the backgrounds
height: calc(100vh - 100px - 90px - 50px);
width: 230px;
}
.c-sidebar-navigation__list {
margin: 0;
padding: 0;
list-style: none;
}
.c-sidebar-navigation__list--sub {
display: none;
box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, .7);
background-color: rgba(black, 0.25);
&.is-open {
display: block;
}
}
.c-sidebar-navigation__separator {
height: 49px;
}
.c-sidebar-navigation__item {
position: relative;
font-size: 0.7rem;
& + & {
&:before {
position: absolute;
left: -50vw;
top: 0;
content: '';
display: block;
width: 200vw;
height: 1px;
background-color: rgba(255, 255, 255, 0.2);
}
}
}
.c-sidebar-navigation__link {
text-decoration: none;
}
.c-sidebar-navigation__list-name {
cursor: pointer;
}
.c-sidebar-navigation__name {
position: relative;
z-index: 1;
padding: 14px 25px;
color: white;
&:before {
content: '';
display: block;
position: absolute;
z-index: -2;
left: -50vw;
top: 0;
width: 200vw;
height: 100%;
background-color: transparent;
transition: background-color 0.4s;
}
&:hover {
.c-sidebar-navigation__item:hover & {
background-color: rgba($darkBlue, 0.4);
}
}
.c-sidebar-navigation__item.is-active > .c-sidebar-navigation__link & {
&:before {
background-color: $blue;
}
}
.c-sidebar-navigation__list--sub & {
padding-left: 40px;
}
.c-sidebar-navigation__list--sub .c-sidebar-navigation__list--sub {
padding-left: 55px;
}
}
.c-sidebar-navigation__drop-down {
position: absolute;
top: 22px;
right: 20px;
border-style: solid;
border-width: 4px 5px 0 5px;
border-color: white transparent transparent transparent;
transform: rotate(0deg);
opacity: 0.5;
}