-
-
Save callmeloureiro/60a3bf3941fc2f14f958 to your computer and use it in GitHub Desktop.
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
/* | |
* Simple mixin to add padding with the function rem() from http://kouto-swiss.io/ | |
*/ | |
pad(arguments) | |
if length(arguments) == 1 | |
padding: rem(arguments[0]) | |
if length(arguments) == 2 | |
padding: rem(arguments[0]) rem(arguments[1]) | |
if length(arguments) == 3 | |
padding: rem(arguments[0]) rem(arguments[1]) rem(arguments[2]) | |
if length(arguments) == 4 | |
padding rem(arguments[0]) rem(arguments[1]) rem(arguments[2]) rem(arguments[3]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment