Skip to content

Instantly share code, notes, and snippets.

@jlong
Created September 4, 2012 21: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 jlong/3626595 to your computer and use it in GitHub Desktop.
Save jlong/3626595 to your computer and use it in GitHub Desktop.
Flags?
// Contrived example:
@mixin text-shadow($value, !important) {
text-shadow: $value $important;
}
a {
@include text-shadow(none) !important;
}
// Another contrived example:
@mixin button(!ie6, !ie7) {
// some styles
@if ($ie6) { /* optional styles for ie6 */ }
@if ($ie7) { /* optional styles for ie7 */ }
}
.button {
@include button !ie7 !ie6;
}
// Useful for other stuff?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment