Skip to content

Instantly share code, notes, and snippets.

@iamalfonse
Created July 7, 2015 00:27
Show Gist options
  • Save iamalfonse/9433362b289c7ff7dd31 to your computer and use it in GitHub Desktop.
Save iamalfonse/9433362b289c7ff7dd31 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="projectinfo black-bg">
<h1>Testing</h1>
<div class="child-element">
<p>This is the content for the child element</p>
</div>
</div>
// ----
// libsass (v3.2.5)
// ----
.projectinfo,
.profileinfo {
color: #999;
&.black-bg {
background: #333;
h1 {
color: red;
}
}
.child-element {
color: #fff;
background: rgba(95,162,219,0.5);
}
}
.projectinfo,
.profileinfo {
color: #999;
}
.projectinfo.black-bg,
.profileinfo.black-bg {
background: #333;
}
.projectinfo.black-bg h1,
.profileinfo.black-bg h1 {
color: red;
}
.projectinfo .child-element,
.profileinfo .child-element {
color: #fff;
background: rgba(95, 162, 219, 0.5);
}
<div class="projectinfo black-bg">
<h1>Testing</h1>
<div class="child-element">
<p>This is the content for the child element</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment