diff --git a/docs/_includes/components/progress-bars.html b/docs/_includes/components/progress-bars.html deleted file mode 100644 index 949c2368f5..0000000000 --- a/docs/_includes/components/progress-bars.html +++ /dev/null @@ -1,79 +0,0 @@ -
-

Progress bars

- -

Stylize the HTML5 <progress> element with a few extra classes and some crafty browser-specific CSS. Be sure to read up on the browser support.

- -

Basic example

-

Default progress bar.

-
- 0% - 25% - 50% - 75% - 100% -
-{% highlight html %} -0% -25% -50% -75% -100% -{% endhighlight %} - -

Internet Explorer 9 support

-

IE9 doesn't support the HTML5 <progress> element, but we can work around that.

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

Contextual alternatives

-

Progress bars use some of the same button and alert classes for consistent styles.

-
- 25% - 50% - 75% - 100% -
-{% highlight html %} -25% -50% -75% -100% -{% endhighlight %} - -

Striped

-

Uses a gradient to create a striped effect.

-
- 10% - 25% - 50% - 75% - 100% -
-{% highlight html %} -10% -25% -50% -75% -100% -{% endhighlight %} - -

Animated

-

Add .progress-animated to .progress to animate the stripes right to left via CSS3 animations. Animated progress bars do not work in IE9, older versions of Firefox, and Opera 12 as they don't support CSS3 animations.

-
- 25% -
-{% highlight html %} -25% -{% endhighlight %} diff --git a/docs/components.html b/docs/components.html index 555a519d51..11055d9cae 100644 --- a/docs/components.html +++ b/docs/components.html @@ -18,7 +18,6 @@ lead: "Over a dozen reusable components built to provide dropdowns, input groups {% include components/jumbotron.html %} {% include components/page-header.html %} {% include components/alerts.html %} -{% include components/progress-bars.html %} {% include components/media.html %} {% include components/list-group.html %} {% include components/responsive-embed.html %} diff --git a/docs/components/progress.md b/docs/components/progress.md new file mode 100644 index 0000000000..877c0c748b --- /dev/null +++ b/docs/components/progress.md @@ -0,0 +1,59 @@ +--- +layout: page +title: Progress +--- + +Stylize the HTML5 `` element with a few extra classes and some crafty browser-specific CSS. Be sure to read up on the browser support. + +### Example + +{% example html %} +0% +25% +50% +75% +100% +{% endexample %} + +### IE9 support + +Internet Explorer 9 doesn't support the HTML5 `` element, but we can work around that. + +{% example html %} + +
+ 25% +
+
+{% endexample %} + +### Contextual alternatives + +Progress bars use some of the same button and alert classes for consistent styles. + +{% example html %} +25% +50% +75% +100% +{% endexample %} + +### Striped + +Uses a gradient to create a striped effect. + +{% example html %} +10% +25% +50% +75% +100% +{% endexample %} + +The striped gradient can also be animated. Add .progress-animated to .progress to animate the stripes right to left via CSS3 animations. + +**Animated progress bars do not work in IE9, older versions of Firefox, and Opera 12** as they don't support CSS3 animations. + +{% example html %} +25% +{% endexample %}