Sha256: f7ff99530435debcd35ba329ab012a876c7263f8cbf3f4ef4a1d7a6556575b3a

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

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

// Format Nth
// ----------
// Format various nth-selectors
// - [$n]         : first | last | only | <math>
// - [$selector]  : child | of-type | last-child | last-of-type
@function format-nth(
  $n        : last,
  $selector : child
) {
  $key: last first only;
  @return if(index($key, $n), '#{$n}-#{$selector}', 'nth-#{$selector}(#{$n})');
}

Version data entries

2 entries across 2 versions & 1 rubygems

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