Files
docker-webserver0/docker-persist/app/css/neat/grid/_fill-parent.scss
2024-10-19 18:11:09 +00:00

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