Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generated by SassMeister.com.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body id="parent" class="hello">
<div class="inner">
<div class="test">This is some test text</div>
</div>
</body>
</html>
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
#parent{
color: red;
.inner{
.hello &{
color: green;
}
.goodbye &{
color: red;
}
}
}
#parent {
color: red;
}
.hello #parent .inner {
color: green;
}
.goodbye #parent .inner {
color: red;
}
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body id="parent" class="hello">
<div class="inner">
<div class="test">This is some test text</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment