Sass Basics

Treehouse
Course Summary
Sass is a stylesheet language that extends CSS with features like variables, nested rules, mixins and functions, in a CSS-compatible syntax. In this course, you'll learn to use the powers of Sass to boost your front end workflow. The examples will teach you why you should use Sass in your projects. By the end, you will be writing more efficient CSS using code that is easy to read and maintain.
-
+
Course Description
About this Course Sass is a stylesheet language that extends CSS with features like variables, nested rules, mixins and functions, in a CSS-compatible syntax. In this course, you'll learn to use the powers of Sass to boost your front end workflow. The examples will teach you why you should use Sass in your projects. By the end, you will be writing more efficient CSS using code that is easy to read and maintain. What you'll learn
- What is a CSS Preprocessor?
- Variables, nested rules and mixins
- Separating your stylesheet into partials
- Storing data in maps
- Functions, loops and conditionals
About the Teacher
Guil is a front end web development teacher at Treehouse. You can follow him on Twitter at @guilh.
-
+
Course Syllabus
Getting Started with Sass
Get up and running with Sass! In this stage, you'll learn to compile Sass into plain CSS, and use variables to make your code less repetitive and easier to maintain. 9 steps- What is Sass? 2:29
- Installing and Using Sass 3:10
- Introduction to Sass Review 6 questions
- Compiling Sass to CSS 4:15
- Compile a Directory of Sass Files 3:21
- Compiling Sass Review 5 questions
- Declaring and Using Variables 5:28
- Naming Variables 5:09
- Declare and Use Variables 5 objectives
Improve Your Workflow with Sass
Ready to experience the true power and elegance of Sass? In this stage, you'll learn to keep your code "DRY", using nested selectors and the & symbol to reference the parent selector of nested rules. You'll also create reusable blocks of code called mixins, and extend the properties of other selectors via the @extend directive. 11 stepsWrite Smart and Efficient CSS with Sass
Learn to organize your Sass projects with partials, and efficient ways to manage media queries, color values and repeating patterns in your code. 8 stepsAdd Reusable Logic to Your Sass
Time to add powerful logic to your stylesheets! Push your Sass skills further by creating smarter and extensible mixins. Write conditionals and loops to simplify repetitive tasks, and learn how Sass helps you handle errors and debug code in the browser. 12 steps