Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Sass Basics!
You have completed Sass Basics!
Preview
Mixins are one of the most used features of Sass. They let you break CSS down into modular chunks that you can reuse anywhere in your stylesheets. Being able to do this helps us to avoid writing repetitive code.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
But even with features like variables,
nested selectors and the ampersand in
0:00
place it's likely that you're style
sheets are repeating chunks of styles.
0:00
For instance you may be repeating
the same group of properties for
0:05
font, text layout and
border styles in various selectors.
0:07
Or you're writing multiple
vendor prefixes over and
0:11
over again for new CSS properties
that lack full browser support.
0:13
Well, this is where mixins come in to help
streamline your CSS and save you time.
0:16
Mixins are one of the most
used features of SASS.
0:21
They let you break CSS down into
modular chunks that you can reuse
0:24
anywhere in your style sheets.
0:27
Being able to do this helps us to
avoid writing repetitive code.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up