Created
February 5, 2015 09:06
-
-
Save frontendbeast/077e14b390f6e0dd0533 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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