Skip to content

Instantly share code, notes, and snippets.

@birkestroem
Created May 1, 2014 08:08
Show Gist options
  • Save birkestroem/302f9ed9d67e0a6376ae to your computer and use it in GitHub Desktop.
Save birkestroem/302f9ed9d67e0a6376ae to your computer and use it in GitHub Desktop.
@function debug($list) {
$result: #{"[ "};
@each $item in $list {
@if length($item) > 1 {
$result: $result#{debug($item)};
}
@else {
$result: $result#{$item};
}
@if index($list, $item) != length($list) {
$result: $result#{", "};
}
}
$result: $result#{" ]"};
@return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment