Vertical Align
A series of utility classes that adjust the vertical-alignment property of a inline selector, with support for responsive modifiers.
Install
npm install seed-vertical-align --save
Dependencies
Usage
seed-vertical-align
provides a vertical aligments for inline elements.
See the list of responsive modifiers.
Class | Vertical Aligment |
---|---|
.u-va-bottom |
bottom |
.u-va-inherit |
inherit |
.u-va-initial |
initial |
.u-va-middle |
middle |
.u-va-text-bottom |
text-bottom |
.u-va-text-top |
text-top |
.u-va-top |
top |
.u-va-top |
top |
Example
Prospector?
You're outta your box!
<span class="u-va-middle tx-h1">Prospector?</span>
<span>You're outta your box!</span>
Configurations
Below are the default Sass configuration variables for seed-vertical-align. The variables can be found in the pack’s _config.scss
file.
seed-vertical-align/_config.scss
// Namespace
$seed-vertical-align-namespace: u-va !default;
// Alignment
$seed-vertical-align-alignments: (
bottom: bottom,
inherit: inherit,
initial: initial,
middle: middle,
text-bottom: text-bottom,
text-top: text-top,
top: top,
) !default;