aboutsummaryrefslogtreecommitdiff
path: root/docs/layout/flexbox-grid.md
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-24 14:27:52 -0700
committerMark Otto <[email protected]>2016-10-24 14:27:52 -0700
commitf7f3e62c662c88d578cf83e8245853d447b2aad9 (patch)
treebff6a0e3c05c3ff54dbc7507aa107022a5ca8772 /docs/layout/flexbox-grid.md
parent11d52ba9498990483d822a5a42d371393a110080 (diff)
parentcf5d94f6d5685c371dcb157af74a3c6b14ec8d8e (diff)
downloadbootstrap-f7f3e62c662c88d578cf83e8245853d447b2aad9.tar.xz
bootstrap-f7f3e62c662c88d578cf83e8245853d447b2aad9.zip
Merge branch 'v4-dev' into v4-docs-streamlined
Diffstat (limited to 'docs/layout/flexbox-grid.md')
-rw-r--r--docs/layout/flexbox-grid.md29
1 files changed, 26 insertions, 3 deletions
diff --git a/docs/layout/flexbox-grid.md b/docs/layout/flexbox-grid.md
index ec5a7365e..80db93c93 100644
--- a/docs/layout/flexbox-grid.md
+++ b/docs/layout/flexbox-grid.md
@@ -1,12 +1,13 @@
---
layout: docs
title: Flexbox grid system
+description: Documentation and examples for using Bootstrap's optional flexbox grid system.
group: layout
---
-Fancy a more modern grid system? [Enable flexbox support in Bootstrap](/getting-started/flexbox) to take full advantage of CSS's Flexible Box module for even more control over your site's layout, alignment, and distribution of content.
+Fancy a more modern grid system? [Enable flexbox support in Bootstrap]({{ site.baseurl }}/getting-started/flexbox/) to take full advantage of CSS's Flexible Box module for even more control over your site's layout, alignment, and distribution of content.
-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.
+Bootstrap's flexbox grid includes support for every feature from our [default grid system]({{ site.baseurl }}/layout/grid/), and then some. Please read the [default grid system docs]({{ site.baseurl }}/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!** 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.
@@ -21,7 +22,7 @@ Bootstrap's flexbox grid includes support for every feature from our [default gr
The flexbox grid system behaves similar to our default grid system, but with a few notable differences:
-- [Grid mixins](/layout/grid#sass-mixins) and [predefined classes](/layout/grid#predefined-classes) include support for flexbox. Just [enable flexbox support](/getting-started/flexbox) to utilize them as you would otherwise.
+- [Grid mixins]({{ site.baseurl }}/layout/grid#sass-mixins) and [predefined classes]({{ site.baseurl }}/layout/grid#predefined-classes) include support for flexbox. Just [enable flexbox support]({{ site.baseurl }}/getting-started/flexbox/) to utilize them as you would otherwise.
- Nesting, offsets, pushes, and pulls are all supported in the flexbox grid system.
- Flexbox grid columns without a set width will automatically layout with equal widths. For example, four columns will each automatically be 25% wide.
- Flexbox grid columns have significantly more alignment options available, including vertical alignment.
@@ -221,3 +222,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>