Skip to content

Instantly share code, notes, and snippets.

@marinados
Last active February 17, 2016 15:46
Show Gist options
  • Save marinados/c6e7a04c7cdb608193c5 to your computer and use it in GitHub Desktop.
Save marinados/c6e7a04c7cdb608193c5 to your computer and use it in GitHub Desktop.
// child combinator (>)
ol > li {
color: red;
}
// general sibling combinator (~)
.featured-image ~ p {
font-size: 90%;
}
// adjacent sibling combinator
p + p {
margin: 0;
}
// @at-root
.grand-parent {
.parent {
@at-root .child {}
}
}
//using & for naming classes
.btn {
&-primary {}
&-secondary {}
}
-->
.btn-primary {}
.btn-secondary {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment