MDL-43977 theme_bootstrapbase: small fix to make custom menu work with JS disabled
This commit is contained in:
@@ -175,10 +175,17 @@ img.icon-pre {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
// Allow the custom menu to expand/collapse when the user hovers over it with JS disabled.
|
||||
body:not(.jsenabled) .dropdown:hover > .dropdown-menu {
|
||||
display: block;
|
||||
margin-top: -6px; // We need to move it up to counter the arrows as they introduce hover bugs.
|
||||
}
|
||||
|
||||
// Extends bootstrapbase/less/bootstrap/navbar.less
|
||||
// to enable scroll in the language menu.
|
||||
body:not(.jsenabled) .langmenu:hover > .dropdown-menu,
|
||||
.langmenu.open > .dropdown-menu {
|
||||
display: block;
|
||||
max-height: 150px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user