scratchx/sass/neat/grid/_fill-parent.scss

23 lines
379 B
SCSS
Raw Normal View History

2015-05-01 09:39:03 -04:00
@charset "UTF-8";
/// Forces the element to fill its parent container.
///
/// @example scss - Usage
/// .element {
/// @include fill-parent;
/// }
///
/// @example css - CSS Output
/// .element {
/// width: 100%;
/// box-sizing: border-box;
/// }
@mixin fill-parent() {
width: 100%;
@if $border-box-sizing == false {
box-sizing: border-box;
}
}