Skip to content

Instantly share code, notes, and snippets.

@spint
Created March 2, 2011 15:22
Show Gist options
  • Save spint/851083 to your computer and use it in GitHub Desktop.
Save spint/851083 to your computer and use it in GitHub Desktop.
sass mixins to apply shadow and rounding to boxes
@mixin shadow($a, $b, $color)
-webkit-box-shadow: $a $a $b $color
-moz-box-shadow: $a $a $b $color
box-shadow: $a $a $b $color
@mixin rounding($rad)
-moz-border-radius: $rad /* FF1+ */
-webkit-border-radius: $rad /* Saf3-4, iOS 1+, Android 1.5+ */
border-radius: $rad
.box
@include shadow(2px, 5px, rgba(0,0,0,0.07))
@include rounding(3px)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment