aboutsummaryrefslogtreecommitdiff
path: root/docs/components/card.md
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-21 20:26:17 -0800
committerGitHub <[email protected]>2016-12-21 20:26:17 -0800
commiteb2e1102be0f4641ee3e5c4e7853360d5a04e3d8 (patch)
tree3d6618ccf2bba7c05f18bd30ad34121ea95015d4 /docs/components/card.md
parentf464a5b214307b0b28c7ffb351768293a8c4b235 (diff)
downloadbootstrap-eb2e1102be0f4641ee3e5c4e7853360d5a04e3d8.tar.xz
bootstrap-eb2e1102be0f4641ee3e5c4e7853360d5a04e3d8.zip
Flexbox all the time (Drop IE9 support and remove $enable-flex option) (#21389)
* remove the $enable-flex variable option * remove bootstrap-flex.css dist file and it's grunt task * remove the separate flex css file for docs; it's all the same now * remove flexbox docs (porting some to the main grid docs in next commit) * clean up few grid docs bits to simplify copy, start to mention flexbox * port relevant flexbox-grid.md content to grid.md - clean up mixins - update how it works section - bring over sizing and alignment sections * remove the $enable-flex from the options.md page * update lead paragraph to mention flexbox * update migration to mention loss of ie9 support * remove mention of flexbox dist file * clarify IE support * making a note * remove flexbox variant mentions from component docs - updates docs for media object, navs, list group, and cards to consolidate docs - no more need to callout flexbox variants since it's now the default * remove $enable-flex if/else from sass files * remove flex dist files * update scss lint property order to account for flex properties * linting * change to numberless classes for autosizing, wrap in highlighting div * bump gruntfile and postcss to ie10 * redo intro sections * rearrange * phew, redo hella grid docs - rearrange all the things - consolidate some bits * remove reference to flexbox mode * more border action for demo * Make some changes to the .card's in .card-deck's to ensure footers align to the bottom
Diffstat (limited to 'docs/components/card.md')
-rw-r--r--docs/components/card.md50
1 files changed, 22 insertions, 28 deletions
diff --git a/docs/components/card.md b/docs/components/card.md
index efce231ce..8dfc8c861 100644
--- a/docs/components/card.md
+++ b/docs/components/card.md
@@ -435,7 +435,7 @@ In need of a colored card, but not the hefty background colors they bring? Repla
## Groups
-Use card groups to render cards as a single, attached element with equal width and height columns. By default, card groups use `display: table;` and `table-layout: fixed;` to achieve their uniform sizing. However, enabling [flexbox mode]({{ site.baseurl }}/getting-started/flexbox/) can switch that to use `display: flex;` and provide the same effect.
+Use card groups to render cards as a single, attached element with equal width and height columns. Card groups use `display: flex;` to achieve their uniform sizing.
Only applies to small devices and above.
@@ -474,34 +474,30 @@ Need a set of equal width and height cards that aren't attached to one another?
Only applies to small devices and above.
-**ProTip!** If you enable [flexbox mode]({{ site.baseurl }}/getting-started/flexbox/), you can remove the `.card-deck-wrapper`.
-
{% example html %}
-<div class="card-deck-wrapper">
- <div class="card-deck">
- <div class="card">
- <img class="card-img-top" data-src="holder.js/100px200/" alt="Card image cap">
- <div class="card-block">
- <h4 class="card-title">Card title</h4>
- <p class="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>
- <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
- </div>
+<div class="card-deck">
+ <div class="card">
+ <img class="card-img-top" data-src="holder.js/100px200/" alt="Card image cap">
+ <div class="card-block">
+ <h4 class="card-title">Card title</h4>
+ <p class="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>
+ <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
- <div class="card">
- <img class="card-img-top" data-src="holder.js/100px200/" alt="Card image cap">
- <div class="card-block">
- <h4 class="card-title">Card title</h4>
- <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
- <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
- </div>
+ </div>
+ <div class="card">
+ <img class="card-img-top" data-src="holder.js/100px200/" alt="Card image cap">
+ <div class="card-block">
+ <h4 class="card-title">Card title</h4>
+ <p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
+ <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
- <div class="card">
- <img class="card-img-top" data-src="holder.js/100px200/" alt="Card image cap">
- <div class="card-block">
- <h4 class="card-title">Card title</h4>
- <p class="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>
- <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
- </div>
+ </div>
+ <div class="card">
+ <img class="card-img-top" data-src="holder.js/100px200/" alt="Card image cap">
+ <div class="card-block">
+ <h4 class="card-title">Card title</h4>
+ <p class="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>
+ <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
@@ -513,8 +509,6 @@ Cards can be organized into [Masonry](http://masonry.desandro.com)-like columns
Only applies to small devices and above.
-**Heads up!** This is **not available in IE9 and below** as they have no support for the [`column-*` CSS properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Columns/Using_multi-column_layouts).
-
{% example html %}
<div class="card-columns">
<div class="card">