resource / Front-End-Standards

Front-end development standards for Resource.
MIT License
23 stars 1 forks source link

Naming conventions for *.scss files #59

Closed nicetransition closed 11 years ago

nicetransition commented 11 years ago

We should include a section for naming conventions of *.scss files, see partial example (_somepartial) in https://github.com/LukeAskew/Front-End-Standards/blob/master/Stylesheets/Sass.md#formatting

LukeAskew commented 11 years ago

What is the convention?

I think we should enforce leading _ in partial names (in most cases). What other rules should we include?

nicetransition commented 11 years ago

Partials require _ in front, that is the rule. But I mean the name of the file... should it be -,_, or camel cased for file names?

I'd recommend dash.

LukeAskew commented 11 years ago

Oh, like _my-cool-partial.scss? as apposed to _myCoolPartial.scss?

I agree with the dash version.

apartyka commented 11 years ago

I concur. Dashes make sense to me. I will update the current example.

nicetransition commented 11 years ago

:+1: