Skip to content

Instantly share code, notes, and snippets.

@ThomasCrevoisier
Created July 7, 2016 20:22
Show Gist options
  • Save ThomasCrevoisier/9820e15d589e3ed137cff32600ed232d to your computer and use it in GitHub Desktop.
Save ThomasCrevoisier/9820e15d589e3ed137cff32600ed232d to your computer and use it in GitHub Desktop.
// In a file main.scss
@import 'plop';
@import 'hey';
// module _plop.scss
@mixin plop {
background: red;
}
// module _hey.scss
.hey {
@include plop;
}
// Conclusion
// -> the module _hey.scss can use everything defined in the module _plop.scss without importing it...
// -> looking at _hey.scss, the relation between the mixin plop and _plop.scss is far from obvious...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment