Last active
May 22, 2017 18:19
-
-
Save hamlim/7927a2ddc7c80f19ac530ee0c8589f02 to your computer and use it in GitHub Desktop.
Shared Variable File in Sass
This file contains 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 FeatureComponentA() { | |
.FeatureComponentA { | |
color: $Feature-color; | |
border-radius: $Feature-radius; | |
} | |
} |
This file contains 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 FeatureComponentB() { | |
.FeatureComponentB { | |
color: $Feature-color; | |
height: $Feature-height; // this is specific so might not be in the shared variables | |
} | |
} |
This file contains 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
@import 'partialA'; | |
@import 'feature_variables'; | |
@include FeatureComponentA(); |
This file contains 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
@import 'partialB'; | |
@import 'feature_variables'; | |
@include FeatureComponentB(); |
This file contains 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
$Feature-color: blue; | |
$Feature-radius: 5px; | |
$Feature-height: 5rem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment