Order
Controls the order of flex and grid items.
Utility | Properties |
---|---|
or-0 | order: 0; |
or-1 | order: 1; |
or-2 | order: 2; |
or-3 | order: 3; |
or-4 | order: 4; |
or-5 | order: 5; |
or-6 | order: 6; |
or-7 | order: 7; |
or-8 | order: 8; |
or-9 | order: 9; |
or-10 | order: 10; |
or-l | order: -9999; |
or-f | order: 9999; |
This example showcases various order values: -9999 and 9999.
- The or-l utility sets the order property to -9999, placing the item at the beginning of the flex container.
- The or-f utility sets the order property to 9999, placing the item at the end of the flex container.
A
B
C
<div class="d-f jc-sb tc-white"> <div class="ai-c bg-indigo d-f d-14 jc-c or-f rad-1">A</div> <div class="ai-c bg-indigo d-f d-14 jc-c rad-1">B</div> <div class="ai-c bg-indigo d-f d-14 jc-c or-l rad-1">C</div></div>
Conditional styles
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Media modifiers
You can combine responsive breakpoints like sm:or-*
,md:or-*
, lg:or-*
, and xxl:or-*
allows targeting specific utilities in different viewports.
<div class="or-f md:or-l ..."></div>
Hover modifiers
Alternatively, you can apply :hover
by using h:or-*
utility to override elements and change their values when hovering over them.
<div class="or-f h:or-l ..."></div>