Taken and converted from https://gist.github.com/hatefulcrawdad/5068210 for SASS files.