diff --git a/docs/javascripts/cookbooks-card.js b/docs/javascripts/cookbooks-card.js index f2f244ff..8ceb0c32 100644 --- a/docs/javascripts/cookbooks-card.js +++ b/docs/javascripts/cookbooks-card.js @@ -59,7 +59,7 @@ document.addEventListener("DOMContentLoaded", function () {
+
${authorAvatarsHTML}
${authorNamesHTML}
`; element.innerText = ` -
@@ -105,13 +108,14 @@ document.addEventListener("DOMContentLoaded", function () {
${authorsHTML} -
+
  ${version}
-
+
${labelHTML}
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); });