Skip to content

Instantly share code, notes, and snippets.

@frontendbeast
Created February 5, 2015 09:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frontendbeast/077e14b390f6e0dd0533 to your computer and use it in GitHub Desktop.
Save frontendbeast/077e14b390f6e0dd0533 to your computer and use it in GitHub Desktop.
// Instead of doing this
@mixin svg-after($name) {
&:after {
@include svg($name);
}
}
@mixin svg-before($name) {
&:before {
@include svg($name);
}
}
// Can I do something like
@mixin svg($name, $position: false) {
@if($position!=false) {
&:before {
}
// Rest of mixin
@if($position!=false) {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment