From 4982926dcfc66989f5f54c04d33c44a947cd919d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 29 Jun 2017 22:33:33 -0700 Subject: Drop offsets and push/pull for new order variants --- docs/4.0/layout/grid.md | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) (limited to 'docs') diff --git a/docs/4.0/layout/grid.md b/docs/4.0/layout/grid.md index 64eec3689..032d11652 100644 --- a/docs/4.0/layout/grid.md +++ b/docs/4.0/layout/grid.md @@ -520,19 +520,19 @@ In addition to column clearing at responsive breakpoints, you may need to **rese ### Flex order -Use flexbox utilities for controlling the **visual order** of your content. +Use `.order-` classes for controlling the **visual order** of your content. These classes are responsive, so you can set the `order` by breakpoint (e.g., `.order-1.order-md-2`). Includes support for `1` through `12` across all five grid tiers.
{% example html %}
-
+
First, but unordered
-
+
Second, but last
-
+
Third, but first
@@ -542,33 +542,21 @@ Use flexbox utilities for controlling the **visual order** of your content. ### Offsetting columns -Move columns to the right using `.offset-md-*` classes. These classes increase the left margin of a column by `*` columns. For example, `.offset-md-4` moves `.col-md-4` over four columns. +With the move to flexbox in v4, we no longer have v3's style of offset classes. Instead, use margin utilities like `.mr-auto` to force sibling columns away from one another.
{% example html %}
.col-md-4
-
.col-md-4 .offset-md-4
-
-
-
.col-md-3 .offset-md-3
-
.col-md-3 .offset-md-3
+
.col-md-4 .ml-auto
-
.col-md-6 .offset-md-3
-
-{% endexample %} +
.col-md-3 .ml-md-auto
+
.col-md-3 .ml-md-auto
- -### Push and pull - -Easily change the order of our built-in grid columns with `.push-md-*` and `.pull-md-*` modifier classes. - -
-{% example html %}
-
.col-md-9 .push-md-3
-
.col-md-3 .pull-md-9
+
.col-auto .mr-auto
+
.col-auto
{% endexample %}
-- cgit v1.2.3