Skip to content

Instantly share code, notes, and snippets.

@scottkellum
Created January 10, 2013 14:32
Show Gist options
  • Save scottkellum/4502443 to your computer and use it in GitHub Desktop.
Save scottkellum/4502443 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com, the Sass playground.
// Sass v3.2.3
// Compass v0.12.2
@import "compass";
// your function to do whatever
@function add-px($n) {
@return $n * 1px;
}
// your mixin
@mixin width($n) {
// call your function
width: add-px($n);
}
// write styles
foo {
@include width(200);
}
foo {
width: 200px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment