Level
The most basic implementation of the level component consists of the level container with any number of children. Layout styles are applied to the direct children of the level component using the > * selector.
<div class="level">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
Level is a flex based layout component. That means you can use the
@vremben/utilitypackage—specifically theflexmodule—to further customize your layout.
level_gap_[key]
Adjusts the gap spacing based on the provided key. Gap key output is based on the values in $gap-map variable map.
<div class="level level_gap_xs">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
Available Variations
level_gap_nonelevel_gap_xslevel_gap_smlevel_gap_mdlevel_gap_lglevel_gap_xl
level_gap-x_[key]
Adjusts the horizontal gap spacing based on the provided key. Gap key output is based on the values in $gap-map variable map.
<div class="level level_gap-x_xl">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
Available Variations
level_gap-x_nonelevel_gap-x_xslevel_gap-x_smlevel_gap-x_mdlevel_gap-x_lglevel_gap-x_xl
level_gap-y_[key]
Adjusts the vertical gap spacing based on the provided key. Gap key output is based on the values in $gap-map variable map.
<div class="level level_gap-y_xl">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
Available Variations
level_gap-y_nonelevel_gap-y_xslevel_gap-y_smlevel_gap-y_mdlevel_gap-y_lglevel_gap-y_xl
level_nowrap
Removes the ability for level children to wrap and allows them to shrink as needed.
<div class="level level_nowrap">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
Sass Variables
| Variable | Default | Description |
|---|---|---|
$prefix-block | null | String to prefix blocks with. |
$prefix-element | "__" | String to prefix elements with. |
$prefix-modifier | "_" | String to prefix modifiers with. |
$prefix-modifier-value | "_" | String to prefix modifier values with. |
$gap | 2em | The default gap spacing for the level component. |
$gap-map | Sass Map Ref ↓ | Used to output gap modifiers. |
$gap-map
Used to output gap modifiers.
$gap-map: (
"none": 0,
"xs": 1px,
"sm": 0.25em,
"md": 0.5em,
"lg": 1em,
"xl": 1.5em,
) !default;