aboutsummaryrefslogtreecommitdiff
path: root/docs/layout/flexbox-grid.md
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-09-15 10:20:57 -0700
committerMark Otto <[email protected]>2016-09-15 10:20:57 -0700
commit64dcb8b5073293daa911d2b274fd875f31693317 (patch)
tree112821f9bdd9b51f8953521cc2f34a537ccf74a2 /docs/layout/flexbox-grid.md
parent15f522fd4ae3fe7933d526f045b0b2df22a35291 (diff)
parent63129112bbea91f7cd62014f162f857f50084656 (diff)
downloadbootstrap-64dcb8b5073293daa911d2b274fd875f31693317.tar.xz
bootstrap-64dcb8b5073293daa911d2b274fd875f31693317.zip
Merge branch 'v4-dev' into v4-navbars
Diffstat (limited to 'docs/layout/flexbox-grid.md')
-rw-r--r--docs/layout/flexbox-grid.md37
1 files changed, 35 insertions, 2 deletions
diff --git a/docs/layout/flexbox-grid.md b/docs/layout/flexbox-grid.md
index 6d372a96c..d15d6fb99 100644
--- a/docs/layout/flexbox-grid.md
+++ b/docs/layout/flexbox-grid.md
@@ -9,7 +9,7 @@ Fancy a more modern grid system? [Enable flexbox support in Bootstrap](/getting-
Bootstrap's flexbox grid includes support for every feature from our [default grid system](/layout/grid), and then some. Please read the [default grid system docs](/layout/grid) before proceeding through this page. Features that are covered there are only summarized here. Please note that **Internet Explorer 9 does not support flexbox**, so proceed with caution when enabling it.
{% callout warning %}
-**Heads up!** The flexbox grid documentation is only functional when flexbox support is explicitly enabled.
+**Heads up!** This flexbox grid documentation is powered by an additional CSS file that overrides our default grid system's CSS. This is only available in our hosted docs and is disabled in development.
{% endcallout %}
## Contents
@@ -59,7 +59,7 @@ When flexbox support is enabled, you can utilize breakpoint-specific column clas
{% endexample %}
</div>
-Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths.
+Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column.
<div class="bd-example-row">
{% example html %}
@@ -75,6 +75,17 @@ Auto-layout for flexbox grid columns also means you can set the width of one col
3 of 3
</div>
</div>
+ <div class="row">
+ <div class="col-xs">
+ 1 of 3
+ </div>
+ <div class="col-xs-5">
+ 2 of 3 (wider)
+ </div>
+ <div class="col-xs">
+ 3 of 3
+ </div>
+ </div>
</div>
{% endexample %}
</div>
@@ -210,3 +221,25 @@ Flexbox utilities for horizontal alignment also exist for a number of layout opt
</div>
{% endexample %}
</div>
+
+## Reordering
+
+Flexbox utilities for controlling the **visual order** of your content.
+
+<div class="bd-example-row">
+{% example html %}
+<div class="container">
+ <div class="row">
+ <div class="col-xs flex-xs-unordered">
+ First, but unordered
+ </div>
+ <div class="col-xs flex-xs-last">
+ Second, but last
+ </div>
+ <div class="col-xs flex-xs-first">
+ Third, but first
+ </div>
+ </div>
+</div>
+{% endexample %}
+</div>