Skip to content

Flex Direction

Utilities for applying flex-direction type of element.

Quick reference

ClassProperty
flex-rowflex-direction: row;
flex-row-reverseflex-direction: row-reverse;
flex-columnflex-direction: column;
flex-column-reverseflex-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
    )
);

Released under the MIT License.