From 1438b14f74fc30c3b9bd63bd54d3bcfe5ce33c3c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 7 Jan 2012 15:52:57 -0800 Subject: overhauled docs to include example markup, add language around browser support and classes --- docs/components.html | 81 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 60 insertions(+), 21 deletions(-) (limited to 'docs/components.html') diff --git a/docs/components.html b/docs/components.html index 8be1f824a..ce16c8092 100644 --- a/docs/components.html +++ b/docs/components.html @@ -929,43 +929,82 @@ Lorem ipsum dolar sit amet illo error ipsum verit ================================================== -->
+ +

Examples and markup

-
-

Basic bars

-

Default look of progress bars. Absolute minimum.

-
-
+
+

Basic

+

Default progress bar with a vertical gradient.

-
+
+
+<div class="progress">
+  <div class="bar"
+       style="width: 60%;"></div>
+</div>
+
-
-
-
-

Striped bars

-

Bars with stripes painted.

-
-
+
+

Striped

+

Uses a gradient to create a striped effect.

+
+<div class="progress info
+     striped">
+  <div class="bar"
+       style="width: 20%;"></div>
+</div>
+
-
-
-
-

Active state

-

Animated stripes! Not on Opera, though :(

-
-
+
+

Animated

+

Takes the striped example and animates it.

+
+<div class="progress danger
+     striped active">
+  <div class="bar"
+       style="width: 40%;"></div>
+</div>
+
+ +

Options and browser support

+
+
+

Additional colors

+

Progress bars utilize some of the same classes as buttons and alert messages for quick styling.

+
    +
  • .info
  • +
  • .success
  • +
  • .danger
  • +
+

Alternatively, you can customize the LESS files and roll your own colors and sizes.

+
+
+

Behavior

+

Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.

+

If you use the .active class, your .striped progress bars will animate the stripes left to right.

+
+
+

Browser support

+

Progress bars use CSS3 gradients, transitions, and animations to achieve all theire effects. These features are not supported in IE7-8 or older versions of Firefox.

+

Opera does not support animations at this time.

+
+
+
+ +