From 60cf7d45dbbf21cafcffa1b883101136d609b2a8 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 11 Jul 2014 15:45:11 -0700 Subject: Rewrite progress to markdown --- docs/components/progress.md | 59 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 docs/components/progress.md (limited to 'docs/components/progress.md') diff --git a/docs/components/progress.md b/docs/components/progress.md new file mode 100644 index 000000000..877c0c748 --- /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 %} -- cgit v1.2.3