From e558f490dd3cce1d9c13714e41cf4a7b1e04e909 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 17 Aug 2015 11:19:14 -0700 Subject: Rewrite dropdowns - Remove nested > selectors for dropdown items - Update docs examples to use all the new markup --- docs/components/button-dropdown.md | 282 ++++++++++++++++++------------------- docs/components/dropdowns.md | 82 ++++------- docs/components/navs.md | 40 +++--- 3 files changed, 188 insertions(+), 216 deletions(-) (limited to 'docs/components') diff --git a/docs/components/button-dropdown.md b/docs/components/button-dropdown.md index 32e03c0b7..315b35107 100644 --- a/docs/components/button-dropdown.md +++ b/docs/components/button-dropdown.md @@ -24,63 +24,63 @@ Turn a button into a dropdown toggle with some basic markup changes.
@@ -90,13 +90,13 @@ Turn a button into a dropdown toggle with some basic markup changes. - + {% endhighlight %} @@ -110,78 +110,78 @@ Similarly, create split button dropdowns with the same markup changes, only with - +
- +
- +
- +
- +
- +
@@ -192,13 +192,13 @@ Similarly, create split button dropdowns with the same markup changes, only with - + {% endhighlight %} @@ -212,13 +212,13 @@ Button dropdowns work with buttons of all sizes. - + @@ -257,9 +257,9 @@ Button dropdowns work with buttons of all sizes. - + @@ -267,9 +267,9 @@ Button dropdowns work with buttons of all sizes. - + @@ -277,9 +277,9 @@ Button dropdowns work with buttons of all sizes. - + {% endhighlight %} @@ -294,26 +294,26 @@ Trigger dropdown menus above elements by adding `.dropup` to the parent. - +
- +
@@ -324,8 +324,8 @@ Trigger dropdown menus above elements by adding `.dropup` to the parent. - + {% endhighlight %} diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md index 091776696..c60cb6fdb 100644 --- a/docs/components/dropdowns.md +++ b/docs/components/dropdowns.md @@ -20,17 +20,11 @@ Wrap the dropdown's trigger and the dropdown menu within `.dropdown`, or another - + {% endexample %} @@ -43,9 +37,9 @@ By default, a dropdown menu is automatically positioned 100% from the top and al {% endcallout %} {% highlight html %} - + {% endhighlight %} ## Menu headers @@ -53,15 +47,11 @@ By default, a dropdown menu is automatically positioned 100% from the top and al Add a header to label sections of actions in any dropdown menu. {% example html %} - + {% endexample %} ## Menu dividers @@ -69,39 +59,25 @@ Add a header to label sections of actions in any dropdown menu. Separate groups of related menu items with a divider. {% example html %} - + {% endexample %} ## Disabled menu items -Add `.disabled` to a `
  • ` in the dropdown to disable the link. +Add `.disabled` to items in the dropdown to **style them as disabled**. {% example html %} - + {% endexample %} ## Usage @@ -121,9 +97,9 @@ Add `data-toggle="dropdown"` to a link or button to toggle a dropdown. - + {% endhighlight %} @@ -135,9 +111,9 @@ To keep URLs intact with link buttons, use the `data-target` attribute instead o Dropdown trigger - + {% endhighlight %} diff --git a/docs/components/navs.md b/docs/components/navs.md index c951bb1ba..644cd7bf0 100644 --- a/docs/components/navs.md +++ b/docs/components/navs.md @@ -123,13 +123,13 @@ Add dropdown menus with a little extra HTML and the [dropdowns JavaScript plugin
  • -- cgit v1.2.3