]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add responsive embed class for 1:1 aspect ratio
authorRichard Kraaijenhagen <stdin+git@riichard.com>
Tue, 24 Nov 2015 03:50:38 +0000 (19:50 -0800)
committerChris Rebert <code@chrisrebert.com>
Tue, 24 Nov 2015 03:54:55 +0000 (19:54 -0800)
Closes #18141

docs/components/utilities.md
scss/_responsive-embed.scss

index 3bc0547747b395a3fb185aedaa0a0acb483ccc8f..c2ac73bbc1355b4c448045d8a50783d561181822 100644 (file)
@@ -328,4 +328,9 @@ Aspect ratios can be customized with modifier classes.
 <div class="embed-responsive embed-responsive-4by3">
   <iframe class="embed-responsive-item" src="..."></iframe>
 </div>
+
+<!-- 1:1 aspect ratio -->
+<div class="embed-responsive embed-responsive-1by1">
+  <iframe class="embed-responsive-item" src="..."></iframe>
+</div>
 {% endhighlight %}
index aaf8c047080ccef166aa6a7c10d56f7b7225303e..2443219591219ebe7c3205778f905de55eb3873c 100644 (file)
@@ -33,3 +33,7 @@
 .embed-responsive-4by3 {
   padding-bottom: percentage(3 / 4);
 }
+
+.embed-responsive-1by1 {
+  padding-bottom: percentage(1 / 1);
+}