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

Drew S
Drew S
34,034 Points

Sass unwanted indentation in Sublime Text

I'm working on a personal project, and I started using Sass. The problem that I am having is unwanted indentation when it compiles. Whenever it compiles my nested selectors it always indents them in the .css file.

Anyone have an idea?

2 Answers

Tom Bedford
Tom Bedford
15,645 Points

I'm using Scout to compile my Sass, in the configuration it lets me select "nested, expanded, compact and compressed" outputs for the .css files.

It is also possible through the terminal - see the documentation on output style.

Drew S
Drew S
34,034 Points

Thanks Tom!