$limit: 100;

@for $i from 1 through $limit {
  .mt-#{$i} {
    margin-top: #{$i}px;
  }
  .pt-#{$i} {
    padding-top: #{$i}px;
  }
}

@for $i from 1 through $limit {
  .mr-#{$i} {
    margin-right: #{$i}px;
  }
  .pr-#{$i} {
    padding-right: #{$i}px;
  }
}

@for $i from 1 through $limit {
  .mb-#{$i} {
    margin-bottom: #{$i}px;
  }
  .pb-#{$i} {
    padding-bottom: #{$i}px;
  }
}

@for $i from 1 through $limit {
  .ml-#{$i} {
    margin-left: #{$i}px;
  }
  .pl-#{$i} {
    padding-left: #{$i}px;
  }
}