From ce35655f5fbea77745b5f9ca76c390e6abb9711c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 22 Dec 2016 16:47:10 -0800 Subject: [PATCH] card deck footer example --- docs/components/card.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/docs/components/card.md b/docs/components/card.md index 6fa30a9f6d..c963054098 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -563,7 +563,9 @@ When using card groups with footers, their content will automatically line up. {% endexample %} -Only applies to small devices and above. +### Card decks + +Need a set of equal width and height cards that aren't attached to one another? Use card decks. By default, card decks require two wrapping elements: `.card-deck-wrapper` and a `.card-deck`. We use table styles for the sizing and the gutters on `.card-deck`. The `.card-deck-wrapper` is used to negative margin out the `border-spacing` on the `.card-deck`. {% example html %}
@@ -595,8 +597,43 @@ Only applies to small devices and above. {% 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 %} +
+
+ Card image cap +
+

Card title

+

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

+
+ +
+
+ Card image cap +
+

Card title

+

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

+
+ +
+
+ Card image cap +
+

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.

+
+ +
+
+{% endexample %} Only applies to small devices and above.