${version}
-
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index 885bc575..d82db135 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -234,3 +234,9 @@ body[data-md-url$="/cookbooks/"] .md-content {
width: 100%;
margin: auto;
}
+.md-search__scrollwrap {
+ width: 100% !important;
+}
+.md-nav--secondary .md-nav__title {
+ position: initial !important;
+}
diff --git a/docs/theme/partials/header.html b/docs/theme/partials/header.html
index a6d37ec6..3d760057 100644
--- a/docs/theme/partials/header.html
+++ b/docs/theme/partials/header.html
@@ -119,30 +119,38 @@
});
// on mouse out
document.getElementById('resources-list').addEventListener('mouseout', function() {
- // if not hovering over the sublist, uncheck the dropdown
+ // if not hovering over the sublist or the label, uncheck the dropdown
// wait 1 sec
setTimeout(function() {
- if (!document.querySelector('.resources-sublist:hover')) {
+ if (!document.querySelector('.resources-sublist:hover') && !document.querySelector('#resources-list:hover')) {
document.getElementById('dropdown-resources').checked = false;
}
- }, 500);
+ }, 350);
});
// if mouseout of sublist, uncheck immediately
document.querySelector('.resources-sublist').addEventListener('mouseout', function() {
- document.getElementById('dropdown-resources').checked = false;
+ setTimeout(function() {
+ if (!document.querySelector('.resources-sublist:hover') && !document.querySelector('#resources-list:hover')) {
+ document.getElementById('dropdown-resources').checked = false;
+ }
+ }, 450);
});
document.getElementById('products-list').addEventListener('mouseout', function() {
// if not hovering over the sublist, uncheck the dropdown
// wait 1 sec
setTimeout(function() {
- if (!document.querySelector('.products-sublist:hover')) {
+ if (!document.querySelector('.products-sublist:hover') && !document.querySelector('#products-list:hover')) {
document.getElementById('dropdown-products').checked = false;
}
}, 500);
});
// if mouseout of sublist, uncheck immediately
document.querySelector('.products-sublist').addEventListener('mouseout', function() {
- document.getElementById('dropdown-products').checked = false;
+ setTimeout(function() {
+ if (!document.querySelector('.products-sublist:hover') && !document.querySelector('#products-list:hover')) {
+ document.getElementById('dropdown-products').checked = false;
+ }
+ }, 500);
});