mod/bootstrap/vendor/bootstrap/docs/4.0/utilities/flex.md in card-1.93.7 vs mod/bootstrap/vendor/bootstrap/docs/4.0/utilities/flex.md in card-1.93.8
- old
+ new
@@ -260,28 +260,19 @@
## Wrap
Change how flex items wrap in a flex container. Choose from no wrapping at all (the browser default) with `.flex-nowrap`, wrapping with `.flex-wrap`, or reverse wrapping with `.flex-wrap-reverse`.
<div class="bd-example">
- <div class="d-flex flex-nowrap bd-highlight">
+ <div class="d-flex flex-nowrap bd-highlight" style="width: 8rem;">
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
- <div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex flex-nowrap">
...
</div>
{% endhighlight %}
@@ -303,10 +294,11 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex flex-wrap">
...
</div>
{% endhighlight %}
@@ -328,20 +320,18 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex flex-wrap-reverse">
...
</div>
{% endhighlight %}
-{% example html %}
-{% endexample %}
-
Responsive variations also exist for `flex-wrap`.
{% for bp in site.data.breakpoints %}
- `.flex{{ bp.abbr }}-nowrap`
- `.flex{{ bp.abbr }}-wrap`
@@ -359,11 +349,11 @@
</div>
{% endexample %}
Responsive variations also exist for `order`.
-{% for bp in site.data.breakpoints %}{% for i in (1..12) %}
+{% for bp in site.data.breakpoints %}{% for i in (0..12) %}
- `.order{{ bp.abbr }}-{{ i }}`{% endfor %}{% endfor %}
## Align content
Use `align-content` utilities on flexbox containers to align flex items *together* on the cross axis. Choose from `start` (browser default), `end`, `center`, `between`, `around`, or `stretch`. To demonstrate these utilities, we've enforced `flex-wrap: wrap` and increased the number of flex items.
@@ -387,10 +377,11 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex align-content-start flex-wrap">
...
</div>
{% endhighlight %}
@@ -412,10 +403,11 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex align-content-end flex-wrap">...</div>
{% endhighlight %}
<div class="bd-example">
@@ -435,10 +427,11 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex align-content-center flex-wrap">...</div>
{% endhighlight %}
<div class="bd-example">
@@ -458,10 +451,11 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex align-content-between flex-wrap">...</div>
{% endhighlight %}
<div class="bd-example">
@@ -481,10 +475,11 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex align-content-around flex-wrap">...</div>
{% endhighlight %}
<div class="bd-example">
@@ -504,9 +499,10 @@
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>
</div>
+
{% highlight html %}
<div class="d-flex align-content-stretch flex-wrap">...</div>
{% endhighlight %}
Responsive variations also exist for `align-content`.