Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

SASS comments on css

Hello,

I am watching the the first part of the Sass series (Nesting Selectors to be exact http://teamtreehouse.com/library/sass-basics/getting-started-with-sass/nesting-selectors).

I have got two files:

  1. sass.scss
  2. sass.css

It is working fine, but after before every css rule there is a comment saying /* line 14, sass.scss */

Also, it does not to do the proper formatting like the video i.e

.rule { padding:5px }

1 Answer

Keith Doyle
Keith Doyle
25,973 Points

Sounds like you ran this command

sass -l sass.scss:sass.css

It adds comments so you can see what lines in your SCSS file refer to in the CSS file. Make sense?

You can also change the structure of your CSS file by using the --style command. Sass style output.