Skip to content

Clear

Utilities for applying clear type an element.

Quick reference

ClassProperty
clear-noneclear: none;
clear-leftclear: left;
clear-rightclear: right;
clear-bothclear: both;

Usage

Use the clear-{key} class for set up the clear type.


<div class="clear-left">
    <!-- ... -->
</div>

Applying conditionally

Breakpoints and media queries

You can also control the responsive breakpoint with variant class modifiers. For example lg:clear-right will be only apply on large screens size and above.


<div class="clear-left lg:clear-right">
    <!-- ... -->
</div>

Customization

Extend your theme

By default, the configuration provides a handful of general purpose clear type utilities. You can easily filter the default scales using the Sass configuration.

@use "lasco" with (
    $extend: (
        "clear": (
            left
        )
    )
);

Disabled

You can easily disable the properties you don't need to use.

@use "lasco" with (
    $extend: (
        "clear": false
    )
);

Released under the MIT License.