SASS – Split Space Delimited List Argument (x y z) into Variables

It was tough to spot this one in the docs:

How do you split an argument containing space delimited items?

The answer is the nth function.

@mixin something($breakpoint) {
$min: nth($breakpoint, 1);
$max: nth($breakpoint, 2);
}
something(0 100px); // $min / $max

1 Comment

  1. Hello mates, how is the whole thing, and what you would like to say
    regarding this paragraph, in my view its actually awesome in support of me.

Leave a Comment