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

Conflicts:
	theme/bootstrapbase/style/moodle.css
This commit is contained in:
Sam Hemelryk
2014-02-10 18:18:44 +08:00
committed by Marina Glancy
parent f7dea8ae75
commit ccf9c3300e
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