Perfectly center things along the x or y-axis, or perhaps both
- Group: Positioning
- Access: public
Name | Type | Description | Default |
---|---|---|---|
$className |
String | a CSS class name that will prefix all helpers | "center" |
$breakpoints |
Map | a map of grid breakpoints | config.$breakpoints |
<div class="pos-rel" style="height: 100px;">
<div class="center">absolute centered on both axis</div>
<div class="center-x">absolute centered on x axis</div>
<div class="center-axis-y-xs-up">absolute centered on y axis</div>
</div>
- 0.1.0
Clearfix
- Group: Positioning
- Access: public
Name | Type | Description | Default |
---|---|---|---|
$className |
String | a CSS class name that will prefix all helpers | "clearfix" |
$breakpoints |
Map | a map of grid breakpoints | config.$breakpoints |
@include clear($className: c, $breakpoints: ("sm": 480px));
<div class="clear-fix">...</div>
- 0.1.0 For modern browsers
- The space content is one way to avoid an Opera bug when the
contenteditable
attribute is included anywhere else in the document. Otherwise it causes space to appear at the top and bottom of elements that are clearfixed. - The use of
table
rather thanblock
is only necessary if using::before
to contain the top-margins of child elements.
- Nicolas Gallagher