Sha256: f82e8963150186a2953fda237461dcb0ae6893ecf189dccea67905b31a45cab4

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

// ------------------------------------------------------------------- //
//  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;
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kentucky-0.5.2 app/assets/stylesheets/kentucky/mixins/_headings.scss
kentucky-0.5.1 app/assets/stylesheets/kentucky/mixins/_headings.scss
kentucky-0.5.0 app/assets/stylesheets/kentucky/mixins/_headings.scss