Class | Properties |
.flex-wrap | flex-wrap: wrap; |
.flex-no-wrap | flex-wrap: no-wrap; |
.flex-wrap-reverse | flex-wrap: wrap-reverse; |
Usage
No wrapping
Use .flex-no-wrap
to prevent flex items from wrapping, causing inflexible items to overflow the container if necessary.
Wrap
Use .flex-wrap
to allow flex items to wrap.
Wrap reverse
Use .flex-wrap-reverse
to wrap flex items in the reverse direction.
Variants
By default, only responsive variants are generated for flex wrap utilities.
Responsive
To control the justification of flex content at a specific breakpoint, add a {screen}:
prefix to any existing flex wrap utility.
For example, use .md:flex-wrap
to apply the flex-wrap
utility at only medium screen sizes and above.
Hover-state
To include hover-state variants like .hover:flex-wrap
, add "flex-wrap"
to the $hover-variants
variable when recompiling your CSS:
$hover-variants: (
// ...
"flex-wrap",
);