scratchx/sass/neat/grid/_fill-parent.scss
2015-05-01 09:39:03 -04:00

22 lines
379 B
SCSS

@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;
}
}