Skip to content

Instantly share code, notes, and snippets.

@irmela
Forked from anonymous/index.html
Last active August 29, 2015 14:20
Show Gist options
  • Save irmela/2dd724c303de44c20469 to your computer and use it in GitHub Desktop.
Save irmela/2dd724c303de44c20469 to your computer and use it in GitHub Desktop.
<div class="container">
<div class="child"></div>
</div>
@import "compass/css3";
.container {
width: 33%;
margin: 0 auto;
background-color: red;
height: 1em; padding: 1em 0;
}
.child {
@include nested-context(33%, center);
background-color: blue;
height: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment