Last active
August 29, 2015 14:14
-
-
Save thykka/6c50911ef9591d3c53f0 to your computer and use it in GitHub Desktop.
Some useful scss mixins
This file contains hidden or 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
| @mixin longShadow ($length: 4, $color: rgba(0,0,0,0.3)){ | |
| $shadow: ""; | |
| @for $i from 1 to $length { | |
| $shadow: $shadow + $i + "px " + $i + "px 0 " + $color; | |
| @if $i < $length - 1 { | |
| $shadow: $shadow + ", " | |
| } | |
| } | |
| $shadow: unquote($shadow); | |
| box-shadow: $shadow; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment