Utility classes for spacing-related CSS. See other utilities.
Read more about Bits.sass toolkit.
- Bower:
bower install --save bits-sass-utils-space
- Download: zip, tar.gz
- Git:
git clone https://github.com/bits-sass/utils-space.git
See demo.
bits-utils-ns
- utilities namespace, defaults to 'bits-'
bits-space-collapse-margin
- size of margin top / bottom that should be collapsed
bits-space-spacing-directions
- specifies list of generated<D>
directionsbits-space-spacing-sizes
- specifies list of generated<s>
sizes
bits-space-gutter-supported-children
- specifies list of supported children that should have a gutter inbetweenbits-space-gutter-types
- specifies list of generated<T>
typesbits-space-gutter-sizes
- specifies list of generated<s>
sizes
bits-space-stretch-types
- specifies list of generated<T>
typesbits-space-stretch-sizes
- specifies list of generated<s>
sizes
u-collapseTop
- collapse first child's top marginu-collapseBottom
- collapse last child's bottom margin
u-margin<D><s>
(adjustable) - margin of sizes
in the directionD
u-padding<D><s>
(adjustable) - padding of sizes
in the directionD
u-gutter<T><s>
(adjustable) - gutter of sizes
and typeT
u-stretch<T><s>
(adjustable) - stretching of sizes
and typeT
List of items with a medium vertical gutter.
<ul class="u-gutterVm">
<li class="u-gutter-item">…</li>
<li class="u-gutter-item">…</li>
<li class="u-gutter-item">…</li>
<li class="u-gutter-item">…</li>
</ul>
Grid that has a small gutter between cells.
<div class="Grid u-gutterAs">
<div class="Grid-cell">
…
</div>
<div class="Grid-cell">
…
</div>
</div>
- Sass 3.2+
- Google Chrome (latest)
- Opera (latest)
- Firefox 4+
- Safari 5+
- Internet Explorer 8+