mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
parent
569f86051e
commit
c960169807
@ -328,4 +328,9 @@ Aspect ratios can be customized with modifier classes.
|
|||||||
<div class="embed-responsive embed-responsive-4by3">
|
<div class="embed-responsive embed-responsive-4by3">
|
||||||
<iframe class="embed-responsive-item" src="..."></iframe>
|
<iframe class="embed-responsive-item" src="..."></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 1:1 aspect ratio -->
|
||||||
|
<div class="embed-responsive embed-responsive-1by1">
|
||||||
|
<iframe class="embed-responsive-item" src="..."></iframe>
|
||||||
|
</div>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
@ -33,3 +33,7 @@
|
|||||||
.embed-responsive-4by3 {
|
.embed-responsive-4by3 {
|
||||||
padding-bottom: percentage(3 / 4);
|
padding-bottom: percentage(3 / 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.embed-responsive-1by1 {
|
||||||
|
padding-bottom: percentage(1 / 1);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user