Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the alerts jQuery plugin.
-
-
Examples
-
Wrap any text and an optional dismiss button in .alert and one of the four contextual classes (e.g., .alert-success) for basic alert messages.
-
-
-
No default class
-
Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.
-
-
-
-
- Well done! You successfully read this important alert message.
-
-
- Heads up! This alert needs your attention, but it's not super important.
-
-
- Warning! Better check yourself, you're not looking too good.
-
-
- Oh snap! Change a few things up and try submitting again.
-
-
-{% highlight html %}
-
...
-
...
-
...
-
...
-{% endhighlight %}
-
-
Dismissible alerts
-
Build on any alert by adding an optional .alert-dismissible and close button.
-
-
-
- Warning! Better check yourself, you're not looking too good.
-
-
-{% highlight html %}
-
-
- Warning! Better check yourself, you're not looking too good.
-
-{% endhighlight %}
-
-
-
Ensure proper behavior across all devices
-
Be sure to use the <button> element with the data-dismiss="alert" data attribute.
-
-
-
Links in alerts
-
Use the .alert-link utility class to quickly provide matching colored links within any alert.
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.
-
-{% highlight html %}
-
- ...
-
-{% endhighlight %}
-
-
Headers
-
Add a header to label sections of actions in any dropdown menu.
Navigation available in Bootstrap share general markup and styles, from the base .nav class to the active and disabled states. Swap modifier classes to switch between each style.
-
-
Base nav
-
Roll your own navigation style by extending the base .nav component. All Bootstrap's nav components are built on top of this. Includes styles for the disabled state, but not the active state.
diff --git a/docs/components.html b/docs/components.html
index 11055d9cae..1bda126a51 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -5,19 +5,15 @@ slug: components
lead: "Over a dozen reusable components built to provide dropdowns, input groups, navigation, alerts, and much more."
---
-{% include components/dropdowns.html %}
{% include components/button-groups.html %}
{% include components/button-dropdowns.html %}
{% include components/input-groups.html %}
-{% include components/navs.html %}
{% include components/navbar.html %}
{% include components/breadcrumbs.html %}
{% include components/pagination.html %}
{% include components/labels.html %}
-{% include components/badges.html %}
{% include components/jumbotron.html %}
{% include components/page-header.html %}
-{% include components/alerts.html %}
{% include components/media.html %}
{% include components/list-group.html %}
{% include components/responsive-embed.html %}
diff --git a/docs/components/alerts.md b/docs/components/alerts.md
new file mode 100644
index 0000000000..ff25de763d
--- /dev/null
+++ b/docs/components/alerts.md
@@ -0,0 +1,66 @@
+---
+layout: page
+title: Alerts
+---
+
+Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the [alerts jQuery plugin]({{ site.baseurl }}javascript/#alerts).
+
+Wrap any text and an optional dismiss button in `.alert` and one of the four contextual classes (e.g., `.alert-success`) for basic alert messages.
+
+
+
No default class
+
Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.
+
+
+{% example html %}
+
+ Well done! You successfully read this important alert message.
+
+
+ Heads up! This alert needs your attention, but it's not super important.
+
+
+ Warning! Better check yourself, you're not looking too good.
+
+
+ Oh snap! Change a few things up and try submitting again.
+
+{% endexample %}
+
+### Dismissing
+
+Build on any alert by adding an optional `.alert-dismissible` and [close button]().
+
+{% example html %}
+
+
+ Warning! Better check yourself, you're not looking too good.
+
+{% endexample %}
+
+
+
Ensure proper behavior across all devices
+
Be sure to use the <button> element with the data-dismiss="alert" data attribute.
+
+
+### Link color
+
+Use the `.alert-link` utility class to quickly provide matching colored links within any alert.
+
+{% example html %}
+
+{% endexample %}
diff --git a/docs/components/badges.md b/docs/components/badges.md
new file mode 100644
index 0000000000..470f1979f4
--- /dev/null
+++ b/docs/components/badges.md
@@ -0,0 +1,68 @@
+---
+layout: page
+title: Badges
+---
+
+Easily highlight new or unread items by adding a `` within links, Bootstrap navs, and more.
+
+{% example html %}
+Inbox 42
+{% endexample %}
+
+### Self collapsing
+
+When there are no new or unread items, badges will simply collapse (via CSS's `:empty` selector) provided no content exists within.
+
+### Active nav
+
+Built-in styles are included for placing badges in active states in pill navigations.
+
+{% example html %}
+
+{% endexample %}
+
+### Buttons
+
+Like active nav links, badges in Bootstrap buttons automatically restyle to better blend into the background.
+
+{% example html %}
+
+
+
+
+{% endexample %}
diff --git a/docs/components/buttons.md b/docs/components/buttons.md
index c02e74e1f8..d97b881123 100644
--- a/docs/components/buttons.md
+++ b/docs/components/buttons.md
@@ -1,6 +1,7 @@
-
-
-# Buttons
+---
+layout: page
+title: Buttons
+---
Use any of the available button classes to quickly create a styled button.
@@ -24,10 +25,6 @@ Use any of the available button classes to quickly create a styled button.
{% endexample %}
-
-
-
-
## Sizes
Fancy larger or smaller buttons? Add `.btn-lg`, `.btn-sm`, or `.btn-xs` for additional sizes.
@@ -54,10 +51,6 @@ Create block level buttons—those that span the full width of a parent—by add
{% endexample %}
-
-
-
-
## Active state
Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. **There's no need to add a class to `