wingrunr21 / flat-ui-sass

Designmodo's Flat-UI ported to SASS with support for Flat-UI Pro
MIT License
156 stars 44 forks source link

Add Less'ish fade() function #12

Closed metaskills closed 10 years ago

metaskills commented 10 years ago

I came across this when using the .navbar-embossed. The converted less files have quite a few fade functions. To complicate things, there is even one place where it uses a decimal vs the proper percentage that Less requires. This function handles that situation too. It is odd in that it has to flip the value that is passed down to Sass's fade_out function. I tested my compiled out both visually and within the code – a perfect match to the pre-compiled flat-ui-pro.

metaskills commented 10 years ago

For posterity, I found this Sass pull request for a decimal() function helpful and interesting when making this PR.

https://github.com/nex3/sass/pull/159