Converting partial files to standalone style sheets

Remember that it's also easy to create a standalone file from an existing partial file. Just omit the leading underscore from the filename. So a file called _navigation.scss could be renamed navigation.scss and this would compile to navigation.css (if the file is still within a folder named partials, it will also be generated within the CSS folder in a subfolder called partials).

Note

There have been whispers in dark corridors (alright, not really, just on GitHub) that the possibility may exist in future versions of Sass to target particular styles to particular style sheets. Those curious may wish to read the following threads: https://github.com/nex3/sass/issues/241 and https://github.com/chriseppstein/compass/issues/664 ...

Get Sass and Compass for Designers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.