diff --git a/docs/layout/grid.md b/docs/layout/grid.md index 58e51946e9..4d0d3e6e8e 100644 --- a/docs/layout/grid.md +++ b/docs/layout/grid.md @@ -514,13 +514,13 @@ Use flexbox utilities for controlling the **visual order** of your content. {% example html %}
-
+
First, but unordered
-
+
Second, but last
-
+
Third, but first
diff --git a/docs/utilities/flexbox.md b/docs/utilities/flexbox.md index 9b6add5c46..9bca028486 100644 --- a/docs/utilities/flexbox.md +++ b/docs/utilities/flexbox.md @@ -354,9 +354,9 @@ Change the _visual_ order of specific flex items with a handful of `order` utili {% example html %}
-
First flex item
+
First flex item
Second flex item
-
Third flex item
+
Third flex item
{% endexample %} @@ -365,7 +365,7 @@ Responsive variations also exist for `order`. {% for bp in site.data.breakpoints %} - `.order{{ bp.abbr }}-first` - `.order{{ bp.abbr }}-last` -- `.order{{ bp.abbr }}-unordered`{% endfor %} +- `.order{{ bp.abbr }}-0`{% endfor %} ## Align content diff --git a/scss/utilities/_flex.scss b/scss/utilities/_flex.scss index 1b98aaa3fa..cc696785dc 100644 --- a/scss/utilities/_flex.scss +++ b/scss/utilities/_flex.scss @@ -6,9 +6,9 @@ @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); - .flex#{$infix}-first { order: -1; } - .flex#{$infix}-last { order: 1; } - .flex#{$infix}-unordered { order: 0; } + .order#{$infix}-first { order: -1; } + .order#{$infix}-last { order: 1; } + .order#{$infix}-0 { order: 0; } .flex#{$infix}-row { flex-direction: row !important; } .flex#{$infix}-column { flex-direction: column !important; }