12 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!26437merge,!22391V4 dev,!22547Finished a new translation for bootstrap,!22143Fix selectable disabled toggle radio buttons,!22598test,!25326Adjust examples,!23995Add back cursor: pointer for .btn-link,!23178Spinner,!21403v4: Flex cards,!17021v4
@@ -596,10 +596,8 @@ Need a set of equal width and height cards that aren't attached to one another?
</div>
{% endexample %}
## Columns
Just like with card groups, card footers in decks will automatically line up.
Cards can be organized into [Masonry](http://masonry.desandro.com)-like columns with just CSS by wrapping them in `.card-columns`. Cards are ordered from top to bottom and left to right when wrapped in `.card-columns`.
{% example html %}
<divclass="card-deck">
<divclass="card">
...
...
@@ -635,7 +633,11 @@ Cards can be organized into [Masonry](http://masonry.desandro.com)-like columns
</div>
{% endexample %}
Only applies to small devices and above.
### Card columns
Cards can be organized into [Masonry](http://masonry.desandro.com)-like columns with just CSS by wrapping them in `.card-columns`. Cards are built with CSS `column` properties instead of flexbox for easier alignment. Cards are ordered from top to bottom and left to right.
**Heads up!** Your mileage with card columns may vary. To prevent cards breaking across columns, we must set them to `display: inline-block` as `column-break-inside: avoid` isn't a bulletproof solution yet.
{% example html %}
<divclass="card-columns">
...
...
@@ -646,8 +648,8 @@ Only applies to small devices and above.
<pclass="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
</div>
<divclass="card card-block">
<blockquoteclass="card-blockquote">
<divclass="card p-3">
<blockquoteclass="card-block card-blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>
<smallclass="text-muted">
...
...
@@ -664,7 +666,7 @@ Only applies to small devices and above.
<pclass="card-text"><smallclass="text-muted">Last updated 3 mins ago</small></p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>
...
...
@@ -692,10 +696,12 @@ Only applies to small devices and above.
</footer>
</blockquote>
</div>
<divclass="card card-block">
<h4class="card-title">Card title</h4>
<pclass="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
<pclass="card-text"><smallclass="text-muted">Last updated 3 mins ago</small></p>
<divclass="card">
<divclass="card-block">
<h4class="card-title">Card title</h4>
<pclass="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
<pclass="card-text"><smallclass="text-muted">Last updated 3 mins ago</small></p>