Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Codecademy

Learn Sass: Mixins and Parent Selector

via Codecademy

Overview

Use mixins to add more flexibility to your styles and expand stylings with the & selector.
Continue your Sass learning journey with Learn Sass: Mixins and the Parent Selector. You'll learn how to create mixins which accept arguments to provide more flexibility to your rules. You will also use the parent selector (`&`) to expand upon base stylings.



### Skills you’ll gain
* Create mixins to incorporate arguments into styling.
* Use the parent selector (`&`) to extend styling.
* Dynamically construct file names using string interpolation.


### Notes on prerequisites
We recommend that you complete [Learn Sass: Fundamentals](https://www.codecademy.com/learn/learn-sass-fundamentals) before starting this course.

Syllabus

  • Mixins and the & Selector: Learn how to use mixins and the & selector to create an interactive index card that flips when you hover.
    • Lesson: Mixins and the & Selector
    • Project: Sassy Parallax Banner
    • Quiz: Mixins and the & Selector
    • Informational: Next Steps

Taught by

Alex DiStasi

Reviews

4.2 rating at Codecademy based on 28 ratings

Start your review of Learn Sass: Mixins and Parent Selector

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.