O'Reilly logo

Sass for Web Designers by Dan Cederholm

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required