Skip to content

Instantly share code, notes, and snippets.

@Ryan-Haines
Last active August 3, 2017 20:11
Show Gist options
  • Save Ryan-Haines/ba10888d0828d394851d3da6063f70bb to your computer and use it in GitHub Desktop.
Save Ryan-Haines/ba10888d0828d394851d3da6063f70bb to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div id="parentA">
<span>hello!</span>
</div>
<div id="parentB">
<span>hello!</span>
</div>
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
@mixin textColor{
span{
color: green;
}
}
#parentA{
width: 100px;
height: 100px;
background-color:blue;
color: black;
@include textColor;
}
#parentB{
width: 100px;
height: 100px;
background-color:red;
color: black;
@include textColor;
}
#parentA {
width: 100px;
height: 100px;
background-color: blue;
color: black;
}
#parentA span {
color: green;
}
#parentB {
width: 100px;
height: 100px;
background-color: red;
color: black;
}
#parentB span {
color: green;
}
<div id="parentA">
<span>hello!</span>
</div>
<div id="parentB">
<span>hello!</span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment