From: Jeremy Thomas Date: Mon, 24 Jul 2017 10:34:43 +0000 (+0200) Subject: Add more dropdown doc X-Git-Tag: 0.4.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d22d97dffbc91c3cdf537c50043b4c44a46950;p=thirdparty%2Fbulma.git Add more dropdown doc --- diff --git a/docs/_javascript/main.js b/docs/_javascript/main.js index 9a45848aa..2517f490f 100644 --- a/docs/_javascript/main.js +++ b/docs/_javascript/main.js @@ -2,7 +2,7 @@ document.addEventListener('DOMContentLoaded', () => { // Dropdowns - const $dropdowns = getAll('.dropdown'); + const $dropdowns = getAll('.dropdown:not(.is-hoverable)'); if ($dropdowns.length > 0) { $dropdowns.forEach($el => { diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index 298efb3d4..a4a7dcd0f 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -3816,11 +3816,16 @@ a.dropdown-item { white-space: nowrap; } -a.dropdown-item:hover, a.dropdown-item.is-active { +a.dropdown-item:hover { background-color: whitesmoke; color: #0a0a0a; } +a.dropdown-item.is-active { + background-color: #00d1b2; + color: #fff; +} + .dropdown-divider { background-color: #dbdbdb; border: none; diff --git a/docs/documentation/components/dropdown.html b/docs/documentation/components/dropdown.html index 11a544b0e..311ea8e87 100644 --- a/docs/documentation/components/dropdown.html +++ b/docs/documentation/components/dropdown.html @@ -5,7 +5,7 @@ doc-subtab: dropdown --- {% capture dropdown_example %} -