Last active
December 21, 2015 17:39
-
-
Save dawidw/6341783 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
@mixin fight-with($monster) { | |
@if $monster == mechagodzilla { | |
.post__title{ &:after { @content } } | |
} | |
@else if $monster == spacegodzilla { | |
@content; | |
} | |
} | |
.post--mechagodzilla { | |
@include fight-with(mechagodzilla) { content: 'fight with lightning' } | |
} | |
.post--spacegodzilla { | |
@include fight-with(spacegodzilla) { content: 'fight with Armageddon'; .post_title:after{ content: ":)"} } | |
} |
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
.post--mechagodzilla .post__title:after { | |
content: "fight with lightning"; | |
} | |
.post--spacegodzilla { | |
content: 'fight with Armageddon'; | |
} | |
.post--spacegodzilla .post_title:after { | |
content: ":)"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment