Responsive superset of space utilities.
See Bits.sass utils-dimension for more about original utilities.
Read more about Bits.sass toolkit.
- Bower:
bower install --save bits-sass-responsive-utils-dimension
- Download: zip, tar.gz
- Git:
git clone https://github.com/bits-sass/responsive-utils-dimension.git
bits-utils-ns
- utilities namespace, defaults to 'bits-'bits-responsive-dimension-columns
- list of column variations, used byv[n]-u-sizeXofY
v[n]-u-sizeFull
- make an element the width of its parent onn
breakpointv[n]-u-sizeAuto
- shrink element's width to its natural value onn
breakpoint, should be used in conjunction with display utilitiesv[n]-u-sizeXofY
(adjustable) - specifies the proportional width of an object onn
breakpoint
The v[n]-u-size[Full|Auto]
utils can be used to widen an element on narrow
screens and then, on a wider screen, shrink it to its natural width.
<button class="Button Button--primary u-sizeFull
v4-u-sizeAuto v4-inlineBlock">Hit me!</button>
The v[n]-u-sizeXofY
utils are especially useful in grid.
<div class="Grid">
<div class="Grid-cell u-size1of3 v4-u-size2of3">
…
</div>
<div class="Grid-cell u-size2of3 v4-u-size1of3">
…
</div>
</div>
- Sass 3.2+
- Google Chrome (latest)
- Opera (latest)
- Firefox 4+
- Safari 5+
- Internet Explorer 9+ (IE 8 requires a build step)