Sha256: 47fcc98c22bdb5280c0b39eb4b652bc51bc34438d4017184ee661d6ab795437e
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 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 ) { @if ($n == 'last') or ($n =='first') or ($n =='only') { $selector: '#{$n}-#{$selector}'; } @else { $selector: 'nth-#{$selector}(#{$n})'; } @return $selector; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
susy-2.0.0.alpha.4 | sass/susy/helpers/_nth.scss |
susy-2.0.0.alpha.3 | sass/susy/helpers/_nth.scss |