Skip to content

Instantly share code, notes, and snippets.

@nicollecastrog
Last active August 29, 2015 14:01
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 nicollecastrog/a3c38e6fee4b5f14c3ef to your computer and use it in GitHub Desktop.
Save nicollecastrog/a3c38e6fee4b5f14c3ef to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@mixin button($font-size, $bg) {
font-size: $font-size;
background: $bg;
}
p {
@include button(400px, white);
}
h1 {
@include button(30px, #bada55);
}
p {
font-size: 400px;
background: white;
}
h1 {
font-size: 30px;
background: #bada55;
}
@nicollecastrog
Copy link
Author

Using SCSS mixins to set up functions you can then simply pass parameters to generate "easily-customizable" CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment