From bc69ff108a6c222a137fa43d159d444f587659f0 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 22 Dec 2016 16:47:30 -0800 Subject: [PATCH] final docs cleanup with columns and more --- docs/components/card.md | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/docs/components/card.md b/docs/components/card.md index c963054098..1daca07681 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -596,10 +596,8 @@ Need a set of equal width and height cards that aren't attached to one another? {% 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 %}
@@ -635,7 +633,11 @@ Cards can be organized into [Masonry](http://masonry.desandro.com)-like columns
{% 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 %}
@@ -646,8 +648,8 @@ Only applies to small devices and above.

This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

@@ -664,7 +666,7 @@ Only applies to small devices and above.

Last updated 3 mins ago

-
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat.

@@ -674,15 +676,17 @@ Only applies to small devices and above.
-
-

Card title

-

This card has supporting text below as a natural lead-in to additional content.

-

Last updated 3 mins ago

+
+
+

Card title

+

This card has supporting text below as a natural lead-in to additional content.

+

Last updated 3 mins ago

+
Card image
-
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

@@ -692,10 +696,12 @@ Only applies to small devices and above.
-
-

Card title

-

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.

-

Last updated 3 mins ago

+
+
+

Card title

+

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.

+

Last updated 3 mins ago

+
{% endexample %}