chriseppstein/compass — pull request #848 by JohnAlbin (2012-04-14 04:03:42+00:00)
Title: Add $offset parameter to rhythm() function.

I was writing a mixin that needed to subtract a couple pixels from the vertical rhythm margin, just like the rhythm borders mixins do.

And then I noticed the math the rhythm border mixins are using is _almost_ identical to the math in the `rhythm()` function.

Keeping with DRY, I'd like to propose we add an $offset parameter to the `rhythm()` function.

Then I can use `rhythm()` in my mixin instead of copy/pasting/rewriting lines of code from the rhythm borders mixins.

Note that the $offset parameter is totally backwards compatible with existing usage of the `rhythm()` function. No one's existing Sass should be affected.