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
When you extend regular selectors, like classes and IDs, they get output to CSS. Sass has a special type of selector, called a placeholder selector, that won't appear in the CSS output unless extended.
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
the button styles with button callout and
button info.
0:00
When you extend normal
selectors like classes and
0:01
IDs, they'll always get output to CSS.
0:03
However, sometimes those
selectors are never actually used
0:07
to style the elements of a page.
0:10
For example, we'll likely never use
the button class directly in HTML.
0:11
So it's best to omit it from the output.
0:16
Now just one unused class
is not that big a deal.
0:18
But if we extended multiple selectors,
we could end up creating
0:21
lots of unnecessary CSS and
bloat in the final output.
0:24
So Sass has a special type of selector
called a placeholder selector
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