Skip to content

Instantly share code, notes, and snippets.

@paramburu
Created March 18, 2014 03:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save paramburu/9613303 to your computer and use it in GitHub Desktop.
Save paramburu/9613303 to your computer and use it in GitHub Desktop.
Sass recursive headings function (h1, h2, h3...)
@function headings($from:1, $to:6) {
@if $from == $to {
@return 'h#{$from}';
} @else {
@return 'h#{$from},' + headings($from+1, $to);
}
}
@Slieocode
Copy link

Great stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment