Created
January 7, 2015 18:10
-
-
Save drewbolles/540e028279abe34bd9a9 to your computer and use it in GitHub Desktop.
Sass functions
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
/** | |
* @file | |
* A collection of sass functions. | |
*/ | |
/** | |
* spacing unit | |
* This function returns either the base spacing unit, or | |
* the modification passed through. Accepts fractions or decimals | |
* | |
* @TODO | |
* Create error reporting for improper variables | |
*/ | |
@function spacing-unit($unit: $base-spacing-unit) { | |
@if $unit == $base-spacing-unit { | |
@return $unit; | |
} @else { | |
@return $unit * $base-spacing-unit; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment