Created
April 4, 2014 21:06
-
-
Save carwin/9983148 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin some-color-name($color) { | |
@if type-of($color) == 'map' { | |
background-image: linear-gradient(map-get($color, key1), map-get($color, key2)); | |
} | |
} | |
$derp: (key1: #ddd, key2: #ff0); | |
.div { | |
@include some-color-name($derp); | |
} |
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
.div { | |
background-image: linear-gradient(#dddddd, yellow); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment