Sha256: 6437c2ab3c0bdacc4ce60dfe9235af73a6efe4aa96057e2b2f97c59cd1ff83cb

Contents?: true

Size: 1.56 KB

Versions: 15

Compression:

Stored size: 1.56 KB

Contents

/// Designates the element as a row of columns in the grid layout. It clears the floats on the element and sets its display property. Rows can't be nested, but there can be more than one row element—with different display properties—per layout.
///
/// @param {String} $display (default)
///  Sets the display property of the element and the display context that will be used by its children. Can be `block` or `table`.
///
/// @param {String} $direction ($default-layout-direction)
///  Sets the layout direction. Can be `LTR` (left-to-right) or `RTL` (right-to-left).
///
/// @example scss - Usage
///  .element {
///    @include row();
///  }
///
/// @example css - CSS Output
///  .element {
///    *zoom: 1;
///    display: block;
///  }
///
/// .element:before, .element:after {
///   content: " ";
///   display: table;
/// }
///
/// .element:after {
///   clear: both;
/// }

@mixin row($display: default, $direction: $default-layout-direction) {
  @if $direction != $default-layout-direction {
    @include -neat-warn("The $direction argument will be deprecated in future versions in favor of the direction(){...} mixin.");
  }

  $layout-direction: $direction !global;

  @if $display != default {
    @include -neat-warn("The $display argument will be deprecated in future versions in favor of the display(){...} mixin.");
  }

  @if $display == table {
    display: table;
    @include fill-parent;
    table-layout: fixed;
    $container-display-table: true !global;
  }

  @else {
    @include clearfix;
    display: block;
    $container-display-table: false !global;
  }
}

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
active_admin_pro-0.2.4 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.2.3 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.2.2 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.2.1 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.2.0 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.8 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.7 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.6 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.5 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.4 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.3 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.2 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.1 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
active_admin_pro-0.1.0 app/assets/stylesheets/active_admin_pro/vendor/neat/grid/_row.scss
neat-1.7.0 app/assets/stylesheets/grid/_row.scss