23 lines
446 B
SCSS
Executable File
23 lines
446 B
SCSS
Executable File
/// Forces the element to fill its parent container.
|
|
///
|
|
/// @example scss - Usage
|
|
/// .element {
|
|
/// @include fill-parent;
|
|
/// }
|
|
///
|
|
/// @example css - CSS Output
|
|
/// .element {
|
|
/// width: 100%;
|
|
/// -webkit-box-sizing: border-box;
|
|
/// -moz-box-sizing: border-box;
|
|
/// box-sizing: border-box;
|
|
/// }
|
|
|
|
@mixin fill-parent() {
|
|
width: 100%;
|
|
|
|
@if $border-box-sizing == false {
|
|
@include box-sizing(border-box);
|
|
}
|
|
}
|