mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Only caption 1st set of progress bar examples
This commit is contained in:
parent
5142ac2389
commit
72f10dd7e6
1 changed files with 13 additions and 29 deletions
|
@ -13,6 +13,8 @@ Stylize [the HTML5 `<progress>` element](https://developer.mozilla.org/en-US/doc
|
|||
|
||||
### Example
|
||||
|
||||
To caption a progress bar, simply add a `<div>` with your caption text, [align the text using a utility class]({{ site.baseurl }}/components/utilities/#text-alignment), and associate the caption with the `<progress>` element using the `aria-describedby` attribute.
|
||||
|
||||
{% example html %}
|
||||
|
||||
<div class="text-xs-center" id="example-caption-1">Reticulating splines… 0%</div>
|
||||
|
@ -49,17 +51,10 @@ Internet Explorer 9 doesn't support the HTML5 `<progress>` element, but we can w
|
|||
Progress bars use some of the same button and alert classes for consistent styles.
|
||||
|
||||
{% example html %}
|
||||
<div class="text-xs-center" id="example-caption-7">Reticulating successful splines… 25%</div>
|
||||
<progress class="progress progress-success" value="25" max="100" aria-describedby="example-caption-7"></progress>
|
||||
|
||||
<div class="text-xs-center" id="example-caption-8">Reticulating informative splines… 50%</div>
|
||||
<progress class="progress progress-info" value="50" max="100" aria-describedby="example-caption-8"></progress>
|
||||
|
||||
<div class="text-xs-center" id="example-caption-9">Reticulating warning splines… 75%</div>
|
||||
<progress class="progress progress-warning" value="75" max="100" aria-describedby="example-caption-9"></progress>
|
||||
|
||||
<div class="text-xs-center" id="example-caption-10">Reticulating dangerous splines… 100%</div>
|
||||
<progress class="progress progress-danger" value="100" max="100" aria-describedby="example-caption-10"></progress>
|
||||
<progress class="progress progress-success" value="25" max="100"></progress>
|
||||
<progress class="progress progress-info" value="50" max="100"></progress>
|
||||
<progress class="progress progress-warning" value="75" max="100"></progress>
|
||||
<progress class="progress progress-danger" value="100" max="100"></progress>
|
||||
{% endexample %}
|
||||
|
||||
### Striped
|
||||
|
@ -67,20 +62,11 @@ Progress bars use some of the same button and alert classes for consistent style
|
|||
Uses a gradient to create a striped effect.
|
||||
|
||||
{% example html %}
|
||||
<div class="text-xs-center" id="example-caption-11">Reticulating plain splines… 10%</div>
|
||||
<progress class="progress progress-striped" value="10" max="100" aria-describedby="example-caption-11">10%</progress>
|
||||
|
||||
<div class="text-xs-center" id="example-caption-12">Reticulating successful splines… 25%</div>
|
||||
<progress class="progress progress-striped progress-success" value="25" max="100" aria-describedby="example-caption-12">25%</progress>
|
||||
|
||||
<div class="text-xs-center" id="example-caption-13">Reticulating informative splines… 50%</div>
|
||||
<progress class="progress progress-striped progress-info" value="50" max="100" aria-describedby="example-caption-13">50%</progress>
|
||||
|
||||
<div class="text-xs-center" id="example-caption-14">Reticulating warning splines… 75%</div>
|
||||
<progress class="progress progress-striped progress-warning" value="75" max="100" aria-describedby="example-caption-14">75%</progress>
|
||||
|
||||
<div class="text-xs-center" id="example-caption-15">Reticulating dangerous splines… 100%</div>
|
||||
<progress class="progress progress-striped progress-danger" value="100" max="100" aria-describedby="example-caption-15">100%</progress>
|
||||
<progress class="progress progress-striped" value="10" max="100"></progress>
|
||||
<progress class="progress progress-striped progress-success" value="25" max="100"></progress>
|
||||
<progress class="progress progress-striped progress-info" value="50" max="100"></progress>
|
||||
<progress class="progress progress-striped progress-warning" value="75" max="100"></progress>
|
||||
<progress class="progress progress-striped progress-danger" value="100" max="100"></progress>
|
||||
{% endexample %}
|
||||
|
||||
### Animated stripes
|
||||
|
@ -90,14 +76,12 @@ The striped gradient can also be animated. Add `.progress-animated` to `.progres
|
|||
**Animated progress bars do not work in IE9 and Opera 12** – as they don't support CSS3 animations – **nor in IE10+ and Microsoft Edge** – as they currently don't support CSS3 animations on the [`::-ms-fill` pseudo-element](https://msdn.microsoft.com/en-us/library/windows/apps/hh465757.aspx).
|
||||
|
||||
<div class="bd-example">
|
||||
<div class="text-xs-center" id="example-caption-16">Reticulating splines… 25%</div>
|
||||
<progress class="progress progress-striped" value="25" max="100" aria-describedby="example-caption-16">25%</progress>
|
||||
<progress class="progress progress-striped" value="25" max="100"></progress>
|
||||
<button type="button" class="btn btn-secondary bd-activate-animated-progressbar" data-toggle="button" aria-pressed="false" autocomplete="off">
|
||||
Toggle animation
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{% highlight html %}
|
||||
<div class="text-xs-center" id="example-caption-16">Reticulating splines… 25%</div>
|
||||
<progress class="progress progress-striped progress-animated" value="25" max="100" aria-describedby="example-caption-16">25%</progress>
|
||||
<progress class="progress progress-striped progress-animated" value="25" max="100"></progress>
|
||||
{% endhighlight %}
|
||||
|
|
Loading…
Reference in a new issue