Commit a053229f authored by Damyon Wiese's avatar Damyon Wiese
Browse files

MDL-56690 theme_boost: Allow menus to scroll in the header

The header is fixed - so if menus in the header are longer than the page, you can't scroll
to the bottom of the menu. This sets max height on the menus to the viewport height - the navbar height and sets them to scroll
parent cad8adcc
......@@ -163,3 +163,9 @@ body:not(.jsenabled) .langmenu:hover > .dropdown-menu,
ol {
margin: 0 0 $line-height-base / 2 2.5em;
// Set menus in the fixed header to scroll vertically when they are longer than the page.
.navbar-static-top .dropdown .dropdown-menu {
max-height: calc(100vh - #{$navbar-height});
overflow-y: auto;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment