Created
August 29, 2013 16:01
-
-
Save simonsmith/6380014 to your computer and use it in GitHub Desktop.
Vertical spacing classes for Sass. Useful with Bootstrap
This file contains hidden or 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
| // Vertical spacing classes | |
| // ------------------------------------ | |
| @for $i from 1 through 30 { | |
| $val: $i + 0px; | |
| .mb#{$i} { | |
| margin-bottom: $val; | |
| } | |
| .mt#{$i} { | |
| margin-top: $val; | |
| } | |
| .pt#{$i} { | |
| padding-top: $val; | |
| } | |
| .pb#{$i} { | |
| padding-bottom: $val; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment