Last active
May 7, 2018 20:57
-
-
Save jeff-mccarthy/d552b6977a5dfda429f779ffb4eb8d0d to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass Spacer Generator | |
// | |
// Output a list of spacers with a consistent multiplier | |
// to standardize spacing of margins, padding, etc. | |
// ---- | |
$spacer-size: 8px; | |
@function spacer($multiplier) { | |
@return $multiplier * $spacer-size; | |
} | |
.element { | |
padding: spacer(6); | |
} |
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
.element { | |
padding: 48px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment