Skip to content

Instantly share code, notes, and snippets.

@pdaoust
Created December 5, 2013 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdaoust/7815797 to your computer and use it in GitHub Desktop.
Save pdaoust/7815797 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@function f-apply($func, $list, $args...) {
$new-list: ();
@each $item in $list {
$new-list: append($new-list, call($func, $item, $args...));
}
@return $new-list;
}
p {
$colors: red green blue orange;
colors: $colors;
lightened-colors: f-apply(lighten, $colors, 10%);
}
p {
colors: red green blue orange;
lightened-colors: #ff3333 #00b300 #3333ff #ffb733;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment