Search

-max-sz

Lism provides content size tokens in the form --sz--{sz} (where {sz} = xs, s, m, l, xl), and corresponding -max-sz classes are available for each.

ClassCSS VariableValue
-max-sz:xs--sz--xs32rem
-max-sz:s--sz--s42rem
-max-sz:m--sz--m56rem
-max-sz:l--sz--l1280px
-max-sz:xl--sz--xl1600px

full & bleed

In addition, -max-sz provides the following special preset classes:

ClassDescription
-max-sz:fullWhen placed directly inside a has--gutter element, this class adds the gutter spacing on top of 100% to expand to the full size of the parent.
-max-sz:bleedExpands to the width of the outermost is--container, breaking through both content widths and nested containers to provide a page-wide full-bleed layout. When no is--container ancestor exists, it falls back to the viewport width (100svi).

Demo Page

You can see these -max-sz classes in action on a separate demo page.

大きい画面で見る

© Lism CSS. All rights reserved.