Published: July 2016
Design websites faster than ever using Sass—the most mature and popular CSS meta-language. On any platform, integrate Sass into your project, create a reusable style guide, and use maps to drastically reduce duplication in your stylesheets. You’ll see how to code the right way in Sass with short, clear examples on two-page spreads that show the explanation on one side and code examples on the other. This ultimate guide to using Sass, written by its creator, is updated and expanded with all the new features found in Sass 3.4, making you an expert in no time.
Sass lets you write CSS faster and more easily by enabling you to use features that regular CSS doesn’t have yet. Bring the power of Sass to your projects, whether you use Node.js, Ruby, or any other programming language. This updated Pragmatic Guide gives you brief, targeted hands-on examples in an easy-to-follow modular format.
Use variables to easily change color values, measurements, or fonts across a whole project. Pare down large style sheets into comprehensible code with maps and placeholder selectors. Organize your Sass with media queries to make maintainable, responsive designs. Create your own layout systems and build shared tooling across projects that make designs more consistent. Learn the differences between extends and mixins. Build data structures to make creating site-wide color schemes a breeze, and use placeholder selectors to keep style sheets cleaner. Pass content through mixins, prevent accidental deep nesting of selectors, and use cutting-edge modular add-ons in the new Sass ecosystem, such as Eyeglass, Susy, and Bourbon Neat.
This revised guide covers all the new features in Sass 3.4, including selector parsing and manipulation. Make full use of all Sass’s features by updating to the most mature and powerful CSS toolchain out there.
if ** Task 17. Manipulatingcontent
extend as a Mixin Alternative ** Task 32. Using Placeholders withextend
extend ** Task 34. Escaping Indentation withroot
Hampton Lintorn Catlin is the inventor of Sass, Haml, and Wikipedia Mobile. With 20 years’ experience building websites used by millions of people a day, he’s one of the most respected developers in the industry.
Michael Lintorn Catlin is a web developer; co-founder of rarebit, a boutique tech consulting firm; and co-creator of Wordset, the collaborative online dictionary. Michael has dual masters’ degrees from both Oxford and Cambridge Universities.
Published: July 2016