Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sass Snippets
// Use as -> text-shadow: blockytextshadows(1 5, #fff #eee);
@function blockytextshadows($widths, $colors) {
$count: length($colors);
$total: 0;
$output: '';
$currentwidth: 1;
@each $width in $widths {
$total: $total + $width;
}
@for $j from 1 through $count {
$width: nth($widths, $j);
@for $i from $currentwidth to ($currentwidth + $width) {
$color: nth($colors, $j);
$output: $output + '#{$color} #{$i}px #{$i}px 1px';
@if( $i < $total) {
$output: $output + ', ';
}
}
$currentwidth: $currentwidth + $width;
}
@return unquote($output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.