Sha256: 44ef351fb6f3a9d3bed654b95076a9cdecbea547fae558c9c27c993e2fd6161f

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

// Row Start & End
// ===============

// Row
// ---
// Apply to any layout element that should force a new layout row.
// - [$flow]  : ltr | rtl
@mixin row(
  $flow: $flow
) {
  @include pie-clearfix;
  clear: from($flow);
}

// Unrow
// -----
// Cancel the row() effect, e.g. when using media queries.
// - [$flow]  : ltr | rtl
@mixin unrow {
  clear: none;
  &:after {
    content: none;
    display: inline;
    clear: none;
  }
}

// First
// -----
// - [$flow]  : ltr | rtl
@mixin first(
  $flow: $flow
) {
  @include float-first($flow);
}

// Alpha
// -----
// - [$flow]  : ltr | rtl
@mixin alpha(
  $flow: $flow
) {
  @include float-first($flow);
}

// Nth-First
// ---------
// - [$value]   : first | last | only | <math>
// - [$type]    : child | last-child | of-type | last-of-type
@mixin nth-first(
  $value: first,
  $type: child
) {
  &:#{format-nth($value,$type)} { @include first(); }
}

// Nth-Alpha
// ---------
// - [$value]   : first | last | only | <math>
// - [$type]    : child | last-child | of-type | last-of-type
@mixin nth-alpha(
  $value: first,
  $type: child
) {
  @include nth-first($value, $type);
}

// Last
// ----
// - [$flow]  : ltr | rtl
@mixin last(
  $flow: $flow
) {
  @include float-last($flow);
}

// Omega
// -----
// - [$flow]  : ltr | rtl
@mixin omega(
  $flow: $flow
) {
  @include float-last($flow);
}

// Nth-Last
// --------
// - [$value]   : first | last | only | <math>
// - [$type]    : child | last-child | of-type | last-of-type
@mixin nth-last(
  $value: last,
  $type: child
) {
  &:#{format-nth($value,$type)} { @include last(); }
}

// Nth-Omega
// ---------
// - [$value]   : first | last | only | <math>
// - [$type]    : child | last-child | of-type | last-of-type
@mixin nth-omega(
  $value: last,
  $type: child
) {
  @include nth-last($value, $type);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.4 sass/susy/language/susy/_rows.scss
susy-2.0.0.alpha.3 sass/susy/language/susy/_rows.scss