Commit 3a1bf9b2 authored by Brandon Labuschagne's avatar Brandon Labuschagne

Favour classnames over tag names

parent a7298fff
......@@ -77,6 +77,24 @@ CSS classes should use the `lowercase-hyphenated` format rather than
}
```
Class names should be used instead of tag name selectors.
Using tag name selectors are discouraged in CSS because
they can affect unintended elements in the hierarchy.
Also, since they are not meaningful names, they do not
add meaning to the code.
```scss
// Bad
ul {
color: #fff;
}
// Good
.class-name {
color: #fff;
}
```
### Formatting
You should always use a space before a brace, braces should be on the same
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment