From 2a43e7e78a59c70e217383c12c9ef0482cabb163 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 16 Mar 2014 19:03:53 -0700 Subject: Break up docs into includes --- docs/_includes/components/dropdowns.html | 106 +++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 docs/_includes/components/dropdowns.html (limited to 'docs/_includes/components/dropdowns.html') diff --git a/docs/_includes/components/dropdowns.html b/docs/_includes/components/dropdowns.html new file mode 100644 index 000000000..6e44c45ba --- /dev/null +++ b/docs/_includes/components/dropdowns.html @@ -0,0 +1,106 @@ +
+

Dropdowns

+ +

Toggleable, contextual menu for displaying lists of links. Made interactive with the dropdown JavaScript plugin.

+ + +

Wrap the dropdown's trigger and the dropdown menu within .dropdown, or another element that declares position: relative;. Then add the menu's HTML.

+
+ +
+{% highlight html %} + +{% endhighlight %} + + +

By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add .dropdown-menu-right to a .dropdown-menu to right align the dropdown menu.

+
+

May require additional positioning

+

Dropdowns are automatically positioned via CSS within the normal flow of the document. This means dropdowns may be cropped by parents with certain overflow properties or appear out of bounds of the viewport. Address these issues on your own as they arise.

+
+
+

Deprecated .pull-right alignment

+

As of v3.1.0, we've deprecated .pull-right on dropdown menus. To right-align a menu, use .dropdown-menu-right. Right-aligned nav components in the navbar use a mixin version of this class to automatically align the menu. To override it, use .dropdown-menu-left.

+
+{% highlight html %} + +{% endhighlight %} + + +

Add a header to label sections of actions in any dropdown menu.

+
+ +
+{% highlight html %} + +{% endhighlight %} + + +

Add .disabled to a <li> in the dropdown to disable the link.

+
+ +
+{% highlight html %} + +{% endhighlight %} +
-- cgit v1.2.3