Created
April 11, 2017 06:23
-
-
Save xto3na/f1a018609ab3be65a568955c3d9f0bf4 to your computer and use it in GitHub Desktop.
Paddings and margins helpers generate in SCSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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