Sha256: 5dae0ece37f8f51cbced552ad95e748e67d83f17855b40e1a6b463980ef115e2

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

// Nth- helpers
// ============

// Format various nth-selectors
@function format-nth(
  $n        : last,
  $selector : child
) {
  @if ($n == 'last') or ($n =='first') or ($n =='only') {
    $selector: '#{$n}-#{$selector}';
  } @else {
    $selector: 'nth-#{$selector}(#{$n})';
  }
  @return $selector;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.2 sass/susy/helpers/_nth.scss