Skip to Content
Pragmatic Guide to Sass 3
book

Pragmatic Guide to Sass 3

by Hampton Lintorn Catlin, Michael Lintorn Catlin
July 2016
Intermediate to advanced
130 pages
2h 11m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Sass 3
3Commenting

Well-commented code is essential for any project. From a team of just one all the way to a team of hundreds, comments help outline what code is supposed to do.

A comment is like an aside in your code—it can explain goals, indicate bug fixes, or just let someone know how you’re using a particularly novel bit of code. And don’t think that a solo project doesn’t need comments! Some of the most valuable comments in our code are from our past selves.

Sass has two types of comment style. One is kept intact during compilation, so it appears in your CSS output. It’s a multiline comment style, and you place all your comments between /* and */. This can be useful for versioning your CSS file or indicating the date it was compiled.

You ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Sass

Jump Start Sass

Hugo Giraudel, Miriam Suzanne
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
Mastering Sass

Mastering Sass

Luke Watts

Publisher Resources

ISBN: 9781680502060Errata Page