How to Calculate Unitless Line-Heights with Sass

A couple of weeks ago I was working on a project and I realized the designer had wanted a specific `line-height` for a few different headlines. So how do we go from a pixel value (like 22px) to a unitless value (like 1.45)? It's actually pretty simple with Sass.


@AustenAllred you think that at some point you'll be able to tune those things never happens those toys are soul-grating

@coderabbi well caffeine doesn't speed up typing THAT way. You gotta drink it silly.

the older I get the more I realize this simple truth: cats are assholes

Any time I see a name trending on Twitter or Facebook I immediatelythink the person has died… :(

~15 years trying to make everyone separate HTML, JS & CSS. And then suddenly everything went south and we’re writin…

Wife: "Benji don't unzip that pillow!" Benji (3): "No I have to! It's my destiny!" I think he's been watching too much @LegoNinjago3

If #SuperMarioRun was just $9.99 to buy I would have done it. The whole play 3 levels then you gotta pay doesn't fly with me.

Ok. I just mixed vanilla ice cream into my coffee instead of milk and sugar...holy shit that was the best thing ever.

Remember how we all thought Dan Quayle was an idiot for spelling potato wrong?

Jumping Jesus Chirst…how is it that in 2016 `brew install mysql` STILL fails on every MBP I try it on.

Rex Tillerson's Wikipedia page was edited overnight. What was removed? His award of the Russian Order of Friendship…