Float

<h3>Float</h3>
<p><code>.u-float-right<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the element float right from the breakpoint referenced in the class name.</p>
<p><code>.u-float-left<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the element float left from the breakpoint referenced in the class name.</p>
<p><code>.u-float-none<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the element float none from the breakpoint referenced in the class name.</p>
<hr />
<p>The above utility classes will allow you to amend the float behaviour 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-float-right</strong> class on an element, the element with have <code>float: right;</code>    from a window width of 0px, and then on if you add <strong>.u-float-none-md</strong> to the same element, it will have <code>float: none;</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 only want to have the element not be floated from a window width 768px to 992px then you can use <strong>.u-float-none-md-specific</strong></p>
<h3>Float</h3>
<p><code>.u-float-right<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the element float right from the breakpoint referenced in the class name.</p>
<p><code>.u-float-left<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the element float left from the breakpoint referenced in the class name.</p>
<p><code>.u-float-none<strong>-{BREAKPOINT REFERENCE}</strong></code> Makes the element float none from the breakpoint referenced in the class name.</p>
<hr />
<p>The above utility classes will allow you to amend the float behaviour 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-float-right</strong> class on an element, the element with have <code>float: right;</code> from a window width of 0px, and then on if you add <strong>.u-float-none-md</strong> to the same element, it will have <code>float: none;</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 only want to have the element not be floated from a window width 768px to 992px then you can use <strong>.u-float-none-md-specific</strong></p>
/* No context defined for this component. */

There are no notes for this item.