4. Sass and Media Queries
I wanted the main focus of this book to be the basics of Sass, proving that Sass doesn’t have to mean ripping apart your work-flow. But in this final chapter, I do want to talk about some advanced techniques with Sass and media queries that have greatly simplified some otherwise complex CSS in my daily work.
Sass is as powerful as you want it to be. Using it for variables and a few mixins will make your life easier. But it can go beyond that if you want it to. I’d like to share how I’ve used Sass to build responsive, HiDPI-capable projects, and how it once again makes the heavy lifting quite manageable.
Nested Media Queries
One of the foundations of building responsive websites is the CSS media query. The ability to ...