Book description
Create interactive and responsive cross-browser apps with SASS and Compass
About This Book
- Create data-intensive, highly scalable apps using Sass and COMPASS
- Master the concepts of Sass and COMPASS and unleash your potential to develop enterprise-grade apps
- This book is an experts' guide on leveraging Sass and COMPASS features
Who This Book Is For
This book is aimed at those who know CSS3 and HTML5 quite well and who've built a few small-to-medium-sized websites from scratch using Sass and Compass.
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
In Detail
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.
Style and approach
This book will provide readers with practical, actionable expertise to enhance their knowledge
Publisher resources
Table of contents
-
Mastering Sass
- Mastering Sass
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Preface
- 1. Requirements
- 2. Sass – The Road to Better CSS
- 3. Compass – Navigating with Compass
- 4. CSS and HTML – SMACSS, OOCSS and Semantics
- 5. Advanced Sass
- 6. Gulp – Automating Tasks for a Faster Workflow
- 7. Sourcemaps – Editing and Saving in the Browser
- 8. Building a Content-Rich Website Components
-
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
- 10. Building a Content-Rich Website – Theme
Product information
- Title: Mastering Sass
- Author(s):
- Release date: August 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785883361
You might also like
book
The Design of Web APIs
Drawing on author Arnaud Lauret's many years of API design experience, this book teaches you how …
book
Learn TypeScript 3 by Building Web Applications
Learn TypeScript and many of its features by building state of art web applications from scratch …
book
Jump Start Sass
Get a Jump Start on the popular CSS preprocessor Sass today! Using Sass, you can write …
book
Learning React, 2nd Edition
If you want to learn how to build efficient React applications, this is your book. Ideal …