SASS Math function
SASS Math function
- Started
- Last post
- 3 Responses
- voiceof
Anyone here good with math and creating functions with SASS. I created an equation that accomplishes what I want, but it's really inelegant. I know it can be written more efficiently. Anyone want to give it a go?
Here's what I have.
@mixin adjust-vertical-rhythm($number, $more-space-above:0, $more-space-below:0) {
margin-top: ((10 - ($number % 10)) * 1px) + ($inuit-base-line-height * $more-space-above);
margin-bottom: ($inuit-base-line-height - (10 - ($number % 10))) + ($inuit-base-line-height * $more-space-below);
}
- voiceof0
Nevermind I see quite a few issues with this, so I'm scrapping it
- detritus0
You're using this..?