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.


@jsonmez discrete math 1 -- an interesting class but the teacher could not teach so it was impossible. I got a 30 on the final and passed

@AustenAllred need a good book recommendation…what’s the best book you’ve read this year? Any topic

Dear developers: github is not a versioning tool…GIT is the tool. Please update your resumes accordingly

I fight the urge to make chocolate milk and use it in my cereal every day

@audiblesupport really? What's the specific thing in the App Store TOS stopping you? Genuinely curious here

Your president has kids from three different moms, took five bankruptcies and hasn't paid taxes in approximately 19…

@ianlandsman they don't trust him to give him real intel. They'll give him a Where's Waldo book and tell him to search for IS in there.