Created
May 1, 2014 08:08
-
-
Save birkestroem/302f9ed9d67e0a6376ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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