diff options
| author | Mark Otto <[email protected]> | 2014-03-07 01:30:28 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-07 01:30:28 -0800 |
| commit | 0143e38a672335b7ca2d73d0de5b2a2b4618f9e9 (patch) | |
| tree | 7188809b7c2194fc0aca9a65b7d07725ee4206d5 /docs/components.html | |
| parent | 642fd5100293755a6003448d4a481f3b314edf15 (diff) | |
| parent | 1f148427de6d35a06e225deeee0b162b11955232 (diff) | |
| download | bootstrap-0143e38a672335b7ca2d73d0de5b2a2b4618f9e9.tar.xz bootstrap-0143e38a672335b7ca2d73d0de5b2a2b4618f9e9.zip | |
Merge branch 'master' into document_popover_focus
Conflicts:
docs/assets/js/docs.min.js
Diffstat (limited to 'docs/components.html')
| -rw-r--r-- | docs/components.html | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/docs/components.html b/docs/components.html index efa8a0519..f70ceedc3 100644 --- a/docs/components.html +++ b/docs/components.html @@ -2280,6 +2280,34 @@ body { padding-bottom: 70px; } </div> {% endhighlight %} + <h3 id="progress-low-percentages">Low percentages</h3> + <p>Progress bars representing low single digit percentages, as well as 0%, include a <code>min-width: 20px;</code> for legibility.</p> + <div class="bs-example"> + <div class="progress"> + <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"> + 0% + </div> + </div> + <div class="progress"> + <div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: 2%;"> + 2% + </div> + </div> + </div> +{% highlight html %} +<div class="progress"> + <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"> + 0% + </div> +</div> +<div class="progress"> + <div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: 2%;"> + 2% + </div> +</div> +{% endhighlight %} + + <h3 id="progress-alternatives">Contextual alternatives</h3> <p>Progress bars use some of the same button and alert classes for consistent styles.</p> <div class="bs-example"> @@ -2622,6 +2650,31 @@ body { padding-bottom: 70px; } </div> {% endhighlight %} + <h3 id="list-group-disabled">Disabled items</h3> + <p>Add <code>.disabled</code> to a <code>.list-group-item</code> to gray it out to appear disabled.</p> + <div class="bs-example"> + <div class="list-group"> + <a href="#" class="list-group-item disabled"> + Cras justo odio + </a> + <a href="#" class="list-group-item">Dapibus ac facilisis in</a> + <a href="#" class="list-group-item">Morbi leo risus</a> + <a href="#" class="list-group-item">Porta ac consectetur ac</a> + <a href="#" class="list-group-item">Vestibulum at eros</a> + </div> + </div> +{% highlight html %} +<div class="list-group"> + <a href="#" class="list-group-item disabled"> + Cras justo odio + </a> + <a href="#" class="list-group-item">Dapibus ac facilisis in</a> + <a href="#" class="list-group-item">Morbi leo risus</a> + <a href="#" class="list-group-item">Porta ac consectetur ac</a> + <a href="#" class="list-group-item">Vestibulum at eros</a> +</div> +{% endhighlight %} + <h3 id="list-group-contextual-classes">Contextual classes</h3> <p>Use contextual classes to style list items, default or linked. Also includes <code>.active</code> state.</p> <div class="bs-example"> @@ -2972,6 +3025,34 @@ body { padding-bottom: 70px; } +<!-- Responsive embeds +================================================== --> +<div class="bs-docs-section"> + <h1 id="responsive-embed" class="page-header">Responsive embed</h1> + + <p>Allow browsers to determine video or slideshow dimensions based on the width of their containing block by creating an intrinsic ratio that will properly scale on any device.</p> + <p>Rules are directly apply to <code><iframe></code>, <code><embed></code> and <code><object></code> elements, optionally use of an explicit descendant class <code>.embed-responsive-item</code> when you want to match the styling for other attributes.</p> + <p><strong>Pro-Tip!</strong> You don't need to include <code>frameborder="0"</code> in your <code><iframe></code>s as we override that for you.</p> + <div class="bs-example"> + <div class="embed-responsive embed-responsive-16by9"> + <iframe class="embed-responsive-item" src="//www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe> + </div> + </div> +{% highlight html %} +<!-- 16:9 aspect ratio --> +<div class="embed-responsive embed-responsive-16by9"> + <iframe class="embed-responsive-item" src="…"></iframe> +</div> + +<!-- 4:3 aspect ratio --> +<div class="embed-responsive embed-responsive-4by3"> + <iframe class="embed-responsive-item" src="…"></iframe> +</div> +{% endhighlight %} +</div> + + + <!-- Wells ================================================== --> <div class="bs-docs-section"> |
