Last active
July 22, 2019 17:57
-
-
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
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
: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