Mastering Sass

Create interactive and responsive cross-browser apps with SASS and Compass

Mastering Sass

Luke Watts

1 customer reviews
Create interactive and responsive cross-browser apps with SASS and Compass
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785883361
Paperback318 pages

Book Description

CSS and Sass add elegance and excellence to the basic language, and consist of a CSS-compatible syntax that allows you to use variables, nested rules, mixins, inline imports, and much more.

This book will start with an overview of the features in Sass and Compass, most of which you'll already be familiar; however, this will ensure you know what’s expected as the book goes deeper into Sass and Compass. Next you will learn CSS and HTML concepts that are vital to a good Sass workflow. After all, Sass exists to simplify writing CSS, but it won’t teach you how to make clean, scalable, reusable CSS. For that, you need to understand some basic concepts of OOCSS, SMACCS, and Atomic Design.

Once you’ve brushed up on the important concepts, it’s time to write some Sass. Mainly you’ll write a few functions and mixins that really leverage control flow using @if / @else loops and you’ll learn how to figure out when and why things are going wrong before they bring you to a stop. Moving further, you’ll learn how to use @debug, @warn and @error to properly handle errors.

You’ll also learn about Gulp and how to use it to automate your workflow and reduce your repetitive tasks. And finally you’ll learn about sourcemaps. With sourcemaps, you’ll be able to write, debug, and view your Sass and Compass all from within the browser. It’ll even LiveReload too!

As a bonus, you’ll take a look at that funky Flexbox, currently all the rage! You’ll learn how powerful and flexible it really is, and how you can use it with Compass. Best of all, it falls back very gracefully indeed! In fact, you’ll be able to apply it to any existing project without having to change a line of the original CSS.

Table of Contents

Chapter 1: Requirements
Ruby, Sass, and Compass
Node and NPM
HTML5
Summary
Chapter 2: Sass – The Road to Better CSS
A bit of sassy reminiscing
Setting up our project
Command line options in Sass
On the right heading!
Three things you should know about lists
Heading line heights
Data types in Sass
Summary
Chapter 3: Compass – Navigating with Compass
Setting up a Compass project
Typography with Compass
Sizing our headings
Sticky footer, stretching, and sprites
Compass and the future
Summary
Chapter 4: CSS and HTML – SMACSS, OOCSS and Semantics
The good and the bad of CSS grids
Semantics
Naming conventions
OOCSS - Object-Oriented CSS
SMACSS
Why aren't you using HSL?
reset.css versus normalize.css
Make your own
Summary
Chapter 5: Advanced Sass
Variables
Maps
Summary
Chapter 6: Gulp – Automating Tasks for a Faster Workflow
Setting up our project
Why Gulp and not Grunt?
Node and npm
Node.js, node-sass, and fileWatch
Setting up Gulp
Summary
Chapter 7: Sourcemaps – Editing and Saving in the Browser
What are source maps and why should you care?
Setting up Source Maps in Firefox
Setting up Source Maps in Chrome
Summary
Chapter 8: Building a Content-Rich Website Components
Setting up our project
Gulp
Helpers
Summary
Chapter 9: Building a Content-Rich Website – Layout
Installing Susy
Setting up a basic grid
The container mixin
The span mixin
The last keyword
The $susy configuration map
Setting up a grid system
The concept of our grid system
The breakpoints
The columns naming convention
Building the grid
Testing the grid
The header
Main header inner
Main nav
Mobile menus
Top nav
Main nav
Image banner
Featured products
Testimonial
Subfooter and footer
The markup
The SCSS
Finishing touches
Summary
Chapter 10: Building a Content-Rich Website – Theme
Typography
Dropcaps
Tagcloud
Color scheme
Search
Image banner
Featured products
Testimonials
Services
Footer
Section titles
Summary

What You Will Learn

  • Master Sass and Compass features
  • Familiarize yourself with CSS and HTML concepts that are vital for a good Sass workflow.
  • Build real-world websites focusing on layouts and content aspects
  • Work on a grid system using Compass and Susy
  • Automate your workflow with Gulp
  • Write functions and mixins to leverage the control flow

Authors

Table of Contents

Chapter 1: Requirements
Ruby, Sass, and Compass
Node and NPM
HTML5
Summary
Chapter 2: Sass – The Road to Better CSS
A bit of sassy reminiscing
Setting up our project
Command line options in Sass
On the right heading!
Three things you should know about lists
Heading line heights
Data types in Sass
Summary
Chapter 3: Compass – Navigating with Compass
Setting up a Compass project
Typography with Compass
Sizing our headings
Sticky footer, stretching, and sprites
Compass and the future
Summary
Chapter 4: CSS and HTML – SMACSS, OOCSS and Semantics
The good and the bad of CSS grids
Semantics
Naming conventions
OOCSS - Object-Oriented CSS
SMACSS
Why aren't you using HSL?
reset.css versus normalize.css
Make your own
Summary
Chapter 5: Advanced Sass
Variables
Maps
Summary
Chapter 6: Gulp – Automating Tasks for a Faster Workflow
Setting up our project
Why Gulp and not Grunt?
Node and npm
Node.js, node-sass, and fileWatch
Setting up Gulp
Summary
Chapter 7: Sourcemaps – Editing and Saving in the Browser
What are source maps and why should you care?
Setting up Source Maps in Firefox
Setting up Source Maps in Chrome
Summary
Chapter 8: Building a Content-Rich Website Components
Setting up our project
Gulp
Helpers
Summary
Chapter 9: Building a Content-Rich Website – Layout
Installing Susy
Setting up a basic grid
The container mixin
The span mixin
The last keyword
The $susy configuration map
Setting up a grid system
The concept of our grid system
The breakpoints
The columns naming convention
Building the grid
Testing the grid
The header
Main header inner
Main nav
Mobile menus
Top nav
Main nav
Image banner
Featured products
Testimonial
Subfooter and footer
The markup
The SCSS
Finishing touches
Summary
Chapter 10: Building a Content-Rich Website – Theme
Typography
Dropcaps
Tagcloud
Color scheme
Search
Image banner
Featured products
Testimonials
Services
Footer
Section titles
Summary

Book Details

ISBN 139781785883361
Paperback318 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Angular 2 By Example Book Cover
Angular 2 By Example
$ 35.99
$ 25.20
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
ReactJS by Example - Building Modern Web Applications with React Book Cover
ReactJS by Example - Building Modern Web Applications with React
$ 35.99
$ 25.20