Utilities
Autofit Row
Make content expand to fill remaining space or create equally spaced content with
.autofit-row,.autofit-col, and.autofit-col-expand.
.autofit-row, .autofit-col, .autofit-col-expand shouldn't be used for laying out site pages, rather it's most useful for small chunks of content inside other components e.g. cards or list-groups.
.autofit-col are flex-direction: column; (IE 10-11 workaround because they don't respect min/max width or min/max height in flex items) become block level elements by default, see https://www.w3.org/TR/css-flexbox-1/#flex-items. If you want to display content inside .autofit-col using floats, inline, or inline-block wrap the content with <div class="autofit-section"></div>.
Autofit Spacing
The class
autofit-paddedshould be added toautofit-rowto give padding to allautofit-colthat are direct children ofautofit-row.The class
autofit-padded-no-gutters-xgives padding to allautofit-colthat are direct children ofautofit-rowand has negative margins on the left and right to offset the padding (similar to Bootstrap'srowclass).The class
autofit-padded-no-gutters-ygives padding to allautofit-colthat are direct children ofautofit-rowand has negative margins on the top and bottom to offset the padding (Generally used if nesting.autofit-row).The class
autofit-padded-no-guttersgives padding to allautofit-colthat are direct children ofautofit-rowand has negative margins on the top, right, bottom, and left to offset the padding (Generally used if nesting.autofit-row).
Autofit Float
The component
autofit-floator.autofit-float-{sm|md}-downsimulates the behavior of floated elements on.autofit-row. Items that break to a new line will be aligned to the left.This pattern provides the benefit of aligning content via flexbox without losing the behavior of floated elements at the expense of extra markup.
Autofit Float End
Mimic "right floated" elements.
The component
.autofit-float-endor.autofit-float-end-{sm|md}-downsimulates the behavior of "right floated" elements on.autofit-row. Items that break to a new line will be aligned right.Aligning items to the left will require nesting
autofit-float autofit-rowinside anautofit-col autofit-col-expandwith the use of helper classes.
Inline Item
Use
inline-item inline-item-before,inline-item inline-item-middle, andinline-item inline-item-afterto provide consistent spacing between text and icons in elements such as links or buttons. This can also be used in other components that have inline content (e.g.,badgeandlabel).