mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-12-11 00:31:01 -05:00
22 lines
379 B
SCSS
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;
|
|
}
|
|
}
|