diff options
author | Mark Otto <otto@github.com> | 2014-01-14 08:01:54 +0400 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2014-01-14 08:01:54 +0400 |
commit | f4dd6221d4e7a8eaa9cd8ebe0457ad016f5058cc (patch) | |
tree | c75b7a1c96df2d5095a61fc838aead93b5c27849 /docs/css.html | |
parent | df70e8d8458b63ca813466c9d8d0fa3aa2b716ff (diff) | |
parent | 29e495f03cda05fd7fc362420ae86619c27b582e (diff) |
Merge branch 'responsive-embed' of https://github.com/boulox/bootstrap into boulox-responsive-embed
Conflicts:
dist/css/bootstrap.css.map
dist/css/bootstrap.min.css
Diffstat (limited to 'docs/css.html')
-rw-r--r-- | docs/css.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/css.html b/docs/css.html index d8d6b8bb5b..f94f344909 100644 --- a/docs/css.html +++ b/docs/css.html @@ -2577,6 +2577,21 @@ For example, <code><section></code> should be wrapped as inline. .text-hide(); } {% endhighlight %} + + <h3 id="helper-classes-embeds-responsive">Embeds responsive</h3> + <p>Allows browsers to determine videos or slideshow dimensions based on the width of their containing block to create 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> +{% 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> |