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
Developers use comments in their code to make parts of it easier to understand. There are two different ways you can write comments in Sass: single-line and multiline comments.
Comment snippet
// =========================================
// Mixins
// =========================================
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
multi line comments.
0:00
Remember plain CSS is also valid SCSS, so
0:00
you're able to write standard multi line
CSS comments in your Sass style sheets.
0:04
We already have several of these comments
in our SCSS file to divide the different
0:08
sections of our style sheet.
0:11
Like base styles, header and footer,
containers, components and so on.
0:13
And as you can see,
0:17
these type of comments are preserved
in the CSS output by default.
0:18
Sass also lets you define
single line comments
0:23
that do not appear in the CSS output.
0:26
It would create them by typing
a double forward slash and
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