-
-
Save chriseppstein/603697 to your computer and use it in GitHub Desktop.
This file contains 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
// Proposed syntax: !remaining applied to the last positional argument becomes a | |
// comma list of any unbound positional arguments. | |
@mixin multi-shadow($shadows !remaining){ | |
-moz-box-shadow: $shadows; | |
-webkit-box-shadow: $shadows; | |
-o-box-shadow: $shadows; | |
box-shadow: $shadows; | |
} | |
.shadowed { | |
@include multi-shadow(rgba(0,0,0,.35) 0 2px 3px 0 inset, rgba(255,255,255,.5) 0 1px 2px); | |
} |
This file contains 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
.shadowed { | |
-moz-box-shadow: rgba(0,0,0,.35) 0 2px 3px 0 inset, rgba(255,255,255,.5) 0 1px 2px; | |
-webkit-box-shadow: rgba(0,0,0,.35) 0 2px 3px 0 inset, rgba(255,255,255,.5) 0 1px 2px; | |
-o-box-shadow: rgba(0,0,0,.35) 0 2px 3px 0 inset, rgba(255,255,255,.5) 0 1px 2px; | |
box-shadow: rgba(0,0,0,.35) 0 2px 3px 0 inset, rgba(255,255,255,.5) 0 1px 2px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment