Skip to content

Instantly share code, notes, and snippets.

@githiro
Last active August 29, 2015 14:13
Show Gist options
  • Save githiro/fc2250b079475e3cc7fa to your computer and use it in GitHub Desktop.
Save githiro/fc2250b079475e3cc7fa to your computer and use it in GitHub Desktop.
SASS: concat-list function. Concat nested list or arglist to the flat list.
@function concat-list($nestedList) {
$list: ();
@each $elem in $nestedList {
@if type-of($elem) == list {
$elem: concat-list($elem);
}
$list: join($list, $elem);
}
@return $list;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment