diff --git a/_src/_assets/javascripts/bigchain/dropdowns.js b/_src/_assets/javascripts/bigchain/dropdowns.js index 0070fd0..1724a8e 100644 --- a/_src/_assets/javascripts/bigchain/dropdowns.js +++ b/_src/_assets/javascripts/bigchain/dropdowns.js @@ -2,8 +2,8 @@ //=include bootstrap/js/dist/util.js //=include bootstrap/js/dist/dropdown.js -$('body').on('mouseenter mouseleave', '.dropdown', function(e) { - var _d = $(e.target).closest('.dropdown') +$('body').on('mouseenter mouseleave', '.dropdown--hover', function(e) { + var _d = $(e.target).closest('.dropdown--hover') _d.addClass('show') diff --git a/_src/_assets/styles/bigchain/_dropdowns.scss b/_src/_assets/styles/bigchain/_dropdowns.scss index 4919776..5ac7003 100644 --- a/_src/_assets/styles/bigchain/_dropdowns.scss +++ b/_src/_assets/styles/bigchain/_dropdowns.scss @@ -84,12 +84,12 @@ } .dropdown-menu.show, -.dropdown:hover > .dropdown-menu { +.dropdown--hover:hover > .dropdown-menu { transform: scale(1, 1); opacity: 1; } -.dropdown > .dropdown-toggle:active { +.dropdown--hover > .dropdown-toggle:active { // Without this, clicking will make it sticky pointer-events: none; } diff --git a/_src/styleguide.md b/_src/styleguide.md index 6a80d74..04f0cab 100644 --- a/_src/styleguide.md +++ b/_src/styleguide.md @@ -313,7 +313,7 @@ Logo can be used with a base class and modifier classes for size & color:
``` + +