Skip to content

Instantly share code, notes, and snippets.

@jdsteinbach
Created May 2, 2014 18:00
Show Gist options
  • Select an option

  • Save jdsteinbach/11481882 to your computer and use it in GitHub Desktop.

Select an option

Save jdsteinbach/11481882 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.6)
// Compass (v1.0.0.alpha.18)
// ----
/* You can generate nested selectors this: */
%parent {
text-align: center;
.single {
text-align: left;
}
h1 {
font-size: 2em;
}
}
.post-archive {
@extend %parent;
}
/* You cannot generate new selectors like this: */
%article {
font-size: 1em;
&-title {
font-size: 2em;
}
}
.post {
@extend %article;
}
/* You can generate nested selectors this: */
.post-archive {
text-align: center;
}
.post-archive .single {
text-align: left;
}
.post-archive h1 {
font-size: 2em;
}
/* You cannot generate new selectors like this: */
.post {
font-size: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment