- [CODE STYLE] - Add empty lines between multiline sibling blocks of HTML. But don't add empty lines between parent and child elements
GOOD example:
<ul>
<li class="nav__item">
<a href="#home">Home</a>
</li>
<li class="nav__item">
<a href="#shop">Shop</a>
</li>
<li class="nav__item">
<a href="#contacts">Contacts</a>
</li>
</ul>
BAD example:
<ul>
<li class="nav__item">
<a href="#home">Home</a>
</li>
<li class="nav__item">
<a href="#shop">Shop</a>
</li>
<li class="nav__item">
<a href="#contacts">Contacts</a>
</li>
</ul>
- [CODE STYLE] - Combine selectors that have same styles using
,
GOOD example:
.block--1,
.block--2,
.block--3 {
background-color: yellowgreen;
}
BAD example:
.block--1 {
background-color: yellowgreen;
}
.block--2 {
background-color: yellowgreen;
}
.block--3 {
background-color: yellowgreen;
}
- [STYLE] - Don't set fixed container size. Let the content size dictate it.
- [TESTS] - Don't add vertical margin between rows of stars.