marcorivm
6/3/2013 - 8:57 PM

Mixin for stylus that creates a solid drop shadow effect for a given distance and color. Usage box-shadow solidShadow(1..10, #000) Remembe

Mixin for stylus that creates a solid drop shadow effect for a given distance and color. Usage box-shadow solidShadow(1..10, #000) Remember the 1..10 part, it's important.

solidShadow(size, color = #000)
    shadows = '0px 0px #000'
	for n in size
		shadows += ', ' + n + 'px ' + n + 'px '
		shadows += color
	return unquote(shadows)