Last active
December 29, 2015 11:59
-
-
Save bcackerman/7667435 to your computer and use it in GitHub Desktop.
Create a list of CSS elements that can be used in the view for margin/padding.
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
@each $property in margin, padding { | |
@each $location in top, right, bottom, left { | |
@for $i from 0 through 15 { | |
.#{$property}-#{$location}-#{$i * 10} { #{$property}-#{$location}: 10px * $i; } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will create a list of elements for margin/padding, top/right/bottom/left from 0px to 150px in increments of 10px.
Ex:
This is useful to use in your views (reusable elements).