From 28d22d97dffbc91c3cdf537c50043b4c44a46950 Mon Sep 17 00:00:00 2001 From: Jeremy Thomas Date: Mon, 24 Jul 2017 12:34:43 +0200 Subject: [PATCH] Add more dropdown doc --- docs/_javascript/main.js | 2 +- docs/css/bulma-docs.css | 7 +- docs/documentation/components/dropdown.html | 93 ++++++++++++++++++++- docs/lib/main.js | 2 +- sass/components/dropdown.sass | 10 ++- 5 files changed, 104 insertions(+), 10 deletions(-) diff --git a/docs/_javascript/main.js b/docs/_javascript/main.js index 9a45848a..2517f490 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 298efb3d..a4a7dcd0 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 11a544b0..311ea8e8 100644 --- a/docs/documentation/components/dropdown.html +++ b/docs/documentation/components/dropdown.html @@ -5,7 +5,7 @@ doc-subtab: dropdown --- {% capture dropdown_example %} -