Skip to content

Instantly share code, notes, and snippets.

View ShaneHowell's full-sized avatar

Shane ShaneHowell

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ShaneHowell on github.
  • I am jet71dl (https://keybase.io/jet71dl) on keybase.
  • I have a public key whose fingerprint is A573 F106 F2B8 9DF8 78CD 6AD0 A568 EF9B 0D96 8D44

To claim this, I am signing this object:

@ShaneHowell
ShaneHowell / box-shadow.scss
Created August 28, 2015 14:16
SASS Function to allow number incrementation in a box-shadow property.
@function box-shadow($orientation, $from, $to, $horz, $vert, $color) {
$box-shadow: ''; // default
// If the $orientation is "horz".
@if ($orientation == "horz") {
// Loop through specified amount.
@for $i from $from through $to {
$box-shadow: $box-shadow + (($i * $horz + 'px ') + ($vert + 'px 0 ' + $color', '));
}