Skip to content

Instantly share code, notes, and snippets.

@sunnyluthra
Created September 9, 2015 07:53
Show Gist options
  • Save sunnyluthra/77bb11f50c01551e462c to your computer and use it in GitHub Desktop.
Save sunnyluthra/77bb11f50c01551e462c to your computer and use it in GitHub Desktop.

Revisions

  1. sunnyluthra created this gist Sep 9, 2015.
    8 changes: 8 additions & 0 deletions padding-margin.sass
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    @mixin class-generator($classNamespace, $fromValue, $toValue, $multiple, $property, $unit) {
    @for $i from $fromValue to $toValue {
    .#{$classNamespace}#{$i*$multiple} {
    #{$property}: #{$i*$multiple}#{$unit};
    }
    }
    }
    @include class-generator(pt, 0, 25, 5, padding-top, px);