aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Kirsche <[email protected]>2015-02-10 08:57:56 -0500
committerKevin Kirsche <[email protected]>2015-02-10 08:57:56 -0500
commitd78d9dc5d9284cc2cfb86517acba10028a418783 (patch)
tree7f0157f8800e9c575a3bd0202c06180a23e62cd2 /docs
parent98d4464065b24cda9d1d1f893874cc0135997fa2 (diff)
downloadbootstrap-d78d9dc5d9284cc2cfb86517acba10028a418783.tar.xz
bootstrap-d78d9dc5d9284cc2cfb86517acba10028a418783.zip
Remove separate area for dropup's
Condense the dropup example
Diffstat (limited to 'docs')
-rw-r--r--docs/_includes/components/dropdowns.html31
1 files changed, 12 insertions, 19 deletions
diff --git a/docs/_includes/components/dropdowns.html b/docs/_includes/components/dropdowns.html
index 8b3e02912..d28fcce39 100644
--- a/docs/_includes/components/dropdowns.html
+++ b/docs/_includes/components/dropdowns.html
@@ -4,7 +4,7 @@
<p class="lead">Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href="../javascript/#dropdowns">dropdown JavaScript plugin</a>.</p>
<h3 id="dropdowns-example">Example</h3>
- <p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML.</p>
+ <p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML. Dropdown menus can also be triggered above elements by adding <code>.dropup</code> to the parent.</p>
<div class="bs-example" data-example-id="static-dropdown">
<div class="dropdown clearfix">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
@@ -17,6 +17,17 @@
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
</ul>
</div>
+ <div class="dropup clearfix">
+ <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-expanded="true">
+ Dropdown
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu2">
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
+ </ul>
+ </div>
</div><!-- /example -->
{% highlight html %}
<div class="dropdown">
@@ -31,24 +42,6 @@
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
</ul>
</div>
-{% endhighlight %}
-
- <h3 id="dropdowns-dropup">Dropup variation</h3>
- <p>Trigger dropdown menus above elements by adding <code>.dropup</code> to the parent.</p>
- <div class="bs-example" data-example-id="static-dropup">
- <div class="dropup clearfix">
- <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-expanded="true">
- Dropdown
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu2">
- <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
- <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
- <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
- </ul>
- </div>
- </div><!-- /example -->
-{% highlight html %}
<div class="dropup">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-expanded="true">
Dropdown