Skip to content
Mehdi Kababfrontend / author
Sass & Compass avancé cover

Sass & Compass avancé

Optimiser ses feuilles de style CSS

Pages
285
Edition
1
Publisher
Eyrolles

Where to buy the book

The book is in French. It is sold in any good bookshop with a computing shelf, and in many online stores, including:

Digital edition

A digital edition is also available:

Table of contents

  1. Chapter 1Installing Sass and Compass

    • Installing Sass, Compass… and Ruby?
    • Available graphical tools
    • First conversion of a Sass file into a CSS style sheet
    • Summary
  2. Chapter 2A Sass syntax

    • Two syntaxes to choose from: Sass and SCSS
    • Nesting rules, a revolution
    • Several levels of comments
    • Variables
    • Split up and work faster
    • Reusing code: an introduction to mixins
    • Passing a content block to a mixin
    • Inheritance with @extend
    • Mastering inheritance with placeholders
    • Media query support
    • Pitfalls to avoid
    • Summary
  3. Chapter 3Developing with Sass

    • Sass and data
    • Maths in your CSS
    • Control directives
    • Advanced work with functions
    • Summary
  4. Chapter 4A first Sass project and production constraints

    • Setting up the project tree
    • Compiling a Sass project
    • Using Sass libraries
    • Easy project setup with Compass
    • Compass centralises the project configuration
    • Compiling a Compass project
    • Using Sass libraries in a Compass project
    • Summary
  5. Chapter 5Compass, your future best friend

    • Simpler access to static assets
    • Compass, a DRY toolbox
    • Compass, a CSS3 framework
    • Cross-browser support
    • Summary
  6. Chapter 6Building CSS sprites with Compass

    • What is a CSS sprite?
    • Sprites, a necessity
    • The magic of Compass for sprite generation
    • Mastering selectors
    • Sprites done just right
    • Example 1: customising sprite selectors
    • Example 2: removing repeated dimensions
    • Example 3: high-definition CSS sprites
    • Example 4: declaring sprite dimensions per image size
    • No more slow compilations
    • Summary
  7. Chapter 7Managing a Compass project: some methodology

    • Managing Sass and Compass versions properly
    • Debugging a Sass project
    • Working as a team
    • Summary
  8. Appendix AAdvanced configuration with Compass

    • Maintaining a custom cache buster
    • Showing Growl notifications on Mac OS X
    • Sharing files between projects
  9. Appendix BA survival guide to the command line

    • The command prompt
    • Listing files
    • Moving around the file system
    • Handling files
    • Wildcard patterns

Downloads

The main source code shown in the chapters of the book can be downloaded from GitHub.

A word about the author

Mehdi Kabab

My résuméLinkedIn