show subnavigation only when parent is active

This commit is contained in:
Hans Pagel 2020-08-28 13:22:30 +02:00
parent 20237f353b
commit a3b5731a06

View File

@ -25,12 +25,17 @@ $menuBreakPoint: 750px;
}
&__link-list &__link-list {
display: none;
padding-left: 1rem;
margin-top: 0.5rem;
margin-bottom: 1.5rem;
border-left: 2px solid rgba($colorBlack, 0.1);
}
.active + &__link-list {
display: block;
}
&__link {
display: block;
padding: 0.1rem 0.5rem;