Sha256: 002196cd7e40554b48c97bf89c7164ea654dd6a56ef63ec74f00d99140adac5d
Contents?: true
Size: 932 Bytes
Versions: 121
Compression:
Stored size: 932 Bytes
Contents
/* =logger Sass debugging and inspection tools ---------------------------------------------------------------------------- */ $verbose: false; @function logger($message) { @if $verbose { @debug $message; } @return $verbose; } @function inspect($list, $type: false, $root: true) { $line-break: "\A "; $result: if($type, "(list:#{length($list)})[ "+ $line-break, "[ " + $line-break ); $space: if($root, "", " " ); @each $item in $list { $result: $result + " "; @if length($item) > 1 { $result: $result + inspect($item, $type, false); } @else { $result: if($type, $result + $space + "(" + type-of($item) + ") " + $item, $result + $space + $item ); } @if index($list, $item) != length($list) { $result: $result + ", " + $line-break; } } $result: $result + $line-break + $space + "]"; @return quote($result); }
Version data entries
121 entries across 121 versions & 1 rubygems