Last active
October 15, 2019 00:39
-
-
Save ARHEIO/3b1d06defe0a089ee0cf0400d6c828d8 to your computer and use it in GitHub Desktop.
The difference between scss placeholders and scss mixins
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
// ---- | |
// Sass (vundefined) | |
// Compass (vundefined) | |
// dart-sass (v1.18.0) | |
// ---- | |
$MYBLUEEYES: #3587DA; | |
@mixin card { | |
border: 1px solid $MYBLUEEYES; | |
} | |
%otherCard { | |
border: 3px solid $MYBLUEEYES; | |
} | |
.card { | |
@include card; | |
} | |
.card2 { | |
@include card; | |
} | |
.card3 { | |
@extend %otherCard; | |
} | |
.card4 { | |
@extend %otherCard; | |
} |
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
.card4, .card3 { | |
border: 3px solid #3587DA; | |
} | |
.card { | |
border: 1px solid #3587DA; | |
} | |
.card2 { | |
border: 1px solid #3587DA; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment