Responsive superset of space utilities.
See Bits.sass utils-space for more about original utilities.
Read more about Bits.sass toolkit.
- Bower:
bower install --save bits-sass-responsive-utils-space
- Download: zip, tar.gz
- Git:
git clone https://github.com/bits-sass/responsive-utils-space.git
bits-utils-ns
- utilities namespace, defaults to 'bits-'
bits-responsive-space-collapse-include
- whether to include these utils, defaults to falsebits-responsive-space-collapse-margin
- size of margin top / bottom that should be collapsed
bits-responsive-space-spacing-include
- whether to include these utils, defaults to falsebits-responsive-space-spacing-directions
- specifies list of generated<D>
directionsbits-responsive-space-spacing-sizes
- specifies list of generated<s>
sizes
bits-responsive-space-gutter-include
- whether to include these utils, defaults to truebits-responsive-space-gutter-supported-children
- specifies list of supported children that should have a gutter inbetweenbits-responsive-space-gutter-types
- specifies list of generated<T>
typesbits-responsive-space-gutter-sizes
- specifies list of generated<s>
sizes
bits-responsive-space-stretch-include
- whether to include these utils, defaults to falsebits-responsive-space-stretch-types
- specifies list of generated<T>
typesbits-responsive-space-stretch-sizes
- specifies list of generated<s>
sizes
v[n]-u-collapseTop
- collapse first child's top margin onn
breakpointv[n]-u-collapseBottom
- collapse last child's bottom margin onn
breakpoint
v[n]-u-margin<D><s>
(adjustable) - margin of sizes
in the directionD
onn
breakpointv[n]-u-padding<D><s>
(adjustable) - padding of sizes
in the directionD
onn
breakpoint
v[n]-u-gutter<T><s>
(adjustable) - gutter of sizes
and typeT
onn
breakpoint
v[n]-u-stretch<T><s>
(adjustable) - stretching of sizes
and typeT
onn
breakpoint
Only utilities that are enable by default are 'gutters', because they are the
most used ones. You should avoid using u-[margin|padding]Ds
, use a responsive
component instead.
List of items with a medium vertical gutter. On v4
breakpoint, the gutter
becomes large.
<ul class="u-gutterVm v4-u-gutterVl">
<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>
Apply gutter on v2
breakpoint only.
<ul class="v2-u-gutterVm">
<li class="v2-u-gutter-item">…</li>
<li class="v2-u-gutter-item">…</li>
<li class="v2-u-gutter-item">…</li>
<li class="v2-u-gutter-item">…</li>
</ul>
Grid that has a small gutter by default. On v4
breakpoint, the gutter changes to
medium and on v7
it becomes large.
<div class="Grid u-gutterHs v4-u-gutterHm v7-u-gutterHl">
<div class="Grid-cell">
…
</div>
<div class="Grid-cell">
…
</div>
</div>
N.B. You need to add Grid-cell
to
bits-responsive-space-gutter-supported-children
list.
- Sass 3.2+
- Google Chrome (latest)
- Opera (latest)
- Firefox 4+
- Safari 5+
- Internet Explorer 9+ (IE 8 requires a build step)