Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2014-01-14 08:01:54 +0400
committerMark Otto <otto@github.com>2014-01-14 08:01:54 +0400
commitf4dd6221d4e7a8eaa9cd8ebe0457ad016f5058cc (patch)
treec75b7a1c96df2d5095a61fc838aead93b5c27849 /docs/css.html
parentdf70e8d8458b63ca813466c9d8d0fa3aa2b716ff (diff)
parent29e495f03cda05fd7fc362420ae86619c27b582e (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.html15
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>&lt;section&gt;</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>&lt;iframe&gt;</code>, <code>&lt;embed&gt;</code> and <code>&lt;object&gt;</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>