Skip to content

Commit

Permalink
Expanded CSS selector info (Fix #91)
Browse files Browse the repository at this point in the history
  • Loading branch information
nternetinspired authored and Michael Babker committed Jan 8, 2017
1 parent abb398c commit 6b22440
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion manual/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ Subsections should be normally cased and within an open comment block.
// These are stripped on compile.
```

## Class naming
## CSS selectors
Only use classes for CSS selectors, *never IDs* as they introduce unwanted specificity to the cascade. Using an ID as a css selector is like firing the first nuke; you begin a specifity war that can only escalate, with terrible consequence.

To put it another way; Don't use a Sith Lord when just two Storm Troopers will suffice: [CSS Specificity Wars](http://www.stuffandnonsense.co.uk/archives/css_specificity_wars.html)

### Class naming convention
Use dashes to create compound class names:

```css
Expand Down

0 comments on commit 6b22440

Please sign in to comment.