开发者

When do you use partials in compass?

开发者 https://www.devze.com 2023-02-06 17:36 出处:网络
I understand that partials in compass do not create a s开发者_开发技巧eparate .css file. But I don\'t understand when/why would I ever want to use this?Mostly just for organization and separation of l

I understand that partials in compass do not create a s开发者_开发技巧eparate .css file. But I don't understand when/why would I ever want to use this?


Mostly just for organization and separation of logical pieces of CSS. For example, I keep a _reset.scss that I can paste into any project, then have things like _layout.sass, _homepage.sass, etc. They all get shoved into a single compiled CSS file (so I don't have to deal with multiple HTTP requests), but I can get to the styles for any given piece of a project quickly and easily.

0

精彩评论

暂无评论...
验证码 换一张
取 消