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.


@Smashburger you owe me $33.56 I've tried calling your east Windsor nj store and it's always closed. It's closed right now. I want my $ back

RT @ThatKevinSmith: And the Flashpoint Paradox has begun! Great close to @CW_TheFlash Season 2! Reveal of the man in the iron mask was just…

Gonna print a shirt: “I went to jury duty and all I got was this pamphlet on jury nullification.”

Then good news I have a solid one bar of service... #justice

Glad this room I'm waiting in is only half as hot as hell. Jesus Christ it's like they try to make this as shitty. #justice

Jury duty today. So far I've waited on 3 lines just to wait in a room. #justice

RT @Snowden: #Google's security expert blogged, discussing how #Allo is unsafe by default. Hours later, he erased that part. Lesson: Bos…

I need a solid #markdown editor for my mac..I’d love some sync functionality with either @Dropbox or @evernote anyone?

RT @davedevelopment: "Never write another loop again" Goto, am I right?

@AustenAllred I..uhh...maybe it's I get it it's like...uhh...I've got nothing. I literally & figuratively can't even.