From 4fe37339653c909368ba772ea9214c0b2a511fee Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Fri, 16 Aug 2013 16:26:07 -0700 Subject: update bootstrap to 3.0.0-rc2 --- bower_components/bootstrap/components.html | 1729 ++++++++++++++++++---------- 1 file changed, 1095 insertions(+), 634 deletions(-) mode change 100644 => 100755 bower_components/bootstrap/components.html (limited to 'bower_components/bootstrap/components.html') diff --git a/bower_components/bootstrap/components.html b/bower_components/bootstrap/components.html old mode 100644 new mode 100755 index 1f685c2d..815bd5d8 --- a/bower_components/bootstrap/components.html +++ b/bower_components/bootstrap/components.html @@ -2,7 +2,7 @@ layout: default title: Components slug: components -lead: "Dozens of reusable components built to provide iconography, dropdowns, navigation, alerts, popovers, and much more." +lead: "Over a dozen reusable components built to provide iconography, dropdowns, navigation, alerts, popovers, and much more." base_url: "../" --- @@ -11,7 +11,7 @@ base_url: "../" ================================================== -->

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

@@ -19,29 +19,30 @@ base_url: "../"

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 %} - +

Add .pull-right to a .dropdown-menu to right align the dropdown menu.

{% highlight html %} {% endhighlight %} - -

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

+ +

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

{% highlight html %} -
@@ -102,14 +105,14 @@ base_url: "../" -

Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with our buttons plugin.

+

Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with our buttons plugin.

Tooltips & popovers in button groups require special setting

When using tooltips or popovers on elements within a .btn-group, you'll have to specify the option container: 'body' to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).

-

Basic button group

+

Basic example

Wrap a series of buttons with .btn in .btn-group.

@@ -126,7 +129,7 @@ base_url: "../"
{% endhighlight %} -

Multiple button groups

+

Button toolbar

Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.

@@ -154,13 +157,51 @@ base_url: "../"
{% endhighlight %} -

Nested button groups

-

Place buttons groups within button groups when you want dropdown menus mixed with a series of buttons.

+

Sizing

+

Instead of applying button sizing classes to every button in a group, just add .btn-group-* to the .btn-group.

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

Nesting

+

Place a .btn-group within another .btn-group when you want dropdown menus mixed with a series of buttons.

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

Vertical button groups

+

Vertical variation

Make a set of buttons appear vertically stacked rather than horizontally.

+
+ + +
+
+ + +
+
+ + +
+
+ + +
{% highlight html %} @@ -192,7 +289,7 @@ base_url: "../"
{% endhighlight %} -

Justified button groups

+

Justified link variation

Make a group of buttons stretch at the same size to span the entire width of its parent.

@@ -203,8 +300,8 @@ base_url: "../" {% highlight html %} @@ -221,7 +318,7 @@ base_url: "../" ================================================== -->

Use any button to trigger a dropdown menu by placing it within a .btn-group and providing the proper menu markup.

@@ -231,60 +328,68 @@ base_url: "../"

Single button dropdowns

-

Turn a button into dropdown toggle with some basic markup changes.

+

Turn a button into a dropdown toggle with some basic markup changes.

{% highlight html %} @@ -305,69 +410,78 @@ base_url: "../"

Split button dropdowns

Similarly, create split button dropdowns with the same markup changes, only with a separate button.

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

Works with all button sizes

+

Sizing

Button dropdowns work with buttons of all sizes.

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

Options

- +

Easily make tabs or pills equal widths of their parent with .nav-justified.

{% endhighlight %} - + +

For any nav component (tabs, pills, or list), add .disabled for gray links and no hover effects.

@@ -583,34 +1032,33 @@ base_url: "../" {% endhighlight %} - +

To align nav links, use the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction.

-
- - - +

Add dropdown menus with a little extra HTML and the dropdowns JavaScript plugin.

Tabs with dropdowns

{% highlight html %}
- -

To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a .container, which sets the width of your site and content.

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

Navbars are responsive meta components that serve as navigation headers for your application or site. They begin collapsed (and are toggleable) in mobile views and become horizontal as the available viewport width increases.

-

Navbar components

+
+

Customize the collapsing point

+

Depending on the content in your navbar, you might need to change the point at which your navbar switches between collapsed and horizontal mode. Customize the @grid-float-breakpoint variable or add your own media query.

+
- -

A simple link to show your brand or project name only requires an anchor tag.

- -
+ +
{% highlight html %} -Title -{% endhighlight %} + {% endhighlight %} - -

To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form and either .pull-left or .pull-right to properly align it.

-
- - - - - - +
+

Plugin dependency

+

The responsive navbar requires the collapse plugin to be included in your version of Bootstrap.

+
- +
+

Make navbars accessible

+

Be sure to add a role="navigation" to every navbar to help with accessibility.

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

For buttons not residing in a <form>, add this class to vertically center buttons within a navbar.

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

Wrap strings of text in an element with .navbar-text, usually on a <p> tag for proper leading and color.

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

For folks using standard links that are not within the regular navbar navigation component, use the .navbar-link class to add the proper colors for the default and inverse navbar options.

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

Align nav links, forms, buttons, or text, using the .pull-left or .pull-right utility classes. Both classes will add a CSS float in the specified direction. To align nav links, put them in a separate <ul> with the respective utility class applied.

+ +

Align nav links, forms, buttons, or text, using the .navbar-left or .navbar-right utility classes. Both classes will add a CSS float in the specified direction. For example, to align nav links, put them in a separate <ul> with the respective utility class applied.

+

These classes are mixin-ed versions of .pull-left and .pull-right, but they're scoped to media queries for easier handling of navbar components across device sizes.

-

Optional display variations

-

Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar. These will also remove rounded corners.

- +

Add .navbar-fixed-top.

- +
{% highlight html %} - + {% endhighlight %}
@@ -854,24 +1356,36 @@ body { padding-top: 70px; }

Make sure to include this after the core Bootstrap CSS.

- + +

Add .navbar-fixed-bottom instead.

- +
{% highlight html %} - + {% endhighlight %}
@@ -883,157 +1397,68 @@ body { padding-bottom: 70px; }

Make sure to include this after the core Bootstrap CSS.

- + +

Create a full-width navbar that scrolls away with the page by adding .navbar-static-top. Unlike the .navbar-fixed-* classes, you do not need to change any padding on the body.

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

To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse, and add the navbar toggle button, .navbar-toggle.

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

Plugin dependency

-

The responsive navbar requires the collapse plugin to be included in your version of Bootstrap.

-
- -

Inverted variation

+

Modify the look of the navbar by adding .navbar-inverse.

- +
+ + + +
{% highlight html %} - + {% endhighlight %}
@@ -1049,25 +1474,25 @@ body { padding-bottom: 70px; }

Indicate the current page's location within a navigational hierarchy.

Separators are automatically added in CSS through :before and content.

- - - +
{% highlight html %} - + {% endhighlight %}
@@ -1081,7 +1506,7 @@ body { padding-bottom: 70px; }

Provide pagination links for your site or app with the multi-page pagination component, or the simpler pager alternative.

-

Standard pagination

+

Default pagination

Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.