- Maintainable OOCSS components
- Scalable code
- BEM - Block-element--modifier
- PascaleCase for component name
- camelCase for component childs
- Lowercase for modifiers
- Use
is-*
andhas-*
modifiers when needed
<div class="Component Component--modifier is-state">
<div class="Component-child"></div>
<div class="Component-otherChild"></div>
</div>
- Two spaces indent
- Space after
:
property declaration - Space before
{
rule declaration - Closing braces on a new line
.Component {
display: inline-block;
}
- Never use IDs
- No magic number
- Only use
!important
on utility classes - Max nesting level: 3
npm install
sudo npm install -g phantomjs
sudo npm install -g casperjs
npm run pre-commit
npm run pre-push
npm run vt:refs // build references
npm run vt:compare // compare references with actual HEAD
To bypass the pre-commit, just add -n
option.
git ci -n
git ci -nm "My commit message"