Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xto3na/f1a018609ab3be65a568955c3d9f0bf4 to your computer and use it in GitHub Desktop.
Save xto3na/f1a018609ab3be65a568955c3d9f0bf4 to your computer and use it in GitHub Desktop.
Paddings and margins helpers generate in SCSS
@for $i from 0 through 50 {
.mt-#{$i} {
margin-top: #{$i}px !important;
}
}
@for $i from 0 through 50 {
.mb-#{$i} {
margin-bottom: #{$i}px !important;
}
}
@for $i from 0 through 50 {
.mr-#{$i} {
margin-right: #{$i}px !important;
}
}
@for $i from 0 through 50 {
.ml-#{$i} {
margin-left: #{$i}px !important;
}
}
@for $i from 0 through 50 {
.pb-#{$i} {
padding-bottom: #{$i}px !important;
}
}
@for $i from 0 through 50 {
.pt-#{$i} {
padding-top: #{$i}px !important;
}
}
@for $i from 0 through 50 {
.pl-#{$i} {
padding-left: #{$i}px !important;
}
}
@for $i from 0 through 50 {
.pr-#{$i} {
padding-right: #{$i}px !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment