Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!