Sha256: 68cb036c1c06ecea1e14ac811edd8b72eb9b3bafc9512542408a6866ffdc8007

Contents?: true

Size: 1.57 KB

Versions: 65

Compression:

Stored size: 1.57 KB

Contents

@charset "UTF-8";

/// 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

65 entries across 58 versions & 14 rubygems

Version Path
federalist-basic-report-theme-0.1.7 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-4.2.0 _sass/uswds/lib/grid/_row.scss
jekyll-theme-uswds-0.1.0 _sass/uswds/lib/grid/_row.scss
federalist-basic-report-theme-0.1.5 _sass/uswds/lib/grid/_row.scss
federalist-basic-report-theme-0.1.4 _sass/uswds/lib/grid/_row.scss
federalist-basic-report-theme-0.1.3 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-4.1.0 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-4.0.0 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-3.0.0 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-2.2.1 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-2.2.1 assets/uswds/scss/lib/grid/_row.scss
uswds-jekyll-2.2.0 assets/uswds/scss/lib/grid/_row.scss
uswds-jekyll-2.2.0 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-2.1.0 assets/uswds/scss/lib/grid/_row.scss
uswds-jekyll-2.1.0 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-2.0.1 assets/uswds/scss/lib/grid/_row.scss
uswds-jekyll-2.0.1 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-2.0.0 assets/uswds/scss/lib/grid/_row.scss
uswds-jekyll-2.0.0 _sass/uswds/lib/grid/_row.scss
uswds-jekyll-1.4.1 assets/uswds/scss/lib/grid/_row.scss