A suite of utility classes to change the widths of elements. Typically used to size columns in the layout object, but works with any element.
Note: Some examples feature light grey backgrounds so it's easier to see what's going on. In the toolkit itself, these are transparent.
Width classes closely resemble those featured in many popular grid frameworks, and consist of a
u-width-NUMBER-OF-COLUMNS/TOTAL-COLUMNS format. For full width variants such as
u-full-width alias exists for them to increase readability where you just need an easy way to make an elementthe full width of its parent container.
Offset width classes allow you push content along by the specified number of columns.
A number of special width utility class variants exist, which allow you to introduce more classical flexbox behavour:-
u-width-grow- Makes the element grow to its maxiumum available size.
u-width-shrink- Makes the element shrink to its smallest possible size.
u-width-auto- Allows you to reset widths. Useful if you need to cancel certain width behaviour in certain viewports.
All of these have responsive variables, as per the usual methods.