MDL-43977 theme_bootstrapbase: small fix to make custom menu work with JS disabled

This commit is contained in:
Sam Hemelryk
2014-02-10 08:37:06 +13:00
parent 974c2cdc03
commit 2ea3e43342
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -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