Skip to content

Instantly share code, notes, and snippets.

@sheriffderek
Last active July 22, 2019 17:57
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 sheriffderek/bbc81e7d6bb94953076a9419364171ae to your computer and use it in GitHub Desktop.
Save sheriffderek/bbc81e7d6bb94953076a9419364171ae to your computer and use it in GitHub Desktop.
Just an example to show people when they talk about the differences in pre-processor syntax
:root {
--my-mixin: {
background: #256dbd;
color: #f5f5f5;
}
}
body {
@apply --my-mixin;
}
my-mixin()
background: #256dbd
color: #f5f5f5
body
my-mixin()
@mixin my-mixin {
background: #256dbd;
color: #f5f5f5;
}
body {
@include my-mixin;
}
.my-mixin {
background: #256dbd;
color: #f5f5f5;
}
body {
.my-mixin();
}
@defmixin myMixin() {
background: #256dbd;
color: #f5f5f5;
}
body {
@mixin myMixin();
}
my-mixin() {
background: #256dbd
color: #f5f5f5
}
body {
my-mixin()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment