Skip to content

Instantly share code, notes, and snippets.

@callmeloureiro
Forked from jhonnymoreira/pad.styl
Last active August 29, 2015 14:17
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 callmeloureiro/60a3bf3941fc2f14f958 to your computer and use it in GitHub Desktop.
Save callmeloureiro/60a3bf3941fc2f14f958 to your computer and use it in GitHub Desktop.
/*
* 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