diff options
| author | Mark Otto <[email protected]> | 2014-03-06 23:18:13 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-06 23:18:13 -0800 |
| commit | 705ff7f2275ca823f71ca8dfba27a3b68119a2a4 (patch) | |
| tree | 5e9cafa73cafc08cfcd4f0dba987620fe21ccd21 /docs/components.html | |
| parent | 12c619f5b9149a4d3f4d24efe106504b6a8a5004 (diff) | |
| download | bootstrap-705ff7f2275ca823f71ca8dfba27a3b68119a2a4.tar.xz bootstrap-705ff7f2275ca823f71ca8dfba27a3b68119a2a4.zip | |
Moving the embed to it's own CSS file, moving the docs to the Components page with an example, fixing a Glyhpicons list problem in the docs
Diffstat (limited to 'docs/components.html')
| -rw-r--r-- | docs/components.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/components.html b/docs/components.html index cb3ca9f14..f70ceedc3 100644 --- a/docs/components.html +++ b/docs/components.html @@ -3025,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"> |
