Size Utilities
The size utility classes apply various percentage based widths to elements.
They can be used on almost anything, but they’re primarily used within
the grid system, along side the o-grid-cell
class. Keep in mind that all grid
cells start out stacked, up until the first breakpoint of 360px.
The size utitlities are all based on flexbox. See this CSS-Tricks article for a deeper look at flexbox.
Available Classes
Class Name | Responsive Class | Description |
---|---|---|
u-sizeFit |
u-[sm|md|lg]-sizeFit |
Make an element shrink wrap its content. |
u-sizeFull |
u-[sm|md|lg]-sizeFull |
Make an element span 100% width of it's parent. |
u-sizeFill |
u-[sm|md|lg]-sizeFill |
Make an element fill the remaining space. |
u-sizeFillAlt |
u-[sm|md|lg]-sizeFillAlt |
Distributes space based on the initial width and height of the element. |
u-sizeXofY |
u-[sm|md|lg]-sizeXofY |
Specify the proportional width of an object. X must be an integer less than Y . Y can be any of the following numbers: 2, 3, 4, 5, 6, 8, 10, 12.
|