Sha256: e253d672eaa9a63811c1a4e8d81fdad9532e478bfb2cb654cc7ee32c1460a669

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

@charset "UTF-8";

/// Changes the display property used by other mixins called in the code block argument.
///
/// @param {String} $display (block)
///   Display value to be used within the block. Can be `table` or `block`.
///
/// @example scss
///   @include display-context(table) {
///    .display-table {
///      @include span-columns(6);
///     }
///   }
///
/// @example css
///   .display-table {
///      display: table-cell;
///      ...
///   }

@mixin display-context($display: block) {
  $scope-display: $container-display-table;
  $container-display-table: $display == table !global;

  @content;

  $container-display-table: $scope-display !global;
}

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
frozen-0.0.1 dummy/assets/stylesheets/neat/grid/_display-context.scss
neat-1.7.1 app/assets/stylesheets/grid/_display-context.scss