Skip to content

Instantly share code, notes, and snippets.

@Snugug
Created February 20, 2012 19:56
Show Gist options
  • Select an option

  • Save Snugug/1871028 to your computer and use it in GitHub Desktop.

Select an option

Save Snugug/1871028 to your computer and use it in GitHub Desktop.
@for $i from 1 through $shadows-count {
$shadow: nth($shadows, $i);
$color: nth($shadow, 1);
$count: nth($shadow, 2);
@for $i from $currentwidth to ($currentwidth + $count) {
$x: $x + $x-delta;
$y: $y + $y-delta;
$output: $output + '#{$color} #{$x}px #{$y}px 1px';
@if($i < $total - 1) {
$output: $output + ', ';
}
}
$currentwidth: $currentwidth + $count;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment