debian/missing-sources/bourbon-neat/app/assets/stylesheets/grid/_fill-parent.scss
raw| 1 | @charset "UTF-8"; |
| 2 | |
| 3 | /// Forces the element to fill its parent container. |
| 4 | /// |
| 5 | /// @example scss - Usage |
| 6 | /// .element { |
| 7 | /// @include fill-parent; |
| 8 | /// } |
| 9 | /// |
| 10 | /// @example css - CSS Output |
| 11 | /// .element { |
| 12 | /// width: 100%; |
| 13 | /// box-sizing: border-box; |
| 14 | /// } |
| 15 | |
| 16 | @mixin fill-parent() { |
| 17 | width: 100%; |
| 18 | |
| 19 | @if $border-box-sizing == false { |
| 20 | box-sizing: border-box; |
| 21 | } |
| 22 | } |