Created
December 5, 2013 23:17
-
-
Save pdaoust/7815836 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.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@function f-fold($func, $prev, $list, $args...) { | |
@each $item in $list { | |
$prev: call($func, $prev, $item, $args...); | |
} | |
@return $prev; | |
} | |
p { | |
$colors: red green blue orange; | |
colors: $colors; | |
mixed-color: f-fold(mix, white, $colors, 50%); | |
} |
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
p { | |
colors: red green blue orange; | |
mixed-color: #9f724f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment