Deeper nested menus are displayed depending on the size of the device. Stacked submenus on larger screens are unfriendly for the reader. People stumble over what’s underneath. So let us soften the stacking a bit.
Solution:
- Just add the following code to your
_bscore_custom.scs
file:
@include media-breakpoint-up(lg) {
ul.depth_1 {
left: 25% !important;
top: 0% !important;
}
ul.depth_2 {
left: 25% !important;
top: 0% !important;
}
ul.depth_3 {
left: 25% !important;
top: 0% !important;
}
ul.depth_4 {
left: 25% !important;
top: 0% !important;
}
}
Background
Up to the bootstrap breakpoint LG
, the submenus are embedded into the menus by shifting the following elements downwards. So, nothing is hidden. The reader sees directly what is meant. Above the bootstrap breakpoint LG
, the situation is different: Here, the submenus are stacked on top of each other. This is distracting. The reader first thinks about what is underneath. But if we move the submenus a little right, however, the previous remains recognizable although the reader can focus on the new.