| 1 |
@charset "UTF-8"; |
| 2 |
|
| 3 |
/// Changes the display property used by other mixins called in the code block argument. |
| 4 |
/// |
| 5 |
/// @param {String} $display [block] |
| 6 |
/// Display value to be used within the block. Can be `table` or `block`. |
| 7 |
/// |
| 8 |
/// @example scss |
| 9 |
/// @include display-context(table) { |
| 10 |
/// .display-table { |
| 11 |
/// @include span-columns(6); |
| 12 |
/// } |
| 13 |
/// } |
| 14 |
/// |
| 15 |
/// @example css |
| 16 |
/// .display-table { |
| 17 |
/// display: table-cell; |
| 18 |
/// ... |
| 19 |
/// } |
| 20 |
|
| 21 |
@mixin display-context($display: block) { |
| 22 |
$scope-display: $container-display-table; |
| 23 |
$container-display-table: $display == table !global; |
| 24 |
|
| 25 |
@content; |
| 26 |
|
| 27 |
$container-display-table: $scope-display !global; |
| 28 |
} |