<h3>Vertical Alignment</h3>
<p><em><strong>NOTE:</strong> this will only work with elements that are inline or inline-block</em></p>
<hr />
<p><code>.u-vertical-align-baseline<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element baseline from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-top<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element top from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-middle<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element middle from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-bottom<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element bottom from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-text-top<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element text-top from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-text-bottom<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element text-bottom from the breakpoint referenced in the class name.</p>
<p>The above utility classes will allow you to amend the vertical alignment of an element based on the breakpoint reference you use from the default list below:</p>
<pre>
$breakpoints: (
xs: 0px,
sm: 544px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1440px
) !default;
</pre>
<p>Utility classes will be built for all breakpoints apart from ones with a 0px value.</p>
<p><em>The breakpoints here are the same breakpoints used for <stong>@vivid-web/flexboxgrid-sass</stong>.</em></p>
<p>Each breakpoint creates a min-width media query version of the utility class. This allows chaining of class names for responsive display styles. For instance, is you use the <strong>.u-vertical-align-top</strong> class on an element, the element with
have <code>vertical-align: top;</code> from a window width of 0px, and then on if you add <strong>.u-vertical-align-middle-md</strong> to the same element, it will have <code>vertical-align: middle;</code> from a window width of 768px</p>
<h4>Breakpoint Specific</h4>
<p>If you only want a certain style for a specific breakpoint, and no others, you can use the <strong>-specific</strong> suffix.</p>
<p>For example, if you want the vertical alignment to the top from a window width 768px to 992px then you can use <strong>.u-vertical-align-top-md-specific</strong></p>
<h3>Vertical Alignment</h3>
<p><em><strong>NOTE:</strong> this will only work with elements that are inline or inline-block</em></p>
<hr />
<p><code>.u-vertical-align-baseline<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element baseline from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-top<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element top from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-middle<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element middle from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-bottom<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element bottom from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-text-top<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element text-top from the breakpoint referenced in the class name.</p>
<p><code>.u-vertical-align-text-bottom<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the vertical alignment of an element text-bottom from the breakpoint referenced in the class name.</p>
<p>The above utility classes will allow you to amend the vertical alignment of an element based on the breakpoint reference you use from the default list below:</p>
<pre>
$breakpoints: (
xs: 0px,
sm: 544px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1440px
) !default;
</pre>
<p>Utility classes will be built for all breakpoints apart from ones with a 0px value.</p>
<p><em>The breakpoints here are the same breakpoints used for <stong>@vivid-web/flexboxgrid-sass</stong>.</em></p>
<p>Each breakpoint creates a min-width media query version of the utility class. This allows chaining of class names for responsive display styles. For instance, is you use the <strong>.u-vertical-align-top</strong> class on an element, the element with have <code>vertical-align: top;</code> from a window width of 0px, and then on if you add <strong>.u-vertical-align-middle-md</strong> to the same element, it will have <code>vertical-align: middle;</code> from a window width of 768px</p>
<h4>Breakpoint Specific</h4>
<p>If you only want a certain style for a specific breakpoint, and no others, you can use the <strong>-specific</strong> suffix.</p>
<p>For example, if you want the vertical alignment to the top from a window width 768px to 992px then you can use <strong>.u-vertical-align-top-md-specific</strong></p>
/* No context defined for this component. */
There are no notes for this item.