// ------------------------------------------------------------------- // // Style any number of headings at once // // .foo{ // @include headings(1,3){ // color: #B4DA55; // } // } // ------------------------------------------------------------------- // @mixin headings($from: 1, $to: 6){ %base-heading{ @content } @if $from >= 1 and $to <= 6{ @for $i from $from through $to{ h#{$i}{ @extend %base-heading; } } } }