Skip to content

Instantly share code, notes, and snippets.

@branneman
Last active December 16, 2015 20:49
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 branneman/5495230 to your computer and use it in GitHub Desktop.
Save branneman/5495230 to your computer and use it in GitHub Desktop.
SASS Mixin — Single/double colon generated content
@mixin before-after {
@if $old-ie {
&:before, &:after {
@content;
}
} @else {
&::before, &::after {
@content;
}
}
}
@mixin before {
@if $old-ie {
&:before {
@content;
}
} @else {
&::before {
@content;
}
}
}
@mixin after {
@if $old-ie {
&:after {
@content;
}
} @else {
&::after {
@content;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment