aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-05-11 23:23:11 -0700
committerMark Otto <[email protected]>2016-05-11 23:23:11 -0700
commitfc75a2c78fe4cee5afc506b60c5a448adea990a6 (patch)
tree0549659769891db4b95f56f2c87066db570d6588 /docs
parent15874b7afc62ddacbcd57ad566ba8ef827f040a6 (diff)
parentfda41fd440a49042924c5cda065bf2f57bd76895 (diff)
downloadbootstrap-fc75a2c78fe4cee5afc506b60c5a448adea990a6.tar.xz
bootstrap-fc75a2c78fe4cee5afc506b60c5a448adea990a6.zip
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
Diffstat (limited to 'docs')
-rw-r--r--docs/components/card.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/components/card.md b/docs/components/card.md
index 86c555abb..992f4a138 100644
--- a/docs/components/card.md
+++ b/docs/components/card.md
@@ -508,7 +508,7 @@ Only applies to small devices and above.
## Columns
-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`.
+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`.
Only applies to small devices and above.
@@ -576,3 +576,16 @@ Only applies to small devices and above.
</div>
</div>
{% endexample %}
+
+Card columns can also be extended and customized with some additional code. Shown below is an extension of the `.card-columns` class using the same CSS we use—CSS columns— to generate a set of responsive tiers for changing the number of columns.
+
+{% highlight scss %}
+.card-columns {
+ @include media-breakpoint-only(lg) {
+ column-count: 4;
+ }
+ @include media-breakpoint-only(xl) {
+ column-count: 5;
+ }
+}
+{% endhighlight %}