Skip to content

Instantly share code, notes, and snippets.

@tonyfinlay
Created July 30, 2015 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonyfinlay/399718bff7a171940f3d to your computer and use it in GitHub Desktop.
Save tonyfinlay/399718bff7a171940f3d to your computer and use it in GitHub Desktop.
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