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
Like functions, mixins also accept parameters. This makes mixins even more powerful and flexible styling tools!
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
you wrote all the necessary properties and
values inside the mixin itself.
0:00
For example, the skewed and
0:02
center mixins copy over these exact
declarations wherever they're included.
0:04
But mixins don't have to use the same
values each time they're included.
0:09
Like functions,
mixins also accept parameters,
0:13
making them even more powerful and
flexible styling tools.
0:16
For example, the center mixin has
a predefined width value of 90%.
0:19
What if you wanna center another
element but set its width to 50%?
0:24
Well you could omit the width
declaration from the mixin and
0:28
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