Flex Direction
Utilities for applying flex-direction
type of element.
Quick reference
Class | Property |
---|---|
flex-row | flex-direction: row; |
flex-row-reverse | flex-direction: row-reverse; |
flex-column | flex-direction: column; |
flex-column-reverse | flex-direction: column-reverse; |
Usage
Use the flex-{key}
class for set up the flex-direction type.
<div class="flex-row">
<!-- ... -->
</div>
Applying conditionally
Breakpoints and media queries
You can also control the responsive breakpoint with variant class modifiers. For example lg:flex-column
will be only apply on large screens size and above.
<div class="flex-row lg:flex-column">
<!-- ... -->
</div>
Customization
Extend your theme
By default, the configuration provides a handful of general purpose flex-direction
type utilities. You can easily filter the default scales using the Sass configuration.
@use "lasco" with (
$extend: (
"flex-direction": (
column
)
)
);
Disabled
You can easily disable the properties you don't need to use.
@use "lasco" with (
$extend: (
"flex-direction": false
)
);