From 4538ac9b56e6390b4b4ca745dc749195859cb8f3 Mon Sep 17 00:00:00 2001 From: Alan Mooiman Date: Mon, 24 Oct 2016 11:23:56 -0400 Subject: Add documentation for col-{breakpoint}-auto --- docs/layout/flexbox-grid.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'docs') diff --git a/docs/layout/flexbox-grid.md b/docs/layout/flexbox-grid.md index 80db93c93..6fa04bf88 100644 --- a/docs/layout/flexbox-grid.md +++ b/docs/layout/flexbox-grid.md @@ -91,6 +91,37 @@ Auto-layout for flexbox grid columns also means you can set the width of one col {% endexample %} +Sometimes it's useful to have a column that lays itself out based on the natural width of its content, especially single line content like inputs, numbers, etc. Using the `col-{breakpoint}-auto` classes, you can guide this behavior as desired. This, in conjunction with [horizontal alignment](#horizontal-alignment) classes, is very useful for centering layouts with uneven column sizes as viewport width grows. + +
+{% example html %} +
+
+
+ 1 of 3 +
+
+ Variable width content +
+
+ 3 of 3 +
+
+
+
+ 1 of 3 +
+
+ Variable width content +
+
+ 3 of 3 +
+
+
+{% endexample %} +
+ ## Responsive flexbox Unlike the default grid system, the flexbox grid requires a class for full-width columns. If you have a `.col-sm-6` and don't add `.col-xs-12`, your `xs` grid will not render correctly. Note that flexbox grid tiers still scale up across breakpoints, so if you want two 50% wide columns across `sm`, `md`, and `lg`, you only need to set `.col-sm-6`. -- cgit v1.2.3 From 7cc086e2c1934fdf6dec5809f122f704e34e9892 Mon Sep 17 00:00:00 2001 From: judetucker Date: Wed, 26 Oct 2016 22:05:46 -0700 Subject: change the header nav description to include the new float --- docs/components/card.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/components/card.md b/docs/components/card.md index be9846a30..1bb0866fe 100644 --- a/docs/components/card.md +++ b/docs/components/card.md @@ -226,7 +226,7 @@ Card headers can be styled by adding `.card-header` to `` elements. ## Header nav -Use Bootstrap's nav pills or tabs within a card header. Be sure to always include a `.pull-*-*` utility class for proper alignment. +Use Bootstrap's nav pills or tabs within a card header. Be sure to always include a `.float-*-*` utility class for proper alignment. {% example html %}
-- cgit v1.2.3 From 45cbbad87113053d6adb97e260c8689f77a3a8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Einar=20Gangs=C3=B8?= Date: Thu, 27 Oct 2016 10:12:14 +0200 Subject: Docfix: Typo default -> secondary, and reorder --- docs/components/dropdowns.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md index 621b666f1..3e9948b3d 100644 --- a/docs/components/dropdowns.md +++ b/docs/components/dropdowns.md @@ -53,7 +53,7 @@ The best part is you can do this with any button variant, too:
- +
- +