Flexbox
Order
Utilities for controls how flex items are ordered.
Variant
Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited
API
class | css |
---|---|
order-first | order: -9999 |
order-last | order: 9999 |
order-none | order: 0 |
class | css |
---|---|
order-1 | order: 1 |
order-2 | order: 2 |
order-3 | order: 3 |
order-4 | order: 4 |
order-5 | order: 5 |
order-6 | order: 6 |
order-7 | order: 7 |
order-8 | order: 8 |
order-9 | order: 9 |
order-10 | order: 10 |
order-11 | order: 11 |
order-12 | order: 12 |
Usage
Original
1
order-5
2
order-1
3
order-4
4
order-3
5
order-2
1
order-last
2
3
4
order-first
5
<div class="flex">
<div class="order-4">
...
</div>
<div class="order-1">
...
</div>
</div>
HTML
.dummy-parent {
@extend
.flex;
}
.dummy-child-4 {
@extend
.order-4;
}
.dummy-child-1 {
@extend
.order-1;
}
SCSS