Skip to content

Instantly share code, notes, and snippets.

@fernandofuly
Last active July 15, 2016 13:47
Show Gist options
  • Save fernandofuly/287867223303b724b3423283289fbf04 to your computer and use it in GitHub Desktop.
Save fernandofuly/287867223303b724b3423283289fbf04 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
/* Parent selector and Nesting */
#demo {
&-child {margin: .5em;}
&child {margin: .5em;}
&.child {margin: .5em;}
& .child {margin: .5em;}
}
.container {
width: 90%;
margin: 0 auto;
.boxed-layout & {
background-color: #fff;
padding: 3em;
border: 1px solid #eaeaea;
border-width: 0 1px;
}
// The first header in .container
> header {
background-color: #fff;
}
}
/* Parent selector and Nesting */
#demo-child {
margin: .5em;
}
#demochild {
margin: .5em;
}
#demo.child {
margin: .5em;
}
#demo .child {
margin: .5em;
}
.container {
width: 90%;
margin: 0 auto;
}
.boxed-layout .container {
background-color: #fff;
padding: 3em;
border: 1px solid #eaeaea;
border-width: 0 1px;
}
.container > header {
background-color: #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment