Skip to content

Instantly share code, notes, and snippets.

@webdesignberlin
Last active August 29, 2015 14:06
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 webdesignberlin/1f9ff65bed179cf7e448 to your computer and use it in GitHub Desktop.
Save webdesignberlin/1f9ff65bed179cf7e448 to your computer and use it in GitHub Desktop.
SASS | make heading classes extended from headings
@for $h from 1 to 7 {
.h#{$h} {
@extend h#{$h};
}
}
/*
* Sample Output:
* h1, .h1 {
* color: red;
* }
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment