-h
in their class names instead of -w
The width selectors can be controlled on each breakpoint separately, and they can be used the way to target the children of a specific element, to remove the necessity of defining width on each child separately.
The relative width is basically percentage based and is calculated based on the numbers in a class selector.
un-w1
Returns the width of 100%
un-w1/2
Returns the width of 50%
un-w1/3
Returns the width of 33.33%
un-w1/4
Returns the width of 25%
un-w1/5
Returns the width of 20%
un-w1/6
Returns the width of 16.6%
1
1/2
1/2
1/3
1/3
1/3
1/4
1/4
1/4
1/4
1/5
1/5
1/5
1/5
1/5
1/6
1/6
1/6
1/6
1/6
1/6
The static width is based on the pre-defined width values in Ueyen, you can change them by overriding their SASS variables in Control Panel.
un-w-s
Returns the small width
un-w-m
Returns the medium width
un-w-l
Returns the large width
un-w-h
Returns the huge width
1
1/2
1/2
1/3
All the width selectors (relative & static) can have *
indicator after -w
. This will cause the width value applies to the element's children.
<div class="un-w*-s" >
<div>Small<div>
<div>Small</div>
<div>Small</div>
<div>Small</div>
</div>
<div class="un-w*-l" >
<div>Large<div>
<div>Large</div>
<div>Large</div>
<div>Large</div>
</div>
All the selectors in the basic mode can be followed by :s
to :h
(small to
huge) to have different number of items on each row.
The following elements have these class names: un-w*-1 un-w*-1/2:s un-w*-1/4:l
Width & Breakpoint
Width & Breakpoint
Width & Breakpoint
Width & Breakpoint
un-w*-1
The width of the children is 100% by default.
un-w*-1/2:s
The width become 50% on screens larger than breakpoint small.
un-w*-1/4:l
The width become 25% on screens larger than breakpoint large.